devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support
@ 2018-02-27 20:06 Sergei Shtylyov
  2018-02-27 20:08 ` [PATCH v2 1/5] arm64: dts: renesas: r8a77970: add FCPVD support Sergei Shtylyov
                   ` (6 more replies)
  0 siblings, 7 replies; 16+ messages in thread
From: Sergei Shtylyov @ 2018-02-27 20:06 UTC (permalink / raw)
  To: Simon Horman, Rob Herring, Catalin Marinas, Will Deacon,
	linux-renesas-soc, devicetree
  Cc: Mark Rutland, Magnus Damm, linux-arm-kernel

Hello!

Here's the set of 5 patches against Simon Horman's 'renesas.git' repo's
'renesas-devel-20180227-v4.16-rc3' tag. We're adding the R8A77970 FCPVD/VSPD/
DU/LVDS device nodes and then describing the HDMI encoder connected to the LVDS
output (we're omitting the LVDS decoder for now). These patches depend on
the recent R8A77970 DU/LVDS rework patches by Laurent in order to work...	

[1/5] arm64: dts: renesas: r8a77970: add FCPVD support
[2/5] arm64: dts: renesas: r8a77970: add VSPD support
[3/5] arm64: dts: renesas: r8a77970: add DU support
[4/5] arm64: dts: renesas: r8a77970: add LVDS support
[5/5] arm64: dts: renesas: v3msk: add DU/LVDS/HDMI support

WBR, Sergei

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH v2 1/5] arm64: dts: renesas: r8a77970: add FCPVD support
  2018-02-27 20:06 [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support Sergei Shtylyov
@ 2018-02-27 20:08 ` Sergei Shtylyov
  2018-02-27 20:09 ` [PATCH v2 2/5] arm64: dts: renesas: r8a77970: add VSPD support Sergei Shtylyov
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 16+ messages in thread
From: Sergei Shtylyov @ 2018-02-27 20:08 UTC (permalink / raw)
  To: Simon Horman, Rob Herring, Catalin Marinas, Will Deacon,
	linux-renesas-soc, devicetree
  Cc: Mark Rutland, Magnus Damm, linux-arm-kernel

Describe FCPVD0 in the R8A77970 device tree; it will be used by VSPD0 in
the next patch...

Based on the original (and large) patch by Daisuke Matsushita
<daisuke.matsushita.ns@hitachi.com>.

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
 arch/arm64/boot/dts/renesas/r8a77970.dtsi |    8 ++++++++
 1 file changed, 8 insertions(+)

Index: renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================
--- renesas.orig/arch/arm64/boot/dts/renesas/r8a77970.dtsi
+++ renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
@@ -612,6 +612,14 @@
 			#size-cells = <0>;
 			status = "disabled";
 		};
+
+		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>;
+		};
 	};
 
 	timer {

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH v2 2/5] arm64: dts: renesas: r8a77970: add VSPD support
  2018-02-27 20:06 [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support Sergei Shtylyov
  2018-02-27 20:08 ` [PATCH v2 1/5] arm64: dts: renesas: r8a77970: add FCPVD support Sergei Shtylyov
@ 2018-02-27 20:09 ` Sergei Shtylyov
  2018-02-27 20:10 ` [PATCH v2 3/5] arm64: dts: renesas: r8a77970: add DU support Sergei Shtylyov
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 16+ messages in thread
From: Sergei Shtylyov @ 2018-02-27 20:09 UTC (permalink / raw)
  To: Simon Horman, Rob Herring, Catalin Marinas, Will Deacon,
	linux-renesas-soc, devicetree
  Cc: Mark Rutland, Magnus Damm, linux-arm-kernel

Describe VSPD0 in the R8A77970 device tree; it will be used by DU in
the next patch...

Based on the original (and large) patch by Daisuke Matsushita
<daisuke.matsushita.ns@hitachi.com>.

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
 arch/arm64/boot/dts/renesas/r8a77970.dtsi |   10 ++++++++++
 1 file changed, 10 insertions(+)

Index: renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================
--- renesas.orig/arch/arm64/boot/dts/renesas/r8a77970.dtsi
+++ renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
@@ -620,6 +620,16 @@
 			power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
 			resets = <&cpg 603>;
 		};
+
+		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>;
+		};
 	};
 
 	timer {

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH v2 3/5] arm64: dts: renesas: r8a77970: add DU support
  2018-02-27 20:06 [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support Sergei Shtylyov
  2018-02-27 20:08 ` [PATCH v2 1/5] arm64: dts: renesas: r8a77970: add FCPVD support Sergei Shtylyov
  2018-02-27 20:09 ` [PATCH v2 2/5] arm64: dts: renesas: r8a77970: add VSPD support Sergei Shtylyov
@ 2018-02-27 20:10 ` Sergei Shtylyov
  2018-02-27 20:11 ` [PATCH v2 4/5] arm64: dts: renesas: r8a77970: add LVDS support Sergei Shtylyov
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 16+ messages in thread
From: Sergei Shtylyov @ 2018-02-27 20:10 UTC (permalink / raw)
  To: Simon Horman, Rob Herring, Catalin Marinas, Will Deacon,
	linux-renesas-soc, devicetree
  Cc: Mark Rutland, Magnus Damm, linux-arm-kernel

Define the generic R8A77970 part of the DU device node.

Based on the original (and large) patch by Daisuke Matsushita
<daisuke.matsushita.ns@hitachi.com>.

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
Changes in version 2:
- added the "resets" property;
- renamed the output endpoint's label.

 arch/arm64/boot/dts/renesas/r8a77970.dtsi |   29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

Index: renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================
--- renesas.orig/arch/arm64/boot/dts/renesas/r8a77970.dtsi
+++ renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
@@ -630,6 +630,35 @@
 			resets = <&cpg 623>;
 			renesas,fcp = <&fcpvd0>;
 		};
+
+		du: display@feb00000 {
+			compatible = "renesas,du-r8a77970";
+			reg = <0 0xfeb00000 0 0x80000>;
+			interrupts = <GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 724>;
+			clock-names = "du.0";
+			power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
+			resets = <&cpg 724>;
+			vsps = <&vspd0>;
+			status = "disabled";
+
+			ports {
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				port@0 {
+					reg = <0>;
+					du_out_rgb: endpoint {
+					};
+				};
+
+				port@1 {
+					reg = <1>;
+					du_out_lvds0: endpoint {
+					};
+				};
+			};
+		};
 	};
 
 	timer {

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH v2 4/5] arm64: dts: renesas: r8a77970: add LVDS support
  2018-02-27 20:06 [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support Sergei Shtylyov
                   ` (2 preceding siblings ...)
  2018-02-27 20:10 ` [PATCH v2 3/5] arm64: dts: renesas: r8a77970: add DU support Sergei Shtylyov
@ 2018-02-27 20:11 ` Sergei Shtylyov
  2018-02-27 20:12 ` [PATCH v2 5/5] arm64: dts: renesas: v3msk: add DU/LVDS/HDMI support Sergei Shtylyov
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 16+ messages in thread
From: Sergei Shtylyov @ 2018-02-27 20:11 UTC (permalink / raw)
  To: Simon Horman, Rob Herring, Catalin Marinas, Will Deacon,
	linux-renesas-soc, devicetree
  Cc: Mark Rutland, Magnus Damm, linux-arm-kernel

Define the generic R8A77970 part of the LVDS device node.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
Changes in version 2:
- resolved rejects and updated atop of the DU support patch;
- changed the LVDS node's label/name;
- renamed the input/output endpoints' labels;
- added the "power-domains" and "resets" properties.

 arch/arm64/boot/dts/renesas/r8a77970.dtsi |   28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

Index: renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================
--- renesas.orig/arch/arm64/boot/dts/renesas/r8a77970.dtsi
+++ renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
@@ -655,6 +655,34 @@
 				port@1 {
 					reg = <1>;
 					du_out_lvds0: endpoint {
+						remote-endpoint = <&lvds0_in>;
+					};
+				};
+			};
+		};
+
+		lvds0: lvds-encoder@feb90000 {
+			compatible = "renesas,r8a77970-lvds";
+			reg = <0 0xfeb90000 0 0x14>;
+			clocks = <&cpg CPG_MOD 727>;
+			power-domains = <&sysc R8A77970_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 {
 					};
 				};
 			};

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH v2 5/5] arm64: dts: renesas: v3msk: add DU/LVDS/HDMI support
  2018-02-27 20:06 [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support Sergei Shtylyov
                   ` (3 preceding siblings ...)
  2018-02-27 20:11 ` [PATCH v2 4/5] arm64: dts: renesas: r8a77970: add LVDS support Sergei Shtylyov
@ 2018-02-27 20:12 ` Sergei Shtylyov
  2018-02-27 20:23 ` [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support Sergei Shtylyov
  2018-04-23 20:45 ` [PATCH v3] arm64: dts: renesas: v3msk: add DU/LVDS/HDMI support Sergei Shtylyov
  6 siblings, 0 replies; 16+ messages in thread
From: Sergei Shtylyov @ 2018-02-27 20:12 UTC (permalink / raw)
  To: Simon Horman, Rob Herring, Catalin Marinas, Will Deacon,
	linux-renesas-soc, devicetree
  Cc: Mark Rutland, Magnus Damm, linux-arm-kernel

Define the V3M Starter Kit board dependent part of the DU and LVDS device
nodes. Also add the device nodes for the Analog Devices ADV7511W HDMI
transmitter -- it's actually connected to the LVDS output via an LVDS
decoder (deliberately omitted here since there's no driver yet anyway).

Based on the original (and large) patch by Vladimir Barinov.

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
 arch/arm64/boot/dts/renesas/r8a77970-v3msk.dts |  106 +++++++++++++++++++++++++
 1 file changed, 106 insertions(+)

Index: renesas/arch/arm64/boot/dts/renesas/r8a77970-v3msk.dts
===================================================================
--- renesas.orig/arch/arm64/boot/dts/renesas/r8a77970-v3msk.dts
+++ renesas/arch/arm64/boot/dts/renesas/r8a77970-v3msk.dts
@@ -29,6 +29,41 @@
 		/* first 128MB is reserved for secure area. */
 		reg = <0x0 0x48000000 0x0 0x38000000>;
 	};
+
+	osc5_clk: osc5-clock {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <148500000>;
+	};
+
+	vcc_d1p8v: regulator-0 {
+		compatible = "regulator-fixed";
+		regulator-name = "VCC_D1.8V";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
+	vcc_d3p3v: regulator-1 {
+		compatible = "regulator-fixed";
+		regulator-name = "VCC_D3.3V";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
+	hdmi-out {
+		compatible = "hdmi-connector";
+		type = "a";
+
+		port {
+			hdmi_con: endpoint {
+				remote-endpoint = <&adv7511_out>;
+			};
+		};
+	};
 };
 
 &avb {
@@ -42,6 +77,13 @@
 	};
 };
 
+&du {
+	clocks = <&cpg CPG_MOD 724>,
+		 <&osc5_clk>;
+	clock-names = "du.0", "dclkin.0";
+	status = "okay";
+};
+
 &extal_clk {
 	clock-frequency = <16666666>;
 };
@@ -50,6 +92,70 @@
 	clock-frequency = <32768>;
 };
 
+&i2c0 {
+	pinctrl-0 = <&i2c0_pins>;
+	pinctrl-names = "default";
+
+	status = "okay";
+	clock-frequency = <400000>;
+
+	hdmi@39{
+		compatible = "adi,adv7511w";
+		#sound-dai-cells = <0>;
+		reg = <0x39>;
+		interrupt-parent = <&gpio1>;
+		interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
+		avdd-supply = <&vcc_d1p8v>;
+		dvdd-supply = <&vcc_d1p8v>;
+		pvdd-supply = <&vcc_d1p8v>;
+		bgvdd-supply = <&vcc_d1p8v>;
+		dvdd-3v-supply = <&vcc_d3p3v>;
+
+		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>;
+				};
+			};
+		};
+	};
+};
+
+&lvds0 {
+	status = "okay";
+
+	ports {
+		port@1 {
+			endpoint {
+				remote-endpoint = <&adv7511_in>;
+			};
+		};
+	};
+};
+
+&pfc {
+	i2c0_pins: i2c0 {
+		groups = "i2c0";
+		function = "i2c0";
+	};
+};
+
 &scif0 {
 	status = "okay";
 };

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support
  2018-02-27 20:06 [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support Sergei Shtylyov
                   ` (4 preceding siblings ...)
  2018-02-27 20:12 ` [PATCH v2 5/5] arm64: dts: renesas: v3msk: add DU/LVDS/HDMI support Sergei Shtylyov
@ 2018-02-27 20:23 ` Sergei Shtylyov
  2018-02-28 13:27   ` Simon Horman
  2018-04-23 20:45 ` [PATCH v3] arm64: dts: renesas: v3msk: add DU/LVDS/HDMI support Sergei Shtylyov
  6 siblings, 1 reply; 16+ messages in thread
From: Sergei Shtylyov @ 2018-02-27 20:23 UTC (permalink / raw)
  To: Simon Horman, Rob Herring, Catalin Marinas, Will Deacon,
	linux-renesas-soc, devicetree
  Cc: Mark Rutland, Magnus Damm, linux-arm-kernel

On 02/27/2018 11:06 PM, Sergei Shtylyov wrote:

> Here's the set of 5 patches against Simon Horman's 'renesas.git' repo's
> 'renesas-devel-20180227-v4.16-rc3' tag. We're adding the R8A77970 FCPVD/VSPD/
> DU/LVDS device nodes and then describing the HDMI encoder connected to the LVDS
> output (we're omitting the LVDS decoder for now). These patches depend on
> the recent R8A77970 DU/LVDS rework patches by Laurent in order to work...	

   Need to mention that the DU driver silently fails to probe now. I do hope that
this is not due to my updates. :-)

MBR, Sergei

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support
  2018-02-27 20:23 ` [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support Sergei Shtylyov
@ 2018-02-28 13:27   ` Simon Horman
  2018-02-28 17:57     ` Sergei Shtylyov
  0 siblings, 1 reply; 16+ messages in thread
From: Simon Horman @ 2018-02-28 13:27 UTC (permalink / raw)
  To: Sergei Shtylyov
  Cc: Mark Rutland, devicetree, Magnus Damm, Catalin Marinas,
	Will Deacon, linux-renesas-soc, Rob Herring, linux-arm-kernel

On Tue, Feb 27, 2018 at 11:23:39PM +0300, Sergei Shtylyov wrote:
> On 02/27/2018 11:06 PM, Sergei Shtylyov wrote:
> 
> > Here's the set of 5 patches against Simon Horman's 'renesas.git' repo's
> > 'renesas-devel-20180227-v4.16-rc3' tag. We're adding the R8A77970 FCPVD/VSPD/
> > DU/LVDS device nodes and then describing the HDMI encoder connected to the LVDS
> > output (we're omitting the LVDS decoder for now). These patches depend on
> > the recent R8A77970 DU/LVDS rework patches by Laurent in order to work...	
> 
>    Need to mention that the DU driver silently fails to probe now. I do
>    hope that this is not due to my updates. :-)

Please test that theory.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support
  2018-02-28 13:27   ` Simon Horman
@ 2018-02-28 17:57     ` Sergei Shtylyov
  2018-03-01  9:54       ` Simon Horman
  0 siblings, 1 reply; 16+ messages in thread
From: Sergei Shtylyov @ 2018-02-28 17:57 UTC (permalink / raw)
  To: Simon Horman
  Cc: Mark Rutland, devicetree, Magnus Damm, Catalin Marinas,
	Will Deacon, linux-renesas-soc, Rob Herring, linux-arm-kernel

On 02/28/2018 04:27 PM, Simon Horman wrote:

>>> Here's the set of 5 patches against Simon Horman's 'renesas.git' repo's
>>> 'renesas-devel-20180227-v4.16-rc3' tag. We're adding the R8A77970 FCPVD/VSPD/
>>> DU/LVDS device nodes and then describing the HDMI encoder connected to the LVDS
>>> output (we're omitting the LVDS decoder for now). These patches depend on
>>> the recent R8A77970 DU/LVDS rework patches by Laurent in order to work...	
>>
>>    Need to mention that the DU driver silently fails to probe now. I do
>>    hope that this is not due to my updates. :-)
> 
> Please test that theory.

   Yeah, after sucking in the recent versions of the DU/LVDS patches and uncommenting
and fixing rejects in a couple patches here, the graphical console works again. :-)

MBR, Sergei

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support
  2018-02-28 17:57     ` Sergei Shtylyov
@ 2018-03-01  9:54       ` Simon Horman
  2018-03-01 10:20         ` Sergei Shtylyov
  2018-03-01 15:28         ` Sergei Shtylyov
  0 siblings, 2 replies; 16+ messages in thread
From: Simon Horman @ 2018-03-01  9:54 UTC (permalink / raw)
  To: Sergei Shtylyov
  Cc: Mark Rutland, devicetree, Magnus Damm, Catalin Marinas,
	Will Deacon, linux-renesas-soc, Rob Herring, linux-arm-kernel

On Wed, Feb 28, 2018 at 08:57:18PM +0300, Sergei Shtylyov wrote:
> On 02/28/2018 04:27 PM, Simon Horman wrote:
> 
> >>> Here's the set of 5 patches against Simon Horman's 'renesas.git' repo's
> >>> 'renesas-devel-20180227-v4.16-rc3' tag. We're adding the R8A77970 FCPVD/VSPD/
> >>> DU/LVDS device nodes and then describing the HDMI encoder connected to the LVDS
> >>> output (we're omitting the LVDS decoder for now). These patches depend on
> >>> the recent R8A77970 DU/LVDS rework patches by Laurent in order to work...	
> >>
> >>    Need to mention that the DU driver silently fails to probe now. I do
> >>    hope that this is not due to my updates. :-)
> > 
> > Please test that theory.
> 
>    Yeah, after sucking in the recent versions of the DU/LVDS patches and uncommenting
> and fixing rejects in a couple patches here, the graphical console works again. :-)

Ok, but does this patchset cause a regression? If so it seems
that we should wait for driver updates before applying it.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support
  2018-03-01  9:54       ` Simon Horman
@ 2018-03-01 10:20         ` Sergei Shtylyov
  2018-03-01 15:28         ` Sergei Shtylyov
  1 sibling, 0 replies; 16+ messages in thread
From: Sergei Shtylyov @ 2018-03-01 10:20 UTC (permalink / raw)
  To: Simon Horman
  Cc: Mark Rutland, devicetree, Magnus Damm, Catalin Marinas,
	Will Deacon, linux-renesas-soc, Rob Herring, linux-arm-kernel

Hello!

On 03/01/2018 12:54 PM, Simon Horman wrote:

>>>>> Here's the set of 5 patches against Simon Horman's 'renesas.git' repo's
>>>>> 'renesas-devel-20180227-v4.16-rc3' tag. We're adding the R8A77970 FCPVD/VSPD/
>>>>> DU/LVDS device nodes and then describing the HDMI encoder connected to the LVDS
>>>>> output (we're omitting the LVDS decoder for now). These patches depend on
>>>>> the recent R8A77970 DU/LVDS rework patches by Laurent in order to work...	
>>>>
>>>>    Need to mention that the DU driver silently fails to probe now. I do
>>>>    hope that this is not due to my updates. :-)
>>>
>>> Please test that theory.
>>
>>    Yeah, after sucking in the recent versions of the DU/LVDS patches and uncommenting
>> and fixing rejects in a couple patches here, the graphical console works again. :-)
> 
> Ok, but does this patchset cause a regression? If so it seems
> that we should wait for driver updates before applying it.

   Yes, we'll have to wait at this point...

MBR, Sergei

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support
  2018-03-01  9:54       ` Simon Horman
  2018-03-01 10:20         ` Sergei Shtylyov
@ 2018-03-01 15:28         ` Sergei Shtylyov
  2018-03-02 10:21           ` Simon Horman
  1 sibling, 1 reply; 16+ messages in thread
From: Sergei Shtylyov @ 2018-03-01 15:28 UTC (permalink / raw)
  To: Simon Horman
  Cc: Mark Rutland, devicetree, Magnus Damm, Catalin Marinas,
	Will Deacon, linux-renesas-soc, Rob Herring, linux-arm-kernel

On 03/01/2018 12:54 PM, Simon Horman wrote:

>>>>> Here's the set of 5 patches against Simon Horman's 'renesas.git' repo's
>>>>> 'renesas-devel-20180227-v4.16-rc3' tag. We're adding the R8A77970 FCPVD/VSPD/
>>>>> DU/LVDS device nodes and then describing the HDMI encoder connected to the LVDS
>>>>> output (we're omitting the LVDS decoder for now). These patches depend on
>>>>> the recent R8A77970 DU/LVDS rework patches by Laurent in order to work...	
>>>>
>>>>    Need to mention that the DU driver silently fails to probe now. I do
>>>>    hope that this is not due to my updates. :-)
>>>
>>> Please test that theory.
>>
>>    Yeah, after sucking in the recent versions of the DU/LVDS patches and uncommenting
>> and fixing rejects in a couple patches here, the graphical console works again. :-)
> 
> Ok, but does this patchset cause a regression? If so it seems

    Sorry, somehow missed that question. No regression is possible as the display just
doesn't work before these patches are applied. It's just that it doesn't start to work
until the recent DU/LVDS driver updates are applied.

> that we should wait for driver updates before applying it.

MBR, Sergei

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support
  2018-03-01 15:28         ` Sergei Shtylyov
@ 2018-03-02 10:21           ` Simon Horman
  2018-03-02 10:29             ` Sergei Shtylyov
  0 siblings, 1 reply; 16+ messages in thread
From: Simon Horman @ 2018-03-02 10:21 UTC (permalink / raw)
  To: Sergei Shtylyov
  Cc: Mark Rutland, devicetree, Magnus Damm, Catalin Marinas,
	Will Deacon, linux-renesas-soc, Rob Herring, linux-arm-kernel

On Thu, Mar 01, 2018 at 06:28:29PM +0300, Sergei Shtylyov wrote:
> On 03/01/2018 12:54 PM, Simon Horman wrote:
> 
> >>>>> Here's the set of 5 patches against Simon Horman's 'renesas.git' repo's
> >>>>> 'renesas-devel-20180227-v4.16-rc3' tag. We're adding the R8A77970 FCPVD/VSPD/
> >>>>> DU/LVDS device nodes and then describing the HDMI encoder connected to the LVDS
> >>>>> output (we're omitting the LVDS decoder for now). These patches depend on
> >>>>> the recent R8A77970 DU/LVDS rework patches by Laurent in order to work...	
> >>>>
> >>>>    Need to mention that the DU driver silently fails to probe now. I do
> >>>>    hope that this is not due to my updates. :-)
> >>>
> >>> Please test that theory.
> >>
> >>    Yeah, after sucking in the recent versions of the DU/LVDS patches and uncommenting
> >> and fixing rejects in a couple patches here, the graphical console works again. :-)
> > 
> > Ok, but does this patchset cause a regression? If so it seems
> 
>     Sorry, somehow missed that question. No regression is possible as the display just
> doesn't work before these patches are applied. It's just that it doesn't start to work
> until the recent DU/LVDS driver updates are applied.

Ok, but my question remains: does the display work before these patches?

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support
  2018-03-02 10:21           ` Simon Horman
@ 2018-03-02 10:29             ` Sergei Shtylyov
  0 siblings, 0 replies; 16+ messages in thread
From: Sergei Shtylyov @ 2018-03-02 10:29 UTC (permalink / raw)
  To: Simon Horman
  Cc: Mark Rutland, devicetree, Magnus Damm, Catalin Marinas,
	Will Deacon, linux-renesas-soc, Rob Herring, linux-arm-kernel

On 3/2/2018 1:21 PM, Simon Horman wrote:

>>>>>>> Here's the set of 5 patches against Simon Horman's 'renesas.git' repo's
>>>>>>> 'renesas-devel-20180227-v4.16-rc3' tag. We're adding the R8A77970 FCPVD/VSPD/
>>>>>>> DU/LVDS device nodes and then describing the HDMI encoder connected to the LVDS
>>>>>>> output (we're omitting the LVDS decoder for now). These patches depend on
>>>>>>> the recent R8A77970 DU/LVDS rework patches by Laurent in order to work...	
>>>>>>
>>>>>>     Need to mention that the DU driver silently fails to probe now. I do
>>>>>>     hope that this is not due to my updates. :-)
>>>>>
>>>>> Please test that theory.
>>>>
>>>>     Yeah, after sucking in the recent versions of the DU/LVDS patches and uncommenting
>>>> and fixing rejects in a couple patches here, the graphical console works again. :-)
>>>
>>> Ok, but does this patchset cause a regression? If so it seems
>>
>>      Sorry, somehow missed that question. No regression is possible as the display just
>> doesn't work before these patches are applied. It's just that it doesn't start to work
>> until the recent DU/LVDS driver updates are applied.
> 
> Ok, but my question remains: does the display work before these patches?

    No, there are no FCPVD/VSPD/DU/LVDS device nodes in R8A77970 TDs.

MBR, Sergei

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH v3] arm64: dts: renesas: v3msk: add DU/LVDS/HDMI support
  2018-02-27 20:06 [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support Sergei Shtylyov
                   ` (5 preceding siblings ...)
  2018-02-27 20:23 ` [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support Sergei Shtylyov
@ 2018-04-23 20:45 ` Sergei Shtylyov
  2018-05-01  6:00   ` Simon Horman
  6 siblings, 1 reply; 16+ messages in thread
From: Sergei Shtylyov @ 2018-04-23 20:45 UTC (permalink / raw)
  To: Simon Horman, Rob Herring, Catalin Marinas, Will Deacon,
	linux-renesas-soc, devicetree
  Cc: Mark Rutland, Magnus Damm, linux-arm-kernel

Define the V3M Starter Kit board dependent part of the DU and LVDS device
nodes. Also add the device nodes for Thine THC63LVD1024 LVDS decoder and
Analog Devices ADV7511W HDMI transmitter...

Based on the original (and large) patch by Vladimir Barinov.

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
This patch is against the 'renesas-devel-20180423-v4.17-rc2' tag of Simon
Horman's 'renesas.git' repo. It requires the Thine THC63LVD1024 driver in
order to work (the same as the Eagle HDMI patch by Jacopo/Niklas).

Changes in version 3:
- added  Thine THC63LVD1024 device node, updating the respected endpoints;
- merged the I2C pins subnode to the main PFC device node;
- renamed the regulators;

 arch/arm64/boot/dts/renesas/r8a77970-v3msk.dts |  129 +++++++++++++++++++++++++
 1 file changed, 129 insertions(+)

Index: renesas/arch/arm64/boot/dts/renesas/r8a77970-v3msk.dts
===================================================================
--- renesas.orig/arch/arm64/boot/dts/renesas/r8a77970-v3msk.dts
+++ renesas/arch/arm64/boot/dts/renesas/r8a77970-v3msk.dts
@@ -29,6 +29,65 @@
 		/* first 128MB is reserved for secure area. */
 		reg = <0x0 0x48000000 0x0 0x38000000>;
 	};
+
+	osc5_clk: osc5-clock {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <148500000>;
+	};
+
+	vcc_d1_8v: regulator-0 {
+		compatible = "regulator-fixed";
+		regulator-name = "VCC_D1.8V";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
+	vcc_d3_3v: regulator-1 {
+		compatible = "regulator-fixed";
+		regulator-name = "VCC_D3.3V";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
+	lvds-decoder {
+		compatible = "thine,thc63lvd1024";
+		vcc-supply = <&vcc_d3_3v>;
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port@0 {
+				reg = <0>;
+				thc63lvd1024_in: endpoint {
+					remote-endpoint = <&lvds0_out>;
+				};
+			};
+
+			port@2 {
+				reg = <2>;
+				thc63lvd1024_out: endpoint {
+					remote-endpoint = <&adv7511_in>;
+				};
+			};
+		};
+	};
+
+	hdmi-out {
+		compatible = "hdmi-connector";
+		type = "a";
+
+		port {
+			hdmi_con: endpoint {
+				remote-endpoint = <&adv7511_out>;
+			};
+		};
+	};
 };
 
 &avb {
@@ -46,6 +105,13 @@
 	};
 };
 
+&du {
+	clocks = <&cpg CPG_MOD 724>,
+		 <&osc5_clk>;
+	clock-names = "du.0", "dclkin.0";
+	status = "okay";
+};
+
 &extal_clk {
 	clock-frequency = <16666666>;
 };
@@ -60,12 +126,75 @@
 		function = "avb0";
 	};
 
+	i2c0_pins: i2c0 {
+		groups = "i2c0";
+		function = "i2c0";
+	};
+
 	scif0_pins: scif0 {
 		groups = "scif0_data";
 		function = "scif0";
 	};
 };
 
+&i2c0 {
+	pinctrl-0 = <&i2c0_pins>;
+	pinctrl-names = "default";
+
+	status = "okay";
+	clock-frequency = <400000>;
+
+	hdmi@39{
+		compatible = "adi,adv7511w";
+		#sound-dai-cells = <0>;
+		reg = <0x39>;
+		interrupt-parent = <&gpio1>;
+		interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
+		avdd-supply = <&vcc_d1_8v>;
+		dvdd-supply = <&vcc_d1_8v>;
+		pvdd-supply = <&vcc_d1_8v>;
+		bgvdd-supply = <&vcc_d1_8v>;
+		dvdd-3v-supply = <&vcc_d3_3v>;
+
+		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 = <&thc63lvd1024_out>;
+				};
+			};
+
+			port@1 {
+				reg = <1>;
+				adv7511_out: endpoint {
+					remote-endpoint = <&hdmi_con>;
+				};
+			};
+		};
+	};
+};
+
+&lvds0 {
+	status = "okay";
+
+	ports {
+		port@1 {
+			lvds0_out: endpoint {
+				remote-endpoint = <&thc63lvd1024_in>;
+			};
+		};
+	};
+};
+
 &scif0 {
 	pinctrl-0 = <&scif0_pins>;
 	pinctrl-names = "default";

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v3] arm64: dts: renesas: v3msk: add DU/LVDS/HDMI support
  2018-04-23 20:45 ` [PATCH v3] arm64: dts: renesas: v3msk: add DU/LVDS/HDMI support Sergei Shtylyov
@ 2018-05-01  6:00   ` Simon Horman
  0 siblings, 0 replies; 16+ messages in thread
From: Simon Horman @ 2018-05-01  6:00 UTC (permalink / raw)
  To: Sergei Shtylyov
  Cc: Mark Rutland, devicetree, Magnus Damm, Catalin Marinas,
	Will Deacon, linux-renesas-soc, Rob Herring, linux-arm-kernel

On Mon, Apr 23, 2018 at 11:45:49PM +0300, Sergei Shtylyov wrote:
> Define the V3M Starter Kit board dependent part of the DU and LVDS device
> nodes. Also add the device nodes for Thine THC63LVD1024 LVDS decoder and
> Analog Devices ADV7511W HDMI transmitter...
> 
> Based on the original (and large) patch by Vladimir Barinov.
> 
> Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> 
> ---
> This patch is against the 'renesas-devel-20180423-v4.17-rc2' tag of Simon
> Horman's 'renesas.git' repo. It requires the Thine THC63LVD1024 driver in
> order to work (the same as the Eagle HDMI patch by Jacopo/Niklas).
> 
> Changes in version 3:
> - added  Thine THC63LVD1024 device node, updating the respected endpoints;
> - merged the I2C pins subnode to the main PFC device node;
> - renamed the regulators;

Thanks, applied.

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2018-05-01  6:00 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-27 20:06 [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support Sergei Shtylyov
2018-02-27 20:08 ` [PATCH v2 1/5] arm64: dts: renesas: r8a77970: add FCPVD support Sergei Shtylyov
2018-02-27 20:09 ` [PATCH v2 2/5] arm64: dts: renesas: r8a77970: add VSPD support Sergei Shtylyov
2018-02-27 20:10 ` [PATCH v2 3/5] arm64: dts: renesas: r8a77970: add DU support Sergei Shtylyov
2018-02-27 20:11 ` [PATCH v2 4/5] arm64: dts: renesas: r8a77970: add LVDS support Sergei Shtylyov
2018-02-27 20:12 ` [PATCH v2 5/5] arm64: dts: renesas: v3msk: add DU/LVDS/HDMI support Sergei Shtylyov
2018-02-27 20:23 ` [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support Sergei Shtylyov
2018-02-28 13:27   ` Simon Horman
2018-02-28 17:57     ` Sergei Shtylyov
2018-03-01  9:54       ` Simon Horman
2018-03-01 10:20         ` Sergei Shtylyov
2018-03-01 15:28         ` Sergei Shtylyov
2018-03-02 10:21           ` Simon Horman
2018-03-02 10:29             ` Sergei Shtylyov
2018-04-23 20:45 ` [PATCH v3] arm64: dts: renesas: v3msk: add DU/LVDS/HDMI support Sergei Shtylyov
2018-05-01  6:00   ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).