Skip to contentSkip to conversation

dt-bindings: display: synopsys, dw-hdmi: Document ddc-i2c-bus in core

PATCH In review Marek Vasut 4 participants 5 messages May 15, 2024 – May 17, 2024

Subsystems (8)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 dt-bindings: display: synopsys, dw-hdmi: Document ddc-i2c-bus in core

The DW HDMI driver core is responsible for parsing the 'ddc-i2c-bus' property, move the property description into the DW HDMI common DT schema too, so this property can be used on all devices integrating the DW HDMI core.

---
Cc: Andrzej Hajda <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Jernej Skrabec <[email protected]>
Cc: Jonas Karlman <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Laurent Pinchart <[email protected]>
Cc: Liu Ying <[email protected]>
Cc: Maarten Lankhorst <[email protected]>
Cc: Maxime Ripard <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Pengutronix Kernel Team <[email protected]>
Cc: Philipp Zabel <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Robert Foss <[email protected]>
Cc: Sascha Hauer <[email protected]>
Cc: Shawn Guo <[email protected]>
Cc: Thomas Zimmermann <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V2: Update rockchip,dw-hdmi.yaml as well

---
 .../bindings/display/bridge/synopsys,dw-hdmi.yaml         | 8 ++++++++
 .../devicetree/bindings/display/imx/fsl,imx6-hdmi.yaml    | 8 --------
 .../bindings/display/rockchip/rockchip,dw-hdmi.yaml       | 8 --------
 3 files changed, 8 insertions(+), 16 deletions(-)
Documentation/devicetree/bindings/display/bridge/synopsys,dw-hdmi.yaml +8 -0
index 4b7e54a8f037f..828709a8ded26 100644
@@ -45,6 +45,14 @@ properties:
       - const: isfr
     additionalItems: true
 
+  ddc-i2c-bus:
+    $ref: /schemas/types.yaml#/definitions/phandle
+    description:
+      The HDMI DDC bus can be connected to either a system I2C master or the
+      functionally-reduced I2C master contained in the DWC HDMI. When connected
+      to a system I2C master this property contains a phandle to that I2C
+      master controller.
+
   interrupts:
     maxItems: 1
 
Documentation/devicetree/bindings/display/imx/fsl,imx6-hdmi.yaml +0 -8
index 7979cf07f1199..180c4b510fb12 100644
@@ -31,14 +31,6 @@ properties:
   clock-names:
     maxItems: 2
 
-  ddc-i2c-bus:
-    $ref: /schemas/types.yaml#/definitions/phandle
-    description:
-      The HDMI DDC bus can be connected to either a system I2C master or the
-      functionally-reduced I2C master contained in the DWC HDMI. When connected
-      to a system I2C master this property contains a phandle to that I2C
-      master controller.
-
   gpr:
     $ref: /schemas/types.yaml#/definitions/phandle
     description:
Documentation/devicetree/bindings/display/rockchip/rockchip,dw-hdmi.yaml +0 -8
index 2aac62219ff64..9d096856a79a6 100644
@@ -70,14 +70,6 @@ properties:
           - vpll
           - ref
 
-  ddc-i2c-bus:
-    $ref: /schemas/types.yaml#/definitions/phandle
-    description:
-      The HDMI DDC bus can be connected to either a system I2C master or the
-      functionally-reduced I2C master contained in the DWC HDMI. When connected
-      to a system I2C master this property contains a phandle to that I2C
-      master controller.
-
   phys:
     maxItems: 1
     description: The HDMI PHY
Signature · 1 line
2.43.0
#1 lore raw

Re: [PATCH v2] dt-bindings: display: synopsys,dw-hdmi: Document ddc-i2c-bus in core

Quoted 6 lines · Marek Vasut

The DW HDMI driver core is responsible for parsing the 'ddc-i2c-bus' property, move the property description into the DW HDMI common DT schema too, so this property can be used on all devices integrating the DW HDMI core.

---

+CC Mark

Quoted 65 lines

---
V2: Update rockchip,dw-hdmi.yaml as well

---
  .../bindings/display/bridge/synopsys,dw-hdmi.yaml         | 8 ++++++++
  .../devicetree/bindings/display/imx/fsl,imx6-hdmi.yaml    | 8 --------
  .../bindings/display/rockchip/rockchip,dw-hdmi.yaml       | 8 --------
  3 files changed, 8 insertions(+), 16 deletions(-)
Documentation/devicetree/bindings/display/bridge/synopsys,dw-hdmi.yaml +8 -0
index 4b7e54a8f037f..828709a8ded26 100644
@@ -45,6 +45,14 @@ properties:
        - const: isfr
      additionalItems: true
 
+  ddc-i2c-bus:
+    $ref: /schemas/types.yaml#/definitions/phandle
+    description:
+      The HDMI DDC bus can be connected to either a system I2C master or the
+      functionally-reduced I2C master contained in the DWC HDMI. When connected
+      to a system I2C master this property contains a phandle to that I2C
+      master controller.
+
    interrupts:
      maxItems: 1
 
Documentation/devicetree/bindings/display/imx/fsl,imx6-hdmi.yaml +0 -8
index 7979cf07f1199..180c4b510fb12 100644
@@ -31,14 +31,6 @@ properties:
    clock-names:
      maxItems: 2
 
-  ddc-i2c-bus:
-    $ref: /schemas/types.yaml#/definitions/phandle
-    description:
-      The HDMI DDC bus can be connected to either a system I2C master or the
-      functionally-reduced I2C master contained in the DWC HDMI. When connected
-      to a system I2C master this property contains a phandle to that I2C
-      master controller.
-
    gpr:
      $ref: /schemas/types.yaml#/definitions/phandle
      description:
Documentation/devicetree/bindings/display/rockchip/rockchip,dw-hdmi.yaml +0 -8
index 2aac62219ff64..9d096856a79a6 100644
@@ -70,14 +70,6 @@ properties:
            - vpll
            - ref
 
-  ddc-i2c-bus:
-    $ref: /schemas/types.yaml#/definitions/phandle
-    description:
-      The HDMI DDC bus can be connected to either a system I2C master or the
-      functionally-reduced I2C master contained in the DWC HDMI. When connected
-      to a system I2C master this property contains a phandle to that I2C
-      master controller.
-
    phys:
      maxItems: 1
      description: The HDMI PHY
reviewer Reviewed-by on v2 1/1
#2 lore raw

Re: [PATCH v2] dt-bindings: display: synopsys,dw-hdmi: Document ddc-i2c-bus in core

In reply to Marek Vasut

Hi Marek,

Thank you for the patch.

Quoted 3 lines · Marek Vasut

The DW HDMI driver core is responsible for parsing the 'ddc-i2c-bus' property, move the property description into the DW HDMI common DT schema too, so this property can be used on all devices integrating the DW HDMI core.

De-duplicating documentation is good :-)

I see no reason why this property should be disallowed on any of the platforms that integrate a DW HDMI (unless that platform has no other I2C controller, but I think we can ignore that in the bindings).

There could be platforms where the DW HDMI DDC pins are not exposed, making the ddc-i2c-bus property mandatory, but that's something for platform-specific bindings to handle by simply adding a

required:
- ddc-i2c-bus

That's a separate issue. This patch looks good to me.

Quoted 92 lines

---
Cc: Andrzej Hajda <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Jernej Skrabec <[email protected]>
Cc: Jonas Karlman <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Laurent Pinchart <[email protected]>
Cc: Liu Ying <[email protected]>
Cc: Maarten Lankhorst <[email protected]>
Cc: Maxime Ripard <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Pengutronix Kernel Team <[email protected]>
Cc: Philipp Zabel <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Robert Foss <[email protected]>
Cc: Sascha Hauer <[email protected]>
Cc: Shawn Guo <[email protected]>
Cc: Thomas Zimmermann <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V2: Update rockchip,dw-hdmi.yaml as well

---
 .../bindings/display/bridge/synopsys,dw-hdmi.yaml         | 8 ++++++++
 .../devicetree/bindings/display/imx/fsl,imx6-hdmi.yaml    | 8 --------
 .../bindings/display/rockchip/rockchip,dw-hdmi.yaml       | 8 --------
 3 files changed, 8 insertions(+), 16 deletions(-)
Documentation/devicetree/bindings/display/bridge/synopsys,dw-hdmi.yaml +8 -0
index 4b7e54a8f037f..828709a8ded26 100644
@@ -45,6 +45,14 @@ properties:
       - const: isfr
     additionalItems: true
 
+  ddc-i2c-bus:
+    $ref: /schemas/types.yaml#/definitions/phandle
+    description:
+      The HDMI DDC bus can be connected to either a system I2C master or the
+      functionally-reduced I2C master contained in the DWC HDMI. When connected
+      to a system I2C master this property contains a phandle to that I2C
+      master controller.
+
   interrupts:
     maxItems: 1
 
Documentation/devicetree/bindings/display/imx/fsl,imx6-hdmi.yaml +0 -8
index 7979cf07f1199..180c4b510fb12 100644
@@ -31,14 +31,6 @@ properties:
   clock-names:
     maxItems: 2
 
-  ddc-i2c-bus:
-    $ref: /schemas/types.yaml#/definitions/phandle
-    description:
-      The HDMI DDC bus can be connected to either a system I2C master or the
-      functionally-reduced I2C master contained in the DWC HDMI. When connected
-      to a system I2C master this property contains a phandle to that I2C
-      master controller.
-
   gpr:
     $ref: /schemas/types.yaml#/definitions/phandle
     description:
Documentation/devicetree/bindings/display/rockchip/rockchip,dw-hdmi.yaml +0 -8
index 2aac62219ff64..9d096856a79a6 100644
@@ -70,14 +70,6 @@ properties:
           - vpll
           - ref
 
-  ddc-i2c-bus:
-    $ref: /schemas/types.yaml#/definitions/phandle
-    description:
-      The HDMI DDC bus can be connected to either a system I2C master or the
-      functionally-reduced I2C master contained in the DWC HDMI. When connected
-      to a system I2C master this property contains a phandle to that I2C
-      master controller.
-
   phys:
     maxItems: 1
     description: The HDMI PHY
Signature · 3 lines
Regards,

Laurent Pinchart
maintainer
#3 lore raw

Re: [PATCH v2] dt-bindings: display: synopsys,dw-hdmi: Document ddc-i2c-bus in core

Quoted 10 lines · Laurent Pinchart

Hi Marek,

Thank you for the patch.

Quoted 3 lines · Marek Vasut

The DW HDMI driver core is responsible for parsing the 'ddc-i2c-bus' property, move the property description into the DW HDMI common DT schema too, so this property can be used on all devices integrating the DW HDMI core.

De-duplicating documentation is good :-)

Generally, yes.

Quoted 3 lines

I see no reason why this property should be disallowed on any of the platforms that integrate a DW HDMI (unless that platform has no other I2C controller, but I think we can ignore that in the bindings).

The main reason is Because this property should be in a connector node as the I2C bus is connected to the connector not the HDMI block.

I would suggest this gets marked 'deprecated'. Can be a separate patch.

Rob

Acked-by on v2 1/1
#4 lore raw

Re: [PATCH v2] dt-bindings: display: synopsys,dw-hdmi: Document ddc-i2c-bus in core

In reply to Marek Vasut
Quoted 3 lines · Marek Vasut

The DW HDMI driver core is responsible for parsing the 'ddc-i2c-bus' property, move the property description into the DW HDMI common DT schema too, so this property can be used on all devices integrating the DW HDMI core.

Cheers,
Conor.