media: dt-bindings: media: Introduce MEDIA_BUS_TYPE_DPI
Subsystems (7)
PATCH 1/2 media: dt-bindings: media: Introduce MEDIA_BUS_TYPE_DPI
From: Fabio Estevam <[email protected]>
Commit 18860529a599 ("media: dt-bindings: media: video-interfaces: Add new bus-type") introduced a new bus-type for DPI video bus.
Introduce MEDIA_BUS_TYPE_DPI into video-interfaces.h to complete the list of video interfaces.
--- include/dt-bindings/media/video-interfaces.h | 1 + 1 file changed, 1 insertion(+)
include/dt-bindings/media/video-interfaces.h +1 -0
@@ -12,5 +12,6 @@#define MEDIA_BUS_TYPE_CSI2_DPHY 4#define MEDIA_BUS_TYPE_PARALLEL 5#define MEDIA_BUS_TYPE_BT656 6 +#define MEDIA_BUS_TYPE_DPI 7#endif /* __DT_BINDINGS_MEDIA_VIDEO_INTERFACES_H__ */
Signature · 1 line
2.34.1
PATCH 2/2 media: dt-bindings: Use bus-types definitions from video-interfaces.h
From: Fabio Estevam <[email protected]>
To improve readability, replace hardcoding numerical constants with the corresponding definitions from video-interfaces.h.
Based on commit c4cfd47eb4ac ("media: dt-bindings: Use new video interface bus type macros in examples").
--- .../devicetree/bindings/display/bridge/analogix,anx7625.yaml | 3 ++- .../devicetree/bindings/media/i2c/toshiba,tc358746.yaml | 3 ++- Documentation/devicetree/bindings/media/microchip,csi2dc.yaml | 4 +++- .../devicetree/bindings/media/starfive,jh7110-camss.yaml | 4 +++- .../devicetree/bindings/media/ti,j721e-csi2rx-shim.yaml | 3 ++- 5 files changed, 12 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml +2 -1
@@ -132,6 +132,7 @@ additionalProperties: false examples: - | #include <dt-bindings/gpio/gpio.h> + #include <dt-bindings/media/video-interfaces.h> i2c { #address-cells = <1>;
@@ -157,7 +158,7 @@ examples: reg = <0>; anx7625_in: endpoint { remote-endpoint = <&mipi_dsi>; - bus-type = <7>; + bus-type = <MEDIA_BUS_TYPE_DPI>; data-lanes = <0 1 2 3>; }; };
Documentation/devicetree/bindings/media/i2c/toshiba,tc358746.yaml +2 -1
@@ -129,6 +129,7 @@ additionalProperties: false examples: - | #include <dt-bindings/gpio/gpio.h> + #include <dt-bindings/media/video-interfaces.h> i2c { #address-cells = <1>;
@@ -161,7 +162,7 @@ examples: remote-endpoint = <&sensor_out>; hsync-active = <0>; vsync-active = <0>; - bus-type = <5>; + bus-type = <MEDIA_BUS_TYPE_PARALLEL>; }; };
Documentation/devicetree/bindings/media/microchip,csi2dc.yaml +3 -1
@@ -142,6 +142,8 @@ examples: # Example for connecting to a parallel sensor controller block (video pipe) # and the input is received from Synopsys IDI interface - | + #include <dt-bindings/media/video-interfaces.h> + csi2dc@e1404000 { compatible = "microchip,sama7g5-csi2dc"; reg = <0xe1404000 0x500>;
@@ -154,7 +156,7 @@ examples: port@0 { reg = <0>; /* must be 0, first child port */ csi2dc_in: endpoint { /* input from IDI interface */ - bus-type = <4>; /* MIPI CSI2 D-PHY */ + bus-type = <MEDIA_BUS_TYPE_CSI2_DPHY>; remote-endpoint = <&csi2host_out>; }; };
Documentation/devicetree/bindings/media/starfive,jh7110-camss.yaml +3 -1
@@ -120,6 +120,8 @@ additionalProperties: false examples: - | + #include <dt-bindings/media/video-interfaces.h> + isp@19840000 { compatible = "starfive,jh7110-camss"; reg = <0x19840000 0x10000>,
@@ -161,7 +163,7 @@ examples: reg = <0>; vin_from_sc2235: endpoint { remote-endpoint = <&sc2235_to_vin>; - bus-type = <5>; + bus-type = <MEDIA_BUS_TYPE_PARALLEL>; bus-width = <8>; data-shift = <2>; hsync-active = <1>;
Documentation/devicetree/bindings/media/ti,j721e-csi2rx-shim.yaml +2 -1
@@ -58,6 +58,7 @@ additionalProperties: false examples: - | + #include <dt-bindings/media/video-interfaces.h> #include <dt-bindings/soc/ti,sci_pm_domain.h> ti_csi2rx0: ticsi2rx@4500000 {
@@ -90,7 +91,7 @@ examples: csi2rx0_in_sensor: endpoint { remote-endpoint = <&csi2_cam0>; - bus-type = <4>; /* CSI2 DPHY. */ + bus-type = <MEDIA_BUS_TYPE_CSI2_DPHY>; clock-lanes = <0>; data-lanes = <1 2>; };
Signature · 1 line
2.34.1
Quoted 5 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Commit
18860529a599("media: dt-bindings: media: video-interfaces: Add new bus-type") introduced a new bus-type for DPI video bus.
Quoted 8 lines
Introduce
MEDIA_BUS_TYPE_DPIintovideo-interfaces.hto complete the list of video interfaces.Signed-off-by Fabio Estevam <[email protected]>--- include/dt-bindings/media/video-interfaces.h | 1 + 1 file changed, 1 insertion(+)
Re: [PATCH 2/2] media: dt-bindings: Use bus-types definitions from video-interfaces.h
In reply to Fabio EstevamQuoted 8 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
To improve readability, replace hardcoding numerical constants with the corresponding definitions from
video-interfaces.h.Based on commit
c4cfd47eb4ac("media: dt-bindings: Use new video interface bus type macros in examples").
Quoted 9 lines
Signed-off-by Fabio Estevam <[email protected]>--- .../devicetree/bindings/display/bridge/analogix,anx7625.yaml | 3 ++- .../devicetree/bindings/media/i2c/toshiba,tc358746.yaml | 3 ++- Documentation/devicetree/bindings/media/microchip,csi2dc.yaml | 4 +++- .../devicetree/bindings/media/starfive,jh7110-camss.yaml | 4 +++- .../devicetree/bindings/media/ti,j721e-csi2rx-shim.yaml | 3 ++- 5 files changed, 12 insertions(+), 5 deletions(-)
Hi Fabio,
Thank you for the patch.
Quoted 9 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Commit
18860529a599("media: dt-bindings: media: video-interfaces: Add new bus-type") introduced a new bus-type for DPI video bus.Introduce
MEDIA_BUS_TYPE_DPIintovideo-interfaces.hto complete the list of video interfaces.Signed-off-by Fabio Estevam <[email protected]>
Quoted 15 lines
--- include/dt-bindings/media/video-interfaces.h | 1 + 1 file changed, 1 insertion(+)include/dt-bindings/media/video-interfaces.h +1
-0@@ -12,5 +12,6 @@#define MEDIA_BUS_TYPE_CSI2_DPHY 4#define MEDIA_BUS_TYPE_PARALLEL 5#define MEDIA_BUS_TYPE_BT656 6 +#define MEDIA_BUS_TYPE_DPI 7#endif /* __DT_BINDINGS_MEDIA_VIDEO_INTERFACES_H__ */
Signature · 3 lines
Regards, Laurent Pinchart
Laurent Pinchart
reviewerRe: [PATCH 2/2] media: dt-bindings: Use bus-types definitions from video-interfaces.h
In reply to Fabio EstevamHi Fabio,
Thank you for the patch.
Quoted 30 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
To improve readability, replace hardcoding numerical constants with the corresponding definitions from
video-interfaces.h.Based on commit
c4cfd47eb4ac("media: dt-bindings: Use new video interface bus type macros in examples").Signed-off-by Fabio Estevam <[email protected]>--- .../devicetree/bindings/display/bridge/analogix,anx7625.yaml | 3 ++- .../devicetree/bindings/media/i2c/toshiba,tc358746.yaml | 3 ++- Documentation/devicetree/bindings/media/microchip,csi2dc.yaml | 4 +++- .../devicetree/bindings/media/starfive,jh7110-camss.yaml | 4 +++- .../devicetree/bindings/media/ti,j721e-csi2rx-shim.yaml | 3 ++- 5 files changed, 12 insertions(+), 5 deletions(-)Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml +1
-0@@ -132,6 +132,7 @@ additionalProperties: false examples: - | #include <dt-bindings/gpio/gpio.h> + #include <dt-bindings/media/video-interfaces.h> i2c { #address-cells = <1>;
Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml examples: · line 160
Quoted 4 lines
Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml +0
-1@@ -157,7 +158,7 @@ examples: reg = <0>; anx7625_in: endpoint { remote-endpoint = <&mipi_dsi>; - bus-type = <7>;
7 seems to have been a mistake, as this is a DSI endpoint, not a DPI endpoint.
Quoted 90 lines
Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml +1
-0+ bus-type = <MEDIA_BUS_TYPE_DPI>; data-lanes = <0 1 2 3>; }; };Documentation/devicetree/bindings/media/i2c/toshiba,tc358746.yaml +2
-1@@ -129,6 +129,7 @@ additionalProperties: false examples: - | #include <dt-bindings/gpio/gpio.h> + #include <dt-bindings/media/video-interfaces.h> i2c { #address-cells = <1>;@@ -161,7 +162,7 @@ examples: remote-endpoint = <&sensor_out>; hsync-active = <0>; vsync-active = <0>; - bus-type = <5>; + bus-type = <MEDIA_BUS_TYPE_PARALLEL>; }; };Documentation/devicetree/bindings/media/microchip,csi2dc.yaml +3
-1@@ -142,6 +142,8 @@ examples: # Example for connecting to a parallel sensor controller block (video pipe) # and the input is received from Synopsys IDI interface - | + #include <dt-bindings/media/video-interfaces.h> + csi2dc@e1404000 { compatible = "microchip,sama7g5-csi2dc"; reg = <0xe1404000 0x500>;@@ -154,7 +156,7 @@ examples: port@0 { reg = <0>; /* must be 0, first child port */ csi2dc_in: endpoint { /* input from IDI interface */ - bus-type = <4>; /* MIPI CSI2 D-PHY */ + bus-type = <MEDIA_BUS_TYPE_CSI2_DPHY>; remote-endpoint = <&csi2host_out>; }; };Documentation/devicetree/bindings/media/starfive,jh7110-camss.yaml +3
-1@@ -120,6 +120,8 @@ additionalProperties: false examples: - | + #include <dt-bindings/media/video-interfaces.h> + isp@19840000 { compatible = "starfive,jh7110-camss"; reg = <0x19840000 0x10000>,@@ -161,7 +163,7 @@ examples: reg = <0>; vin_from_sc2235: endpoint { remote-endpoint = <&sc2235_to_vin>; - bus-type = <5>; + bus-type = <MEDIA_BUS_TYPE_PARALLEL>; bus-width = <8>; data-shift = <2>; hsync-active = <1>;Documentation/devicetree/bindings/media/ti,j721e-csi2rx-shim.yaml +2
-1@@ -58,6 +58,7 @@ additionalProperties: false examples: - | + #include <dt-bindings/media/video-interfaces.h> #include <dt-bindings/soc/ti,sci_pm_domain.h> ti_csi2rx0: ticsi2rx@4500000 {@@ -90,7 +91,7 @@ examples: csi2rx0_in_sensor: endpoint { remote-endpoint = <&csi2_cam0>; - bus-type = <4>; /* CSI2 DPHY. */ + bus-type = <MEDIA_BUS_TYPE_CSI2_DPHY>; clock-lanes = <0>; data-lanes = <1 2>; };
Signature · 3 lines
Regards, Laurent Pinchart
Re: [PATCH 2/2] media: dt-bindings: Use bus-types definitions from video-interfaces.h
Hi Laurent,
Quoted 8 lines · Laurent Pinchart
Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml examples: · line 160
Quoted 5 lines
Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml +0
-1@@ -157,7 +158,7 @@ examples: reg = <0>; anx7625_in: endpoint { remote-endpoint = <&mipi_dsi>; - bus-type = <7>;7 seems to have been a mistake, as this is a DSI endpoint, not a DPI endpoint.
bus-type = <7> was added in commit 0a61ef9cc30d ("dt-bindings:drm/bridge:anx7625: add port@0 property").
Adding Xin Ji on CC for clarification.
Xin Ji
Reviewed-byRE: [PATCH 2/2] media: dt-bindings: Use bus-types definitions from video-interfaces.h
Hi Fabio Estevam, yes, 7 is for DPI, please remove it.
Quoted 35 lines
-----Original Message-----
From: Fabio Estevam <[email protected]>
Sent: Tuesday, November 28, 2023 8:31 AM
To: Laurent Pinchart <[email protected]>; Xin Ji <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Fabio Estevam <[email protected]>
Subject: Re: [PATCH 2/2] media: dt-bindings: Use bus-types definitions fromvideo-interfaces.hCAUTION: This email originated from outside of the organization. Please do not click links or open attachments unless you recognize the sender, and know the content is safe.
Hi Laurent,
Quoted 8 lines · Laurent Pinchart
Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml examples: · line 160
Quoted 5 lines
Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml +0
-1@@ -157,7 +158,7 @@ examples: reg = <0>; anx7625_in: endpoint { remote-endpoint = <&mipi_dsi>; - bus-type = <7>;7 seems to have been a mistake, as this is a DSI endpoint, not a DPI endpoint.
bus-type = <7> was added in commit
0a61ef9cc30d("dt-bindings:drm/bridge:anx7625: add port@0 property").Adding Xin Ji on CC for clarification.