Skip to contentSkip to conversation

Add Display support

PATCH In review Biju Das 3 participants 15 messages Oct 2, 2019

Subsystems (2)
lore
Share & tools
lore

Biju Das

author
#0 lore raw

v2 cover Add Display support

This patch adds display support for hihope RZ/G2N board.

This patch depend upon
https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=177939

V1-->V2
* Incorporated Laurent's review comments for LVDS panels.

Biju Das (9):
arm64: dts: renesas: hihope-common: Move du clk properties out of
common dtsi
arm64: dts: renesas: r8a774b1: Add DU device to DT
arm64: dts: renesas: r8a774b1: Add HDMI encoder instance
arm64: dts: renesas: r8a774b1-hihope-rzg2n: Add display clock
properties
arm64: dts: renesas: r8a774b1: Add FDP1 device nodes
arm64: dts: renesas: r8a774b1: Add PWM device nodes
arm64: dts: renesas: hihope-rzg2-ex: Enable backlight
arm64: dts: renesas: hihope-rzg2-ex: Add LVDS support
arm64: dts: renesas: Add support for Advantech idk-1110wr LVDS panel

 arch/arm64/boot/dts/renesas/hihope-common.dtsi     |   8 --
 arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi    |  49 ++++++++
 .../boot/dts/renesas/r8a774a1-hihope-rzg2m.dts     |  11 ++
 .../boot/dts/renesas/r8a774b1-hihope-rzg2n.dts     |  11 ++
 arch/arm64/boot/dts/renesas/r8a774b1.dtsi          | 133 +++++++++++++++++++++
 .../renesas/rzg2-advantech-idk-1110wr-panel.dtsi   |  42 +++++++
 6 files changed, 246 insertions(+), 8 deletions(-)
 create mode 100644 arch/arm64/boot/dts/renesas/rzg2-advantech-idk-1110wr-panel.dtsi
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH v2 1/9 arm64: dts: renesas: hihope-common: Move du clk properties out of common dtsi

RZ/G2N board is pin compatible with RZ/G2M board. However on the SoC side RZ/G2N uses DU3 where as RZ/G2M uses DU2 for the DPAD. In order to reuse the common dtsi for both the boards, it is required to move du clock properties from common dtsi to board specific dts.

---
V1-->V2
* No change
* Added Laurent's Reviewed-by tag.

---
 arch/arm64/boot/dts/renesas/hihope-common.dtsi        |  8 --------
 arch/arm64/boot/dts/renesas/r8a774a1-hihope-rzg2m.dts | 11 +++++++++++
 2 files changed, 11 insertions(+), 8 deletions(-)
arch/arm64/boot/dts/renesas/hihope-common.dtsi +0 -8
index 3e376d2..355d0a2 100644
@@ -142,14 +142,6 @@
 };
 
 &du {
-	clocks = <&cpg CPG_MOD 724>,
-		 <&cpg CPG_MOD 723>,
-		 <&cpg CPG_MOD 722>,
-		 <&versaclock5 1>,
-		 <&x302_clk>,
-		 <&versaclock5 2>;
-	clock-names = "du.0", "du.1", "du.2",
-		      "dclkin.0", "dclkin.1", "dclkin.2";
 	status = "okay";
 };
 
arch/arm64/boot/dts/renesas/r8a774a1-hihope-rzg2m.dts +11 -0
index 93ca973..96f2fb0 100644
@@ -24,3 +24,14 @@
 		reg = <0x6 0x00000000 0x0 0x80000000>;
 	};
 };
+
+&du {
+	clocks = <&cpg CPG_MOD 724>,
+		 <&cpg CPG_MOD 723>,
+		 <&cpg CPG_MOD 722>,
+		 <&versaclock5 1>,
+		 <&x302_clk>,
+		 <&versaclock5 2>;
+	clock-names = "du.0", "du.1", "du.2",
+		      "dclkin.0", "dclkin.1", "dclkin.2";
+};
Signature · 1 line
2.7.4
author
#2 lore raw

PATCH v2 2/9 arm64: dts: renesas: r8a774b1: Add DU device to DT

In reply to Biju Das

Add the DU device to r8a774b1 SoC DT.

---
V1-->V2
* No change
* Added Laurent's Reviewed-by tag.

---
 arch/arm64/boot/dts/renesas/r8a774b1.dtsi | 38 +++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
arch/arm64/boot/dts/renesas/r8a774b1.dtsi +38 -0
index 9d5630a..777b45d 100644
@@ -1285,7 +1285,18 @@
 		};
 
 		du: display@feb00000 {
+			compatible = "renesas,du-r8a774b1";
 			reg = <0 0xfeb00000 0 0x80000>;
+			interrupts = <GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 268 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 270 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 724>,
+				 <&cpg CPG_MOD 723>,
+				 <&cpg CPG_MOD 721>;
+			clock-names = "du.0", "du.1", "du.3";
+			status = "disabled";
+
+			vsps = <&vspd0 0>, <&vspd1 0>, <&vspd0 1>;
 
 			ports {
 				#address-cells = <1>;
@@ -1304,6 +1315,33 @@
 				port@2 {
 					reg = <2>;
 					du_out_lvds0: endpoint {
+						remote-endpoint = <&lvds0_in>;
+					};
+				};
+			};
+		};
+
+		lvds0: lvds@feb90000 {
+			compatible = "renesas,r8a774b1-lvds";
+			reg = <0 0xfeb90000 0 0x14>;
+			clocks = <&cpg CPG_MOD 727>;
+			power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
+			resets = <&cpg 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.7.4
author
#3 lore raw

PATCH v2 3/9 arm64: dts: renesas: r8a774b1: Add HDMI encoder instance

In reply to Biju Das

Add the HDMI encoder to the R8A774B1 DT in disabled state.

---
V1-->V2
* No change
* Added Laurent's Reviewed-by tag.

---
 arch/arm64/boot/dts/renesas/r8a774b1.dtsi | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
arch/arm64/boot/dts/renesas/r8a774b1.dtsi +15 -0
index 777b45d..979be5a 100644
@@ -1267,7 +1267,16 @@
 		};
 
 		hdmi0: hdmi@fead0000 {
+			compatible = "renesas,r8a774b1-hdmi",
+				     "renesas,rcar-gen3-hdmi";
 			reg = <0 0xfead0000 0 0x10000>;
+			interrupts = <GIC_SPI 389 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 729>,
+				 <&cpg CPG_CORE R8A774B1_CLK_HDMI>;
+			clock-names = "iahb", "isfr";
+			power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
+			resets = <&cpg 729>;
+			status = "disabled";
 
 			ports {
 				#address-cells = <1>;
@@ -1276,11 +1285,16 @@
 				port@0 {
 					reg = <0>;
 					dw_hdmi0_in: endpoint {
+						remote-endpoint = <&du_out_hdmi0>;
 					};
 				};
 				port@1 {
 					reg = <1>;
 				};
+				port@2 {
+					/* HDMI sound */
+					reg = <2>;
+				};
 			};
 		};
 
@@ -1310,6 +1324,7 @@
 				port@1 {
 					reg = <1>;
 					du_out_hdmi0: endpoint {
+						remote-endpoint = <&dw_hdmi0_in>;
 					};
 				};
 				port@2 {
Signature · 1 line
2.7.4
author
#4 lore raw

PATCH v2 4/9 arm64: dts: renesas: r8a774b1-hihope-rzg2n: Add display clock properties

In reply to Biju Das

Add display clock properties for the HiHope RZ/G2N board.

---
V1-->V2
* No change
* Added Laurent's Reviewed-by tag.

---
 arch/arm64/boot/dts/renesas/r8a774b1-hihope-rzg2n.dts | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm64/boot/dts/renesas/r8a774b1-hihope-rzg2n.dts +11 -0
index c9e2119..9910c1a 100644
@@ -25,6 +25,17 @@
 	};
 };
 
+&du {
+	clocks = <&cpg CPG_MOD 724>,
+		 <&cpg CPG_MOD 723>,
+		 <&cpg CPG_MOD 721>,
+		 <&versaclock5 1>,
+		 <&x302_clk>,
+		 <&versaclock5 2>;
+	clock-names = "du.0", "du.1", "du.3",
+		      "dclkin.0", "dclkin.1", "dclkin.3";
+};
+
 &sdhi3 {
 	mmc-hs400-1_8v;
 };
Signature · 1 line
2.7.4
author
#5 lore raw

PATCH v2 5/9 arm64: dts: renesas: r8a774b1: Add FDP1 device nodes

In reply to Biju Das

The r8a774b1 has a single FDP1 instance.

---
V1-->V2
* No change
* Added Laurent's Reviewed-by tag.

---
 arch/arm64/boot/dts/renesas/r8a774b1.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm64/boot/dts/renesas/r8a774b1.dtsi +10 -0
index 979be5a..93b2e88 100644
@@ -1182,6 +1182,16 @@
 			/* placeholder */
 		};
 
+		fdp1@fe940000 {
+			compatible = "renesas,fdp1";
+			reg = <0 0xfe940000 0 0x2400>;
+			interrupts = <GIC_SPI 262 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 119>;
+			power-domains = <&sysc R8A774B1_PD_A3VP>;
+			resets = <&cpg 119>;
+			renesas,fcp = <&fcpf0>;
+		};
+
 		fcpf0: fcp@fe950000 {
 			compatible = "renesas,fcpf";
 			reg = <0 0xfe950000 0 0x200>;
Signature · 1 line
2.7.4
author
#6 lore raw

PATCH v2 6/9 arm64: dts: renesas: r8a774b1: Add PWM device nodes

In reply to Biju Das

This patch adds PWM device nodes to r8a774b1 SoC DT.

---
V1-->V2
* No change
* Added Laurent's Reviewed-by tag.

---
 arch/arm64/boot/dts/renesas/r8a774b1.dtsi | 70 +++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)
arch/arm64/boot/dts/renesas/r8a774b1.dtsi +70 -0
index 93b2e88..538e9ce 100644
@@ -940,6 +940,76 @@
 			/* placeholder */
 		};
 
+		pwm0: pwm@e6e30000 {
+			compatible = "renesas,pwm-r8a774b1", "renesas,pwm-rcar";
+			reg = <0 0xe6e30000 0 0x8>;
+			#pwm-cells = <2>;
+			clocks = <&cpg CPG_MOD 523>;
+			resets = <&cpg 523>;
+			power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
+			status = "disabled";
+		};
+
+		pwm1: pwm@e6e31000 {
+			compatible = "renesas,pwm-r8a774b1", "renesas,pwm-rcar";
+			reg = <0 0xe6e31000 0 0x8>;
+			#pwm-cells = <2>;
+			clocks = <&cpg CPG_MOD 523>;
+			resets = <&cpg 523>;
+			power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
+			status = "disabled";
+		};
+
+		pwm2: pwm@e6e32000 {
+			compatible = "renesas,pwm-r8a774b1", "renesas,pwm-rcar";
+			reg = <0 0xe6e32000 0 0x8>;
+			#pwm-cells = <2>;
+			clocks = <&cpg CPG_MOD 523>;
+			resets = <&cpg 523>;
+			power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
+			status = "disabled";
+		};
+
+		pwm3: pwm@e6e33000 {
+			compatible = "renesas,pwm-r8a774b1", "renesas,pwm-rcar";
+			reg = <0 0xe6e33000 0 0x8>;
+			#pwm-cells = <2>;
+			clocks = <&cpg CPG_MOD 523>;
+			resets = <&cpg 523>;
+			power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
+			status = "disabled";
+		};
+
+		pwm4: pwm@e6e34000 {
+			compatible = "renesas,pwm-r8a774b1", "renesas,pwm-rcar";
+			reg = <0 0xe6e34000 0 0x8>;
+			#pwm-cells = <2>;
+			clocks = <&cpg CPG_MOD 523>;
+			resets = <&cpg 523>;
+			power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
+			status = "disabled";
+		};
+
+		pwm5: pwm@e6e35000 {
+			compatible = "renesas,pwm-r8a774b1", "renesas,pwm-rcar";
+			reg = <0 0xe6e35000 0 0x8>;
+			#pwm-cells = <2>;
+			clocks = <&cpg CPG_MOD 523>;
+			resets = <&cpg 523>;
+			power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
+			status = "disabled";
+		};
+
+		pwm6: pwm@e6e36000 {
+			compatible = "renesas,pwm-r8a774b1", "renesas,pwm-rcar";
+			reg = <0 0xe6e36000 0 0x8>;
+			#pwm-cells = <2>;
+			clocks = <&cpg CPG_MOD 523>;
+			resets = <&cpg 523>;
+			power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
+			status = "disabled";
+		};
+
 		scif0: serial@e6e60000 {
 			compatible = "renesas,scif-r8a774b1",
 				     "renesas,rcar-gen3-scif", "renesas,scif";
Signature · 1 line
2.7.4
author
#7 lore raw

PATCH v2 7/9 arm64: dts: renesas: hihope-rzg2-ex: Enable backlight

In reply to Biju Das

This patch enables backlight support.

---
V1-->V2
* No change
* Added Laurent's Reviewed-by tag.

---
 arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi +20 -0
index 4280b19..70f9a2a 100644
@@ -13,6 +13,14 @@
 	chosen {
 		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 	};
+
+	backlight {
+		compatible = "pwm-backlight";
+		pwms = <&pwm0 0 50000>;
+
+		brightness-levels = <0 2 8 16 32 64 128 255>;
+		default-brightness-level = <6>;
+	};
 };
 
 &avb {
@@ -82,4 +90,16 @@
 		groups = "can1_data";
 		function = "can1";
 	};
+
+	pwm0_pins: pwm0 {
+		groups = "pwm0";
+		function = "pwm0";
+	};
+};
+
+&pwm0 {
+	pinctrl-0 = <&pwm0_pins>;
+	pinctrl-names = "default";
+
+	status = "okay";
 };
Signature · 1 line
2.7.4
author
#8 lore raw

PATCH v2 8/9 arm64: dts: renesas: hihope-rzg2-ex: Add LVDS support

In reply to Biju Das

This patch adds LVDS support for RZ/G2[MN] boards.

---
V1-->V2
* Incorporated Laurent's review comments

---
 arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi | 29 +++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi +29 -0
index 70f9a2a..1c7ef69 100644
@@ -51,6 +51,34 @@
 	status = "okay";
 };
 
+&gpio1 {
+	/*
+	 * When GP1_20 is LOW LVDS0 is connected to the LVDS connector
+	 * When GP1_20 is HIGH LVDS0 is connected to the LT8918L
+	 */
+	lvds-connector-en-gpio {
+		gpio-hog;
+		gpios = <20 GPIO_ACTIVE_HIGH>;
+		output-low;
+		line-name = "lvds-connector-en-gpio";
+	};
+};
+
+&lvds0 {
+	/* Please include the lvds panel dtsi file and uncomment the below line
+	 * to enable lvds panel connected to RZ/G2[MN] boards.
+	 */
+
+	/* status = "okay"; */
+
+	ports {
+		port@1 {
+			lvds_connector: endpoint {
+			};
+		};
+	};
+};
+
 &pciec0 {
 	status = "okay";
 };
@@ -103,3 +131,4 @@
 
 	status = "okay";
 };
+
Signature · 1 line
2.7.4
Reviewed-by on v2 8/9
#9 lore raw

Re: [PATCH v2 8/9] arm64: dts: renesas: hihope-rzg2-ex: Add LVDS support

Hi Biju,

Thank you for the patch.

Quoted 23 lines · Biju Das

This patch adds LVDS support for RZ/G2[MN] boards.

---
V1-->V2
* Incorporated Laurent's review comments

---
 arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi | 29 +++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi +5 -0
index 70f9a2a..1c7ef69 100644
@@ -51,6 +51,34 @@
 	status = "okay";
 };
 
+&gpio1 {
+	/*
+	 * When GP1_20 is LOW LVDS0 is connected to the LVDS connector
+	 * When GP1_20 is HIGH LVDS0 is connected to the LT8918L
+	 */

arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi line 68

Quoted 10 lines
arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi +10 -0
+	lvds-connector-en-gpio {
+		gpio-hog;
+		gpios = <20 GPIO_ACTIVE_HIGH>;
+		output-low;
+		line-name = "lvds-connector-en-gpio";
+	};
+};
+
+&lvds0 {
+	/* Please include the lvds panel dtsi file and uncomment the below line

/* should be on a line of its own.

arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi line 69

Quoted 1 line
arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi +1 -0
+	 * to enable lvds panel connected to RZ/G2[MN] boards.

Maybe s/lvds/LVDS/ and s/dtsi/.dtsi/ ? Up to you.

Quoted 16 lines
arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi +12 -0
+	 */
+
+	/* status = "okay"; */
+
+	ports {
+		port@1 {
+			lvds_connector: endpoint {
+			};
+		};
+	};
+};
+
 &pciec0 {
 	status = "okay";
 };

arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi line 134

Quoted 4 lines
arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi +1 -0
@@ -103,3 +131,4 @@
 
 	status = "okay";
 };
+

And this seems unrelated. With those little issues fixed,

Signature · 3 lines
Regards,

Laurent Pinchart
author
#10 lore raw

RE: [PATCH v2 8/9] arm64: dts: renesas: hihope-rzg2-ex: Add LVDS support

Hi Laurent,

Thanks for the feedback.

Quoted 45 lines

Subject: Re: [PATCH v2 8/9] arm64: dts: renesas: hihope-rzg2-ex: Add LVDS support

Hi Biju,

Thank you for the patch.

Quoted 8 lines · Biju Das

This patch adds LVDS support for RZ/G2[MN] boards.

---
V1-->V2
* Incorporated Laurent's review comments

---
 arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi | 29

+++++++++++++++++++++++++

Review

Quoted 3 lines
 1 file changed, 29 insertions(+)
(quoted diff) +0 -0

b/arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi

Quoted 12 lines

index 70f9a2a..1c7ef69 100644

arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi +5 -0
@@ -51,6 +51,34 @@
 	status = "okay";
 };
 
+&gpio1 {
+	/*
+	 * When GP1_20 is LOW LVDS0 is connected to the LVDS connector
+	 * When GP1_20 is HIGH LVDS0 is connected to the LT8918L
+	 */

arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi line 68

Quoted 10 lines
arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi +10 -0
+	lvds-connector-en-gpio {
+		gpio-hog;
+		gpios = <20 GPIO_ACTIVE_HIGH>;
+		output-low;
+		line-name = "lvds-connector-en-gpio";
+	};
+};
+
+&lvds0 {
+	/* Please include the lvds panel dtsi file and uncomment the below

line

Quoted 5 lines

/* should be on a line of its own.

arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi line 69

Quoted 1 line
arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi +1 -0
+	 * to enable lvds panel connected to RZ/G2[MN] boards.

Maybe s/lvds/LVDS/ and s/dtsi/.dtsi/ ? Up to you.

OK. Will change this.

Quoted 17 lines
Quoted 17 lines
arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi +12 -0
+	 */
+
+	/* status = "okay"; */
+
+	ports {
+		port@1 {
+			lvds_connector: endpoint {
+			};
+		};
+	};
+};
+
 &pciec0 {
 	status = "okay";
 };
@@ -103,3 +131,4 @@
 
Quoted 3 lines

arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi line 66

Quoted 3 lines
arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi +1 -0
 	status = "okay";
 };
+

It is a mistake. Will take out.

Quoted 8 lines

And this seems unrelated. With those little issues fixed,

--
Regards,

Laurent Pinchart

author
#11 lore raw

PATCH v2 9/9 arm64: dts: renesas: Add support for Advantech idk-1110wr LVDS panel

In reply to Biju Das

This patch adds support for Advantech idk-1110wr LVDS panel. The HiHope RZ/G2[MN] is advertised as compatible with panel idk-1110wr from Advantech, however the panel isn't sold alongside the board.

---
V1-->V2
* Incorporated Laurent's review comments

---
 .../renesas/rzg2-advantech-idk-1110wr-panel.dtsi   | 42 ++++++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 arch/arm64/boot/dts/renesas/rzg2-advantech-idk-1110wr-panel.dtsi
arch/arm64/boot/dts/renesas/rzg2-advantech-idk-1110wr-panel.dtsi new file +42 -0
new file mode 100644
index 0000000..4f876df
@@ -0,0 +1,42 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Device Tree Source for the Advantech idk-1110wr LVDS panel connected
+ * to RZ/G2 boards
+ *
+ * Copyright (C) 2019 Renesas Electronics Corp.
+ */
+
+/ {
+
+	panel-lvds {
+		compatible = "advantech,idk-1110wr", "panel-lvds";
+
+		width-mm = <223>;
+		height-mm = <125>;
+
+		data-mapping = "jeida-24";
+
+		panel-timing {
+			/* 1024x600 @60Hz */
+			clock-frequency = <51200000>;
+			hactive = <1024>;
+			vactive = <600>;
+			hsync-len = <240>;
+			hfront-porch = <40>;
+			hback-porch = <40>;
+			vfront-porch = <15>;
+			vback-porch = <10>;
+			vsync-len = <10>;
+		};
+
+		port {
+			panel_in: endpoint {
+				remote-endpoint = <&lvds_connector>;
+			};
+		};
+	};
+};
+
+&lvds_connector {
+	remote-endpoint = <&panel_in>;
+};
Signature · 1 line
2.7.4
#12 lore raw

RE: [PATCH v2 9/9] arm64: dts: renesas: Add support for Advantech idk-1110wr LVDS panel

Quoted 10 lines

From: Biju Das <[email protected]>
Sent: 02 October 2019 11:08
Subject: [PATCH v2 9/9] arm64: dts: renesas: Add support for Advantech idk-1110wr LVDS panel

This patch adds support for Advantech idk-1110wr LVDS panel. The HiHope RZ/G2[MN] is advertised as compatible with panel idk-1110wr from Advantech, however the panel isn't sold alongside the board.

Quoted 59 lines

---
V1-->V2
* Incorporated Laurent's review comments

---
 .../renesas/rzg2-advantech-idk-1110wr-panel.dtsi   | 42 ++++++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 arch/arm64/boot/dts/renesas/rzg2-advantech-idk-1110wr-panel.dtsi
arch/arm64/boot/dts/renesas/rzg2-advantech-idk- renamed from arch/arm64/boot/dts/renesas/rzg2-advantech-idk-1110wr-panel.dtsi +0 -0

1110wr-panel.dtsi
new file mode 100644
index 0000000..4f876df

arch/arm64/boot/dts/renesas/rzg2-advantech-idk-1110wr-panel.dtsi new file +42 -1
@@ -0,0 +1,42 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Device Tree Source for the Advantech idk-1110wr LVDS panel connected
+ * to RZ/G2 boards
+ *
+ * Copyright (C) 2019 Renesas Electronics Corp.
+ */
+
+/ {
+
+	panel-lvds {
+		compatible = "advantech,idk-1110wr", "panel-lvds";
+
+		width-mm = <223>;
+		height-mm = <125>;
+
+		data-mapping = "jeida-24";
+
+		panel-timing {
+			/* 1024x600 @60Hz */
+			clock-frequency = <51200000>;
+			hactive = <1024>;
+			vactive = <600>;
+			hsync-len = <240>;
+			hfront-porch = <40>;
+			hback-porch = <40>;
+			vfront-porch = <15>;
+			vback-porch = <10>;
+			vsync-len = <10>;
+		};
+
+		port {
+			panel_in: endpoint {
+				remote-endpoint = <&lvds_connector>;
+			};
+		};
+	};
+};
+
+&lvds_connector {
+	remote-endpoint = <&panel_in>;
+};
--

2.7.4

Reviewed-by on v2 9/9
#13 lore raw

Re: [PATCH v2 9/9] arm64: dts: renesas: Add support for Advantech idk-1110wr LVDS panel

In reply to Biju Das

Hi Biju,

Thank you for the patch.

Quoted 20 lines · Biju Das

This patch adds support for Advantech idk-1110wr LVDS panel. The HiHope RZ/G2[MN] is advertised as compatible with panel idk-1110wr from Advantech, however the panel isn't sold alongside the board.

---
V1-->V2
* Incorporated Laurent's review comments

---
 .../renesas/rzg2-advantech-idk-1110wr-panel.dtsi   | 42 ++++++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 arch/arm64/boot/dts/renesas/rzg2-advantech-idk-1110wr-panel.dtsi
arch/arm64/boot/dts/renesas/rzg2-advantech-idk-1110wr-panel.dtsi new file +0 -0
new file mode 100644
index 0000000..4f876df

arch/arm64/boot/dts/renesas/rzg2-advantech-idk-1110wr-panel.dtsi line 10

Quoted 10 lines
arch/arm64/boot/dts/renesas/rzg2-advantech-idk-1110wr-panel.dtsi new file +10 -0
@@ -0,0 +1,42 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Device Tree Source for the Advantech idk-1110wr LVDS panel connected
+ * to RZ/G2 boards
+ *
+ * Copyright (C) 2019 Renesas Electronics Corp.
+ */
+
+/ {
+

No need for a blank line here. Apart from this,

Quoted 32 lines
arch/arm64/boot/dts/renesas/rzg2-advantech-idk-1110wr-panel.dtsi new file +32 -0
+	panel-lvds {
+		compatible = "advantech,idk-1110wr", "panel-lvds";
+
+		width-mm = <223>;
+		height-mm = <125>;
+
+		data-mapping = "jeida-24";
+
+		panel-timing {
+			/* 1024x600 @60Hz */
+			clock-frequency = <51200000>;
+			hactive = <1024>;
+			vactive = <600>;
+			hsync-len = <240>;
+			hfront-porch = <40>;
+			hback-porch = <40>;
+			vfront-porch = <15>;
+			vback-porch = <10>;
+			vsync-len = <10>;
+		};
+
+		port {
+			panel_in: endpoint {
+				remote-endpoint = <&lvds_connector>;
+			};
+		};
+	};
+};
+
+&lvds_connector {
+	remote-endpoint = <&panel_in>;
+};
Signature · 3 lines
Regards,

Laurent Pinchart
author
#14 lore raw

RE: [PATCH v2 9/9] arm64: dts: renesas: Add support for Advantech idk-1110wr LVDS panel

Hi Laurent,

Thanks for the feedback.

Quoted 31 lines

Subject: Re: [PATCH v2 9/9] arm64: dts: renesas: Add support for Advantech idk-1110wr LVDS panel

Hi Biju,

Thank you for the patch.

Quoted 10 lines · Biju Das

This patch adds support for Advantech idk-1110wr LVDS panel. The HiHope RZ/G2[MN] is advertised as compatible with panel idk-1110wr from Advantech, however the panel isn't sold alongside the board.

---
V1-->V2
* Incorporated Laurent's review comments

---
 .../renesas/rzg2-advantech-idk-1110wr-panel.dtsi   | 42

++++++++++++++++++++++

arch/arm64/boot/dts/renesas/rzg2-advantech-idk-1110wr-

Quoted 11 lines
 1 file changed, 42 insertions(+)
 create mode 100644

arch/arm64/boot/dts/renesas/rzg2-advantech-idk-1110wr-panel.dtsi

diff --git a/arch/arm64/boot/dts/renesas/rzg2-advantech-idk-1110wr-panel.dtsi b/arch/arm64/boot/dts/renesas/rzg2-advantech-idk-1110wr-panel.dtsi new file mode 100644
index 0000000..4f876df

arch/arm64/boot/dts/renesas/rzg2-advantech-idk-1110wr- new file +0 -0

panel.dtsi

Quoted 12 lines

arch/arm64/boot/dts/renesas/rzg2-advantech-idk-1110wr- line 11

Quoted 12 lines
arch/arm64/boot/dts/renesas/rzg2-advantech-idk-1110wr- new file +11 -0
@@ -0,0 +1,42 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Device Tree Source for the Advantech idk-1110wr LVDS panel
+connected
+ * to RZ/G2 boards
+ *
+ * Copyright (C) 2019 Renesas Electronics Corp.
+ */
+
+/ {
+

OK. Will fix this.

Quoted 41 lines

No need for a blank line here. Apart from this,

Quoted 22 lines
arch/arm64/boot/dts/renesas/rzg2-advantech-idk-1110wr- new file +22 -0
+	panel-lvds {
+		compatible = "advantech,idk-1110wr", "panel-lvds";
+
+		width-mm = <223>;
+		height-mm = <125>;
+
+		data-mapping = "jeida-24";
+
+		panel-timing {
+			/* 1024x600 @60Hz */
+			clock-frequency = <51200000>;
+			hactive = <1024>;
+			vactive = <600>;
+			hsync-len = <240>;
+			hfront-porch = <40>;
+			hback-porch = <40>;
+			vfront-porch = <15>;
+			vback-porch = <10>;
+			vsync-len = <10>;
+		};
+
+		port {

arch/arm64/boot/dts/renesas/rzg2-advantech-idk-1110wr-

Quoted 10 lines
arch/arm64/boot/dts/renesas/rzg2-advantech-idk-1110wr- new file +10 -0
+			panel_in: endpoint {
+				remote-endpoint = <&lvds_connector>;
+			};
+		};
+	};
+};
+
+&lvds_connector {
+	remote-endpoint = <&panel_in>;
+};

--
Regards,

Laurent Pinchart