Skip to contentSkip to conversation

arm64: dts: renesas: r8a77970: add LVDS support

PATCH Superseded Sergei Shtylyov 2 participants 2 messages Jan 19, 2018

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 4/5 arm64: dts: renesas: r8a77970: add LVDS support

Define the generic R8A77970 part of the LVDS device node.

---
 arch/arm64/boot/dts/renesas/r8a77970.dtsi |   25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970.dtsi +25 -0
Index: renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================
@@ -654,6 +654,31 @@
 				port at 1 {
 					reg = <1>;
 					du_out_lvds: endpoint {
+						remote-endpoint = <&lvds_in>;
+					};
+				};
+			};
+		};
+
+		lvds: lvds at feb90000 {
+			compatible = "renesas,r8a77970-lvds";
+			reg = <0 0xfeb90000 0 0x14>;
+			clocks = <&cpg CPG_MOD 727>;
+			status = "disabled";
+
+			ports {
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				port at 0 {
+					reg = <0>;
+					lvds_in: endpoint {
+						remote-endpoint = <&du_out_lvds>;
+					};
+				};
+				port at 1 {
+					reg = <1>;
+					lvds_out: endpoint {
 					};
 				};
 			};
#1 lore raw

PATCH 4/5 arm64: dts: renesas: r8a77970: add LVDS support

Hi Sergei,

Quoted 3 lines · Sergei Shtylyov

Define the generic R8A77970 part of the LVDS device node.

I love your patch! Yet something to improve...

Quoted 6 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +0 -0
@@ -654,6 +654,31 @@
                                port at 1 {
                                        reg = <1>;
                                        du_out_lvds: endpoint {

arch/arm64/boot/dts/renesas/r8a77970.dtsi line 666

Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +10 -0
+                                               remote-endpoint = <&lvds_in>;
+                                       };
+                               };
+                       };
+               };
+
+               lvds: lvds at feb90000 {
+                       compatible = "renesas,r8a77970-lvds";
+                       reg = <0 0xfeb90000 0 0x14>;
+                       clocks = <&cpg CPG_MOD 727>;

Missing resets and power-domains properties.

Quoted 9 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +8 -0
+                       status = "disabled";
+
+                       ports {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               port at 0 {
+                                       reg = <0>;

arch/arm64/boot/dts/renesas/r8a77970.dtsi line 684

Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +7 -0
+                                       lvds_in: endpoint {
+                                               remote-endpoint = <&du_out_lvds>;
+                                       };
+                               };
+                               port at 1 {
+                                       reg = <1>;
+                                       lvds_out: endpoint {
                                        };
                                };
                        };

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds