Skip to contentSkip to conversation

dt-bindings: drm: rockchip: convert inno_hdmi-rockchip.txt to yaml

PATCH Applied Johan Jonker 5 participants 10 messages Dec 4, 2023 – Dec 12, 2023

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

PATCH 1/3 dt-bindings: drm: rockchip: convert inno_hdmi-rockchip.txt to yaml

Convert inno_hdmi-rockchip.txt to yaml.

---

Note for rob+dt:
Used enum to "soon" be able to add "rockchip,rk3128-inno-hdmi"

Changed V1:
Rename file to more common layout
Add/fix hdmi_out port example

---
 .../display/rockchip/inno_hdmi-rockchip.txt   |  49 ---------
 .../display/rockchip/rockchip,inno-hdmi.yaml  | 103 ++++++++++++++++++
 2 files changed, 103 insertions(+), 49 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/rockchip/inno_hdmi-rockchip.txt
 create mode 100644 Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml
Documentation/devicetree/bindings/display/rockchip/inno_hdmi-rockchip.txt deleted +0 -49
deleted file mode 100644
index cec21714f0e0..000000000000
@@ -1,49 +0,0 @@
-Rockchip specific extensions to the Innosilicon HDMI
-================================
-
-Required properties:
-- compatible:
-	"rockchip,rk3036-inno-hdmi";
-- reg:
-	Physical base address and length of the controller's registers.
-- clocks, clock-names:
-	Phandle to hdmi controller clock, name should be "pclk"
-- interrupts:
-	HDMI interrupt number
-- ports:
-	Contain one port node with endpoint definitions as defined in
-	Documentation/devicetree/bindings/graph.txt.
-- pinctrl-0, pinctrl-name:
-	Switch the iomux of HPD/CEC pins to HDMI function.
-
-Example:
-hdmi: hdmi@20034000 {
-	compatible = "rockchip,rk3036-inno-hdmi";
-	reg = <0x20034000 0x4000>;
-	interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
-	clocks = <&cru  PCLK_HDMI>;
-	clock-names = "pclk";
-	pinctrl-names = "default";
-	pinctrl-0 = <&hdmi_ctl>;
-
-	hdmi_in: port {
-		#address-cells = <1>;
-		#size-cells = <0>;
-		hdmi_in_lcdc: endpoint@0 {
-			reg = <0>;
-			remote-endpoint = <&lcdc_out_hdmi>;
-		};
-	};
-};
-
-&pinctrl {
-	hdmi {
-		hdmi_ctl: hdmi-ctl {
-			rockchip,pins = <1 8  RK_FUNC_1 &pcfg_pull_none>,
-					<1 9  RK_FUNC_1 &pcfg_pull_none>,
-					<1 10 RK_FUNC_1 &pcfg_pull_none>,
-					<1 11 RK_FUNC_1 &pcfg_pull_none>;
-		};
-	};
-
-};
Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml new file +103 -0

103 lines not on this page · raw message

--
2.39.2

#1 lore raw

PATCH 2/3 ARM: dts: rockchip: rk3036: fix hdmi ports node

Fix hdmi ports node so that it matches the
rockchip,inno-hdmi.yaml binding.

---
 arch/arm/boot/dts/rockchip/rk3036.dtsi | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)
arch/arm/boot/dts/rockchip/rk3036.dtsi +11 -3
index 8aa2e0864fed..2b00109bea6a 100644
@@ -405,12 +405,20 @@ hdmi: hdmi@20034000 {
 		pinctrl-0 = <&hdmi_ctl>;
 		status = "disabled";
 
-		hdmi_in: port {
+		ports {
 			#address-cells = <1>;
 			#size-cells = <0>;
-			hdmi_in_vop: endpoint@0 {
+
+			hdmi_in: port@0 {
 				reg = <0>;
-				remote-endpoint = <&vop_out_hdmi>;
+
+				hdmi_in_vop: endpoint {
+					remote-endpoint = <&vop_out_hdmi>;
+				};
+			};
+
+			hdmi_out: port@1 {
+				reg = <1>;
 			};
 		};
 	};

--
2.39.2

#2 lore raw

PATCH 3/3 ARM: dts: rockchip: rk3036-kylin: add hdmi-connector node

In reply to Johan Jonker

Add hdmi-connector node to comply with the inno_hdmi binding.

---
 arch/arm/boot/dts/rockchip/rk3036-kylin.dts | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
arch/arm/boot/dts/rockchip/rk3036-kylin.dts +17 -0
index 67e1e04139e7..a213333be011 100644
@@ -13,6 +13,17 @@ memory@60000000 {
 		reg = <0x60000000 0x20000000>;
 	};
 
+	hdmi_con: hdmi-con {
+		compatible = "hdmi-connector";
+		type = "c";
+
+		port {
+			hdmi_con_in: endpoint {
+				remote-endpoint = <&hdmi_out_con>;
+			};
+		};
+	};
+
 	leds: gpio-leds {
 		compatible = "gpio-leds";
 
@@ -110,6 +121,12 @@ &hdmi {
 	status = "okay";
 };
 
+&hdmi_out {
+	hdmi_out_con: endpoint {
+		remote-endpoint = <&hdmi_con_in>;
+	};
+};
+
 &i2c1 {
 	clock-frequency = <400000>;
 

--
2.39.2

#3 lore raw

Re: [PATCH v1 3/3] ARM: dts: rockchip: rk3036-kylin: add hdmi-connector node

Hi Johan,
Am 04.12.23 um 18:40 schrieb Johan Jonker:

Quoted 12 lines

Add hdmi-connector node to comply with the inno_hdmi binding.

---
  arch/arm/boot/dts/rockchip/rk3036-kylin.dts | 17 +++++++++++++++++
  1 file changed, 17 insertions(+)
arch/arm/boot/dts/rockchip/rk3036-kylin.dts +0 -0
index 67e1e04139e7..a213333be011 100644

arch/arm/boot/dts/rockchip/rk3036-kylin.dts memory@60000000 { · line 18

Quoted 6 lines
arch/arm/boot/dts/rockchip/rk3036-kylin.dts +3 -0
@@ -13,6 +13,17 @@ memory@60000000 {
  		reg = <0x60000000 0x20000000>;
  	};
 
+	hdmi_con: hdmi-con {
+		compatible = "hdmi-connector";
+		type = "c";

According to [0], kylin has an A-Type HDMI port - so this should be
+ type = "a";

[0] http://rockchip.wikidot.com/kylin

Regards,
Alex

Quoted 32 lines
arch/arm/boot/dts/rockchip/rk3036-kylin.dts +14 -1
+
+		port {
+			hdmi_con_in: endpoint {
+				remote-endpoint = <&hdmi_out_con>;
+			};
+		};
+	};
+
  	leds: gpio-leds {
  		compatible = "gpio-leds";
 
@@ -110,6 +121,12 @@ &hdmi {
  	status = "okay";
  };
 
+&hdmi_out {
+	hdmi_out_con: endpoint {
+		remote-endpoint = <&hdmi_con_in>;
+	};
+};
+
  &i2c1 {
  	clock-frequency = <400000>;
 
--

2.39.2

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

#4 lore raw

Re: [PATCH v1 3/3] ARM: dts: rockchip: rk3036-kylin: add hdmi-connector node

Hi Alex, Heiko,

Quoted 17 lines · Alex Bee

Hi Johan,
Am 04.12.23 um 18:40 schrieb Johan Jonker:

Quoted 15 lines

Add hdmi-connector node to comply with the inno_hdmi binding.

---
  arch/arm/boot/dts/rockchip/rk3036-kylin.dts | 17 +++++++++++++++++

  1 file changed, 17 insertions(+)
arch/arm/boot/dts/rockchip/rk3036-kylin.dts +0 -0
index 67e1e04139e7..a213333be011 100644
@@ -13,6 +13,17 @@ memory@60000000 {
           reg = <0x60000000 0x20000000>;
       };
 
Quoted 8 lines

arch/arm/boot/dts/rockchip/rk3036-kylin.dts memory@60000000 { · line 18

Quoted 3 lines
arch/arm/boot/dts/rockchip/rk3036-kylin.dts +3 -0
+    hdmi_con: hdmi-con {
+        compatible = "hdmi-connector";
+        type = "c";

According to [0], kylin has an A-Type HDMI port - so this should be +        type = "a";

Quoted 1 line

[0] http://rockchip.wikidot.com/kylin

Not sure from the text or do I miss something...

I did look at that board picture before submitting. Can be wrong, but to me it looks a smaller HDMI connector.

Does anyone have a Kylin picture from a different angle? Or reference design?

Else apply and fix later? (Heiko ?)
Let me know.

Johan

Quoted 36 lines

Regards,
Alex

Quoted 32 lines
arch/arm/boot/dts/rockchip/rk3036-kylin.dts +8 -0
+
+        port {
+            hdmi_con_in: endpoint {
+                remote-endpoint = <&hdmi_out_con>;
+            };
+        };
+    };
+

      leds: gpio-leds {
          compatible = "gpio-leds";

arch/arm/boot/dts/rockchip/rk3036-kylin.dts +6 -0
@@ -110,6 +121,12 @@ &hdmi {
       status = "okay";
   };
 
+&hdmi_out {
+    hdmi_out_con: endpoint {
+        remote-endpoint = <&hdmi_con_in>;
+    };
+};
+
   &i2c1 {
       clock-frequency = <400000>;
 
Signature · 7 lines
2.39.2


_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
#5 lore raw
In reply to Johan Jonker

Hi Johan,
Am 04.12.23 um 18:39 schrieb Johan Jonker:

Quoted 1 line

Convert inno_hdmi-rockchip.txt to yaml.

Nice - I'm having something very similar on my queue :)

Quoted 6 lines

---

Note for rob+dt:
Used enum to "soon" be able to add "rockchip,rk3128-inno-hdmi"

Yeah, actually I'm planning to submit it really soon (if timne allows).

Quoted 87 lines

Changed V1:
Rename file to more common layout
Add/fix hdmi_out port example

---
  .../display/rockchip/inno_hdmi-rockchip.txt   |  49 ---------
  .../display/rockchip/rockchip,inno-hdmi.yaml  | 103 ++++++++++++++++++
  2 files changed, 103 insertions(+), 49 deletions(-)

delete mode 100644 Documentation/devicetree/bindings/display/rockchip/inno_hdmi-rockchip.txt create mode 100644 Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml

Documentation/devicetree/bindings/display/rockchip/inno_hdmi-rockchip.txt deleted +0 -49
deleted file mode 100644
index cec21714f0e0..000000000000
@@ -1,49 +0,0 @@
-Rockchip specific extensions to the Innosilicon HDMI
-================================
-
-Required properties:
-- compatible:
-	"rockchip,rk3036-inno-hdmi";
-- reg:
-	Physical base address and length of the controller's registers.
-- clocks, clock-names:
-	Phandle to hdmi controller clock, name should be "pclk"
-- interrupts:
-	HDMI interrupt number
-- ports:
-	Contain one port node with endpoint definitions as defined in
-	Documentation/devicetree/bindings/graph.txt.
-- pinctrl-0, pinctrl-name:
-	Switch the iomux of HPD/CEC pins to HDMI function.
-
-Example:
-hdmi: hdmi@20034000 {
-	compatible = "rockchip,rk3036-inno-hdmi";
-	reg = <0x20034000 0x4000>;
-	interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
-	clocks = <&cru  PCLK_HDMI>;
-	clock-names = "pclk";
-	pinctrl-names = "default";
-	pinctrl-0 = <&hdmi_ctl>;
-
-	hdmi_in: port {
-		#address-cells = <1>;
-		#size-cells = <0>;
-		hdmi_in_lcdc: endpoint@0 {
-			reg = <0>;
-			remote-endpoint = <&lcdc_out_hdmi>;
-		};
-	};
-};
-
-&pinctrl {
-	hdmi {
-		hdmi_ctl: hdmi-ctl {
-			rockchip,pins = <1 8  RK_FUNC_1 &pcfg_pull_none>,
-					<1 9  RK_FUNC_1 &pcfg_pull_none>,
-					<1 10 RK_FUNC_1 &pcfg_pull_none>,
-					<1 11 RK_FUNC_1 &pcfg_pull_none>;
-		};
-	};
-
-};
Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml new file +15 -0
new file mode 100644
index 000000000000..96889c86849a
@@ -0,0 +1,103 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/rockchip/rockchip,inno-hdmi.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Rockchip Innosilicon HDMI controller
+
+maintainers:
+  - Sandy Huang <[email protected]>
+  - Heiko Stuebner <[email protected]>
+
+properties:
+  compatible:
+    enum:

Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml line 25

Quoted 10 lines
Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml new file +10 -0
+      - rockchip,rk3036-inno-hdmi
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    maxItems: 1

The interrupts/clock description exists already in the txt-bindings - so how about:

+ items:
+ - descrition: ....

Quoted 23 lines
Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml new file +23 -0
+
+  clock-names:
+    const: pclk
+
+  ports:
+    $ref: /schemas/graph.yaml#/properties/ports
+
+    properties:
+      port@0:
+        $ref: /schemas/graph.yaml#/properties/port
+        description:
+          Port node with one endpoint connected to a vop node.
+
+      port@1:
+        $ref: /schemas/graph.yaml#/properties/port
+        description:
+          Port node with one endpoint connected to a hdmi-connector node.
+
+    required:
+      - port@0
+      - port@1
+
+required:

Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml line 58

Quoted 10 lines
Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml new file +10 -0
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+  - clock-names
+  - pinctrl-0
+  - pinctrl-names
+  - ports
+
+additionalProperties: false

Did you check that with dtbs_check? RK3036's SoC dtsi also contains a

rockchip,grf = <&grf>;

and I'm not seeing this removed in this series.

It would be great if that would added here to as requirement
for RK3036 too (and updated in the example)
Even if it is beyond a pure txt to yaml conversion: RK3036 needs to set HDMI polarities in GRF.

Regards,
Alex

Quoted 53 lines
Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml new file +45 -1
+
+examples:
+  - |
+    #include <dt-bindings/clock/rk3036-cru.h>
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+    #include <dt-bindings/pinctrl/rockchip.h>
+    hdmi: hdmi@20034000 {
+      compatible = "rockchip,rk3036-inno-hdmi";
+      reg = <0x20034000 0x4000>;
+      interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
+      clocks = <&cru  PCLK_HDMI>;
+      clock-names = "pclk";
+      pinctrl-names = "default";
+      pinctrl-0 = <&hdmi_ctl>;
+
+      ports {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        hdmi_in: port@0 {
+          reg = <0>;
+          hdmi_in_vop: endpoint {
+            remote-endpoint = <&vop_out_hdmi>;
+          };
+        };
+
+        hdmi_out: port@1 {
+          reg = <1>;
+          hdmi_out_con: endpoint {
+            remote-endpoint = <&hdmi_con_in>;
+          };
+        };
+      };
+    };
+
+    pinctrl {
+      hdmi {
+        hdmi_ctl: hdmi-ctl {
+          rockchip,pins = <1 RK_PB0 1 &pcfg_pull_none>,
+                          <1 RK_PB1 1 &pcfg_pull_none>,
+                          <1 RK_PB2 1 &pcfg_pull_none>,
+                          <1 RK_PB3 1 &pcfg_pull_none>;
+        };
+      };
+    };
--

2.39.2

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

#6 lore raw

Hi,

Quoted 5 lines · Alex Bee

Hi Johan,
Am 04.12.23 um 18:39 schrieb Johan Jonker:

Quoted 1 line

Convert inno_hdmi-rockchip.txt to yaml.

Nice - I'm having something very similar on my queue :)

Quoted 1 line
Quoted 7 lines
Quoted 5 lines

---

Note for rob+dt:
   Used enum to "soon" be able to add "rockchip,rk3128-inno-hdmi"

Yeah, actually I'm planning to submit it really soon (if timne allows).

;)

Quoted 100 lines
Quoted 87 lines

Changed V1:
   Rename file to more common layout
   Add/fix hdmi_out port example
---
  .../display/rockchip/inno_hdmi-rockchip.txt   |  49 --------- .../display/rockchip/rockchip,inno-hdmi.yaml  | 103 ++++++++++++++++++

  2 files changed, 103 insertions(+), 49 deletions(-)

  delete mode 100644 Documentation/devicetree/bindings/display/rockchip/inno_hdmi-rockchip.txt create mode 100644 Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml

Documentation/devicetree/bindings/display/rockchip/inno_hdmi-rockchip.txt deleted +0 -49
deleted file mode 100644
index cec21714f0e0..000000000000
@@ -1,49 +0,0 @@
-Rockchip specific extensions to the Innosilicon HDMI
-================================
-
-Required properties:
-- compatible:
-    "rockchip,rk3036-inno-hdmi";
-- reg:
-    Physical base address and length of the controller's registers.
-- clocks, clock-names:
-    Phandle to hdmi controller clock, name should be "pclk"
-- interrupts:
-    HDMI interrupt number
-- ports:
-    Contain one port node with endpoint definitions as defined in
-    Documentation/devicetree/bindings/graph.txt.
-- pinctrl-0, pinctrl-name:
-    Switch the iomux of HPD/CEC pins to HDMI function.
-
-Example:
-hdmi: hdmi@20034000 {
-    compatible = "rockchip,rk3036-inno-hdmi";
-    reg = <0x20034000 0x4000>;
-    interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
-    clocks = <&cru  PCLK_HDMI>;
-    clock-names = "pclk";
-    pinctrl-names = "default";
-    pinctrl-0 = <&hdmi_ctl>;
-
-    hdmi_in: port {
-        #address-cells = <1>;
-        #size-cells = <0>;
-        hdmi_in_lcdc: endpoint@0 {
-            reg = <0>;
-            remote-endpoint = <&lcdc_out_hdmi>;
-        };
-    };
-};
-
-&pinctrl {
-    hdmi {
-        hdmi_ctl: hdmi-ctl {
-            rockchip,pins = <1 8  RK_FUNC_1 &pcfg_pull_none>,
-                    <1 9  RK_FUNC_1 &pcfg_pull_none>,
-                    <1 10 RK_FUNC_1 &pcfg_pull_none>,
-                    <1 11 RK_FUNC_1 &pcfg_pull_none>;
-        };
-    };
-
-};
Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml new file +15 -0
new file mode 100644
index 000000000000..96889c86849a
@@ -0,0 +1,103 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/rockchip/rockchip,inno-hdmi.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Rockchip Innosilicon HDMI controller
+
+maintainers:
+  - Sandy Huang <[email protected]>
+  - Heiko Stuebner <[email protected]>
+
+properties:
+  compatible:
+    enum:

Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml line 25

Quoted 10 lines
Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml new file +10 -0
+      - rockchip,rk3036-inno-hdmi
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    maxItems: 1

The interrupts/clock description exists already in the txt-bindings - so how about:

Quoted 3 lines

+    items:
+      - descrition: ....

Quoted 1 line
Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml new file +1 -0
+

It's not common to do so when there's only one clock and nothing special to mention. Used this style for most of my conversions.
Further rational might be given by Krzysztof and co.

Quoted 35 lines
Quoted 22 lines
Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml new file +22 -0
+  clock-names:
+    const: pclk
+
+  ports:
+    $ref: /schemas/graph.yaml#/properties/ports
+
+    properties:
+      port@0:
+        $ref: /schemas/graph.yaml#/properties/port
+        description:
+          Port node with one endpoint connected to a vop node.
+
+      port@1:
+        $ref: /schemas/graph.yaml#/properties/port
+        description:
+          Port node with one endpoint connected to a hdmi-connector node.
+
+    required:
+      - port@0
+      - port@1
+
+required:

Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml line 58

Quoted 10 lines
Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml new file +10 -0
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+  - clock-names
+  - pinctrl-0
+  - pinctrl-names
+  - ports
+
+additionalProperties: false

Did you check that with dtbs_check? RK3036's SoC dtsi also contains a

Quoted 4 lines

 rockchip,grf = <&grf>;

and I'm not seeing this removed in this series.

I did check. Currently grf is not used in a mainline driver and only in the Rockchip tree. Choose to keep it as it is for now.

Quoted 3 lines

It would be great if that would added here to as requirement
for RK3036 too  (and updated in the example)
Even if it is beyond a pure txt to yaml conversion: RK3036 needs to set HDMI polarities in GRF.

It's a good habit to do one action per patch. In this case we convert an exciting document. Everyone is free to add further properties if needed.

Johan

Quoted 57 lines

Regards,
Alex

Quoted 53 lines
Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml new file +45 -0
+
+examples:
+  - |
+    #include <dt-bindings/clock/rk3036-cru.h>
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+    #include <dt-bindings/pinctrl/rockchip.h>
+    hdmi: hdmi@20034000 {
+      compatible = "rockchip,rk3036-inno-hdmi";
+      reg = <0x20034000 0x4000>;
+      interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
+      clocks = <&cru  PCLK_HDMI>;
+      clock-names = "pclk";
+      pinctrl-names = "default";
+      pinctrl-0 = <&hdmi_ctl>;
+
+      ports {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        hdmi_in: port@0 {
+          reg = <0>;
+          hdmi_in_vop: endpoint {
+            remote-endpoint = <&vop_out_hdmi>;
+          };
+        };
+
+        hdmi_out: port@1 {
+          reg = <1>;
+          hdmi_out_con: endpoint {
+            remote-endpoint = <&hdmi_con_in>;
+          };
+        };
+      };
+    };
+
+    pinctrl {
+      hdmi {
+        hdmi_ctl: hdmi-ctl {
+          rockchip,pins = <1 RK_PB0 1 &pcfg_pull_none>,
+                          <1 RK_PB1 1 &pcfg_pull_none>,
+                          <1 RK_PB2 1 &pcfg_pull_none>,
+                          <1 RK_PB3 1 &pcfg_pull_none>;
+        };
+      };
+    };
Signature · 7 lines
2.39.2


_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
#7 lore raw
Quoted 36 lines · Johan Jonker
Quoted 35 lines · Alex Bee

Am 04.12.23 um 18:39 schrieb Johan Jonker:

Quoted 21 lines
Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml new file +15 -0
new file mode 100644
index 000000000000..96889c86849a
@@ -0,0 +1,103 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/rockchip/rockchip,inno-hdmi.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Rockchip Innosilicon HDMI controller
+
+maintainers:
+  - Sandy Huang <[email protected]>
+  - Heiko Stuebner <[email protected]>
+
+properties:
+  compatible:
+    enum:

Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml line 25

Quoted 10 lines
Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml new file +10 -0
+      - rockchip,rk3036-inno-hdmi
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    maxItems: 1

The interrupts/clock description exists already in the txt-bindings - so how about:

Quoted 7 lines
Quoted 3 lines

+    items:
+      - descrition: ....

Quoted 1 line
Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml new file +1 -0
+

It's not common to do so when there's only one clock and nothing special to mention. Used this style for most of my conversions.
Further rational might be given by Krzysztof and co.

Ye, when there is no ambiguity, having the description is not required.

maintainer Applied
#8 lore raw
In reply to Johan Jonker
Quoted 11 lines · Johan Jonker

Convert inno_hdmi-rockchip.txt to yaml.

---

Note for rob+dt:
Used enum to "soon" be able to add "rockchip,rk3128-inno-hdmi"

Changed V1:
Rename file to more common layout
Add/fix hdmi_out port example

Quoted 7 lines
---
 .../display/rockchip/inno_hdmi-rockchip.txt   |  49 ---------
 .../display/rockchip/rockchip,inno-hdmi.yaml  | 103 ++++++++++++++++++
 2 files changed, 103 insertions(+), 49 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/rockchip/inno_hdmi-rockchip.txt
 create mode 100644 Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml

Applied, thanks!

maintainer Applied
#9 lore raw

Re: (subset) [PATCH v1 1/3] dt-bindings: drm: rockchip: convert inno_hdmi-rockchip.txt to yaml

In reply to Johan Jonker
Quoted 3 lines · Johan Jonker

Convert inno_hdmi-rockchip.txt to yaml.

Applied, thanks!

[2/3] ARM: dts: rockchip: rk3036: fix hdmi ports node

      commit: 27ded76ef0fcfcf939914532aae575cf23c221b4
[3/3] ARM: dts: rockchip: rk3036-kylin: add hdmi-connector node
      commit: 569b26af7919c15a8ce231b4fae29cfbd811f144

And changed the connector-type to "a" :-)

Best regards,

Signature · 1 line
Heiko Stuebner <[email protected]>