Skip to contentSkip to conversation

arm64: dts: renesas: r8a77970: enable HDMI output

PATCH In review Niklas Söderlund 4 participants 9 messages Jan 31, 2018 – Feb 15, 2018 1 message not in the archive

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

cover arm64: dts: renesas: r8a77970: enable HDMI output

From: Niklas Söderlund <[email protected]>

Hi,

This series enables the HDMI out put on V3M. It is based on top of the latest renesas-drivers release and depends on patches from both Laurent and Sergei.

- [PATCH v2 00/12] R-Car DU: Convert LVDS code to bridge driver
- [PATCH v2 0/2] Add R-Car V3M (R8A77970) support to the DU driver
- [PATCH 0/3] Add R-Car V3M (R8A77970) support to the R-Car LVDS driver

It is tested on V3M by connecting the HDMI output to a monitor and booting the board. To console shall eventually show up on the screen.

Niklas Söderlund (5):
arm64: dts: renesas: r8a77970: add FCPVD node
arm64: dts: renesas: r8a77970: Add VSPD instance
arm64: dts: renesas: r8a77970: add DU instance
arm64: dts: renesas: r8a77970: add the LVDS instance
arm64: dts: renesas: eagle: add HDMI output using the ADV7511W

 arch/arm64/boot/dts/renesas/r8a77970-eagle.dts | 66 +++++++++++++++++++++++
 arch/arm64/boot/dts/renesas/r8a77970.dtsi      | 72 ++++++++++++++++++++++++++
 2 files changed, 138 insertions(+)
Signature · 1 line
2.16.1
#1 lore raw

PATCH 1/5 arm64: dts: renesas: r8a77970: add FCPVD node

From: Niklas Söderlund <[email protected]>

The FCPVD handles the interface between VSPD and memory.

---
 arch/arm64/boot/dts/renesas/r8a77970.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970.dtsi +9 -0
index 13c88414cb432b1a..05640d3f9f2421a7 100644
@@ -612,6 +612,15 @@
 			#address-cells = <1>;
 			#size-cells = <0>;
 		};
+
+		fcpvd0: fcp@fea27000 {
+			compatible = "renesas,fcpv";
+			reg = <0 0xfea27000 0 0x200>;
+			clocks = <&cpg CPG_MOD 603>;
+			power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
+			resets = <&cpg 603>;
+			iommus = <&ipmmu_vi0 8>;
+		};
 	};
 
 	timer {
Signature · 1 line
2.16.1
#2 lore raw

PATCH 2/5 arm64: dts: renesas: r8a77970: Add VSPD instance

In reply to Niklas Söderlund

From: Niklas Söderlund <[email protected]>

The r8a77970 only have the VSPD.

---
 arch/arm64/boot/dts/renesas/r8a77970.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970.dtsi +11 -0
index 05640d3f9f2421a7..8419576dab50f460 100644
@@ -613,6 +613,17 @@
 			#size-cells = <0>;
 		};
 
+		vspd0: vsp@fea20000 {
+			compatible = "renesas,vsp2";
+			reg = <0 0xfea20000 0 0x4000>;
+			interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 623>;
+			power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
+			resets = <&cpg 623>;
+
+			renesas,fcp = <&fcpvd0>;
+		};
+
 		fcpvd0: fcp@fea27000 {
 			compatible = "renesas,fcpv";
 			reg = <0 0xfea27000 0 0x200>;
Signature · 1 line
2.16.1
#3 lore raw

PATCH 3/5 arm64: dts: renesas: r8a77970: add DU instance

In reply to Niklas Söderlund

From: Niklas Söderlund <[email protected]>

Add the DU device to r8a77970.dtsi in a disabled state.

---
 arch/arm64/boot/dts/renesas/r8a77970.dtsi | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970.dtsi +27 -0
index 8419576dab50f460..e1d8aa0fbc1e4f90 100644
@@ -632,6 +632,33 @@
 			resets = <&cpg 603>;
 			iommus = <&ipmmu_vi0 8>;
 		};
+
+		du: display@feb00000 {
+			compatible = "renesas,du-r8a77970";
+			reg = <0 0xfeb00000 0 0x70000>;
+			interrupts = <GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 724>;
+			clock-names = "du.0";
+			status = "disabled";
+
+			vsps = <&vspd0>;
+
+			ports {
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				port@0 {
+					reg = <0>;
+					du_out_rgb: endpoint {
+					};
+				};
+				port@1 {
+					reg = <1>;
+					du_out_lvds0: endpoint {
+					};
+				};
+			};
+		};
 	};
 
 	timer {
Signature · 1 line
2.16.1
#4 lore raw

PATCH 4/5 arm64: dts: renesas: r8a77970: add the LVDS instance

In reply to Niklas Söderlund

From: Niklas Söderlund <[email protected]>

Add the LVDS device to r8a77970.dtsi in a disabled state. Also connect the it to the LVDS output of the DU.

---
 arch/arm64/boot/dts/renesas/r8a77970.dtsi | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970.dtsi +25 -0
index e1d8aa0fbc1e4f90..3945a34550d17321 100644
@@ -655,6 +655,31 @@
 				port@1 {
 					reg = <1>;
 					du_out_lvds0: endpoint {
+						remote-endpoint = <&lvds0_in>;
+					};
+				};
+			};
+		};
+
+		lvds0: lvds@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@0 {
+					reg = <0>;
+					lvds0_in: endpoint {
+						remote-endpoint = <&du_out_lvds0>;
+					};
+				};
+				port@1 {
+					reg = <1>;
+					lvds0_out: endpoint {
 					};
 				};
 			};
Signature · 1 line
2.16.1
#6 lore raw

PATCH 5/5 arm64: dts: renesas: eagle: add HDMI output using the ADV7511W

In reply to Niklas Söderlund

From: Niklas Söderlund <[email protected]>

Add the HDMI connector and the ADV7511W, also connect it to LVDS. Enable the DU and LVDS to be able to use the HDMI output.

---
 arch/arm64/boot/dts/renesas/r8a77970-eagle.dts | 66 ++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +66 -0
index 359e835cca9876fe..c0fd144970c55fa2 100644
@@ -31,6 +31,17 @@
 		/* first 128MB is reserved for secure area. */
 		reg = <0x0 0x48000000 0x0 0x38000000>;
 	};
+
+	hdmi-out {
+		compatible = "hdmi-connector";
+		type = "a";
+
+		port {
+			hdmi_con_out: endpoint {
+				remote-endpoint = <&adv7511_out>;
+			};
+		};
+	};
 };
 
 &avb {
@@ -67,9 +78,46 @@
 		gpio-controller;
 		#gpio-cells = <2>;
 	};
+
+	hdmi@39 {
+		compatible = "adi,adv7511w";
+		reg = <0x39>;
+		interrupt-parent = <&gpio1>;
+		interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
+
+		adi,input-depth = <8>;
+		adi,input-colorspace = "rgb";
+		adi,input-clock = "1x";
+		adi,input-style = <1>;
+		adi,input-justification = "evenly";
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port@0 {
+				reg = <0>;
+				adv7511_in: endpoint {
+					remote-endpoint = <&lvds0_out>;
+				};
+			};
+
+			port@1 {
+				reg = <1>;
+				adv7511_out: endpoint {
+					remote-endpoint = <&hdmi_con_out>;
+				};
+			};
+		};
+	};
 };
 
 &pfc {
+	du_pins: du {
+		groups = "du_rgb666", "du_sync", "du_oddf", "du_clk_out";
+		function = "du";
+	};
+
 	i2c0_pins: i2c0 {
 		groups = "i2c0";
 		function = "i2c0";
@@ -92,3 +140,21 @@
 
 	status = "okay";
 };
+
+&du {
+	pinctrl-0 = <&du_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+};
+
+&lvds0 {
+	status = "okay";
+
+	ports {
+		port@1 {
+			endpoint {
+				remote-endpoint = <&adv7511_in>;
+			};
+		};
+	};
+};
Signature · 1 line
2.16.1
#5 lore raw

Re: [PATCH 4/5] arm64: dts: renesas: r8a77970: add the LVDS instance

In reply to Niklas Söderlund

Hi Niklas,

Quoted 6 lines · Niklas Söderlund

From: Niklas Söderlund <[email protected]>

Add the LVDS device to r8a77970.dtsi in a disabled state. Also connect the it to the LVDS output of the DU.

FWIW, Sergei sent the exact same patch before...

Quoted 12 lines
---
 arch/arm64/boot/dts/renesas/r8a77970.dtsi | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970.dtsi +0 -0
index e1d8aa0fbc1e4f90..3945a34550d17321 100644
@@ -655,6 +655,31 @@
                                port@1 {
                                        reg = <1>;
                                        du_out_lvds0: endpoint {

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

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

... also with missing power-domains and resets properties.

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

Quoted 1 line
arch/arm64/boot/dts/renesas/r8a77970.dtsi +1 -0
+                       status = "disabled";

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

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

#9 lore raw
In reply to Niklas Söderlund
Quoted 12 lines · Niklas Söderlund

From: Niklas Söderlund <[email protected]>

Hi,

This series enables the HDMI out put on V3M. It is based on top of the latest renesas-drivers release and depends on patches from both Laurent and Sergei.

- [PATCH v2 00/12] R-Car DU: Convert LVDS code to bridge driver
- [PATCH v2 0/2] Add R-Car V3M (R8A77970) support to the DU driver
- [PATCH 0/3] Add R-Car V3M (R8A77970) support to the R-Car LVDS driver

Quoted 8 lines

It is tested on V3M by connecting the HDMI output to a monitor and booting the board. To console shall eventually show up on the screen.

Niklas Söderlund (5):
arm64: dts: renesas: r8a77970: add FCPVD node
arm64: dts: renesas: r8a77970: Add VSPD instance
arm64: dts: renesas: r8a77970: add DU instance
arm64: dts: renesas: r8a77970: add the LVDS instance

I have already posted such series, hadn't you seen it?

Quoted 1 line

arm64: dts: renesas: eagle: add HDMI output using the ADV7511W

Not posted this patch, however -- I was only doing it for the V3M Starter
Kit board.

Quoted 3 lines
  arch/arm64/boot/dts/renesas/r8a77970-eagle.dts | 66 +++++++++++++++++++++++
  arch/arm64/boot/dts/renesas/r8a77970.dtsi      | 72 ++++++++++++++++++++++++++
  2 files changed, 138 insertions(+)

MBR, Sergei

#8 lore raw

Re: [PATCH 5/5] arm64: dts: renesas: eagle: add HDMI output using the ADV7511W

In reply to a message not in the archive

Hi Niklas,

Quoted 33 lines · Niklas Söderlund

From: Niklas Söderlund <[email protected]>

Add the HDMI connector and the ADV7511W, also connect it to LVDS. Enable the DU and LVDS to be able to use the HDMI output.

---
 arch/arm64/boot/dts/renesas/r8a77970-eagle.dts | 66 ++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +11 -0
index 359e835cca9876fe..c0fd144970c55fa2 100644
@@ -31,6 +31,17 @@
 		/* first 128MB is reserved for secure area. */
 		reg = <0x0 0x48000000 0x0 0x38000000>;
 	};
+
+	hdmi-out {
+		compatible = "hdmi-connector";
+		type = "a";
+
+		port {
+			hdmi_con_out: endpoint {
+				remote-endpoint = <&adv7511_out>;
+			};
+		};
+	};
 };
 
 &avb {

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts line 84

Quoted 7 lines
arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +4 -0
@@ -67,9 +78,46 @@
 		gpio-controller;
 		#gpio-cells = <2>;
 	};
+
+	hdmi@39 {
+		compatible = "adi,adv7511w";
+		reg = <0x39>;

It looks like the Eagle-V3M expansion board also has an ADV7511 chip on it.

That brings it into the same category as the Wheat board, and because of a fault on the ADV7511 reset - *both* chips will have to specify alternate custom I2C registers. (Alternatively, the expansion board could override the reg and reg-names of this device node to handle this as an overlay style fix up).

Not an issue with this patch - or a blocker - but something to be aware of.

--
Kieran

Quoted 52 lines
arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +41 -0
+		interrupt-parent = <&gpio1>;
+		interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
+
+		adi,input-depth = <8>;
+		adi,input-colorspace = "rgb";
+		adi,input-clock = "1x";
+		adi,input-style = <1>;
+		adi,input-justification = "evenly";
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port@0 {
+				reg = <0>;
+				adv7511_in: endpoint {
+					remote-endpoint = <&lvds0_out>;
+				};
+			};
+
+			port@1 {
+				reg = <1>;
+				adv7511_out: endpoint {
+					remote-endpoint = <&hdmi_con_out>;
+				};
+			};
+		};
+	};
 };
 
 &pfc {
+	du_pins: du {
+		groups = "du_rgb666", "du_sync", "du_oddf", "du_clk_out";
+		function = "du";
+	};
+
 	i2c0_pins: i2c0 {
 		groups = "i2c0";
 		function = "i2c0";
@@ -92,3 +140,21 @@
 
 	status = "okay";
 };
+
+&du {
+	pinctrl-0 = <&du_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+};
+
+&lvds0 {

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts line 160

Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +10 -0
+	status = "okay";
+
+	ports {
+		port@1 {
+			endpoint {
+				remote-endpoint = <&adv7511_in>;
+			};
+		};
+	};
+};

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html