All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: renesas: r8a774c0-cat874: Add HDMI video suport
@ 2019-04-16  8:39 Fabrizio Castro
  2019-04-24  9:46 ` Simon Horman
  0 siblings, 1 reply; 4+ messages in thread
From: Fabrizio Castro @ 2019-04-16  8:39 UTC (permalink / raw)
  To: Simon Horman, Geert Uytterhoeven, Rob Herring, Mark Rutland,
	Russell King
  Cc: Fabrizio Castro, Magnus Damm, linux-renesas-soc, devicetree,
	Chris Paterson, Biju Das, ebiharaml

The CAT874 board comes with a HDMI connector, managed by
a TDA19988BET chip, connected to the RZ/G2E SoC via DPAD.
This patch adds the necessary support to the board DT.

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
---
 arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts | 82 +++++++++++++++++++++++++
 1 file changed, 82 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts b/arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts
index 013a48c..0623950 100644
--- a/arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts
+++ b/arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts
@@ -22,6 +22,17 @@
 		stdout-path = "serial0:115200n8";
 	};
 
+	hdmi-out {
+		compatible = "hdmi-connector";
+		type = "a";
+
+		port {
+			hdmi_con_out: endpoint {
+				remote-endpoint = <&tda19988_out>;
+			};
+		};
+	};
+
 	leds {
 		compatible = "gpio-leds";
 
@@ -74,6 +85,31 @@
 		states = <3300000 1
 			  1800000 0>;
 	};
+
+	x13_clk: x13 {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <74250000>;
+	};
+};
+
+&du {
+	pinctrl-0 = <&du_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+
+	clocks = <&cpg CPG_MOD 724>,
+		 <&cpg CPG_MOD 723>,
+		 <&x13_clk>;
+	clock-names = "du.0", "du.1", "dclkin.0";
+
+	ports {
+		port@0 {
+			endpoint {
+				remote-endpoint = <&tda19988_in>;
+			};
+		};
+	};
 };
 
 &ehci0 {
@@ -85,6 +121,39 @@
 	clock-frequency = <48000000>;
 };
 
+&i2c0 {
+	status = "okay";
+	clock-frequency = <100000>;
+
+	tda19988: tda19988@70 {
+		compatible = "nxp,tda998x";
+		reg = <0x70>;
+		interrupt-parent = <&gpio1>;
+		interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
+
+		video-ports = <0x234501>;
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port@0 {
+				reg = <0>;
+				tda19988_in: endpoint {
+					remote-endpoint = <&du_out_rgb>;
+				};
+			};
+
+			port@1 {
+				reg = <1>;
+				tda19988_out: endpoint {
+					remote-endpoint = <&hdmi_con_out>;
+				};
+			};
+		};
+	};
+};
+
 &i2c1 {
 	pinctrl-0 = <&i2c1_pins>;
 	pinctrl-names = "default";
@@ -98,6 +167,13 @@
 	};
 };
 
+&lvds0 {
+	status = "okay";
+
+	clocks = <&cpg CPG_MOD 727>, <&x13_clk>, <&extal_clk>;
+	clock-names = "fck", "dclkin.0", "extal";
+};
+
 &ohci0 {
 	dr_mode = "host";
 	status = "okay";
@@ -113,6 +189,12 @@
 };
 
 &pfc {
+	du_pins: du {
+		groups = "du_rgb888", "du_clk_out_0", "du_sync", "du_disp",
+			 "du_clk_in_0";
+		function = "du";
+	};
+
 	i2c1_pins: i2c1 {
 		groups = "i2c1_b";
 		function = "i2c1";
-- 
2.7.4

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

* Re: [PATCH] arm64: dts: renesas: r8a774c0-cat874: Add HDMI video suport
  2019-04-16  8:39 [PATCH] arm64: dts: renesas: r8a774c0-cat874: Add HDMI video suport Fabrizio Castro
@ 2019-04-24  9:46 ` Simon Horman
  2019-04-24  9:59     ` Fabrizio Castro
  0 siblings, 1 reply; 4+ messages in thread
From: Simon Horman @ 2019-04-24  9:46 UTC (permalink / raw)
  To: Fabrizio Castro
  Cc: Geert Uytterhoeven, Rob Herring, Mark Rutland, Russell King,
	Magnus Damm, linux-renesas-soc, devicetree, Chris Paterson,
	Biju Das, ebiharaml

On Tue, Apr 16, 2019 at 09:39:37AM +0100, Fabrizio Castro wrote:
> The CAT874 board comes with a HDMI connector, managed by
> a TDA19988BET chip, connected to the RZ/G2E SoC via DPAD.
> This patch adds the necessary support to the board DT.
> 
> Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>

Thanks Fabrizio,

applied for inclusion in v5.3 with the spelling of support corrected.

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

* RE: [PATCH] arm64: dts: renesas: r8a774c0-cat874: Add HDMI video suport
  2019-04-24  9:46 ` Simon Horman
@ 2019-04-24  9:59     ` Fabrizio Castro
  0 siblings, 0 replies; 4+ messages in thread
From: Fabrizio Castro @ 2019-04-24  9:59 UTC (permalink / raw)
  To: Simon Horman
  Cc: Geert Uytterhoeven, Rob Herring, Mark Rutland, Russell King,
	Magnus Damm, linux-renesas-soc, devicetree, Chris Paterson,
	Biju Das, ebiharaml

Hello Simon,

> From: Simon Horman <horms@verge.net.au>
> Sent: 24 April 2019 10:46
> Subject: Re: [PATCH] arm64: dts: renesas: r8a774c0-cat874: Add HDMI video suport
> 
> On Tue, Apr 16, 2019 at 09:39:37AM +0100, Fabrizio Castro wrote:
> > The CAT874 board comes with a HDMI connector, managed by
> > a TDA19988BET chip, connected to the RZ/G2E SoC via DPAD.
> > This patch adds the necessary support to the board DT.
> >
> > Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
> 
> Thanks Fabrizio,
> 
> applied for inclusion in v5.3 with the spelling of support corrected.

Thank you for fixing.

Fab

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

* RE: [PATCH] arm64: dts: renesas: r8a774c0-cat874: Add HDMI video suport
@ 2019-04-24  9:59     ` Fabrizio Castro
  0 siblings, 0 replies; 4+ messages in thread
From: Fabrizio Castro @ 2019-04-24  9:59 UTC (permalink / raw)
  To: Simon Horman
  Cc: Geert Uytterhoeven, Rob Herring, Mark Rutland, Russell King,
	Magnus Damm, linux-renesas-soc, devicetree, Chris Paterson,
	Biju Das, ebiharaml

Hello Simon,

> From: Simon Horman <horms@verge.net.au>
> Sent: 24 April 2019 10:46
> Subject: Re: [PATCH] arm64: dts: renesas: r8a774c0-cat874: Add HDMI video suport
> 
> On Tue, Apr 16, 2019 at 09:39:37AM +0100, Fabrizio Castro wrote:
> > The CAT874 board comes with a HDMI connector, managed by
> > a TDA19988BET chip, connected to the RZ/G2E SoC via DPAD.
> > This patch adds the necessary support to the board DT.
> >
> > Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
> 
> Thanks Fabrizio,
> 
> applied for inclusion in v5.3 with the spelling of support corrected.

Thank you for fixing.

Fab

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

end of thread, other threads:[~2019-04-24  9:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-16  8:39 [PATCH] arm64: dts: renesas: r8a774c0-cat874: Add HDMI video suport Fabrizio Castro
2019-04-24  9:46 ` Simon Horman
2019-04-24  9:59   ` Fabrizio Castro
2019-04-24  9:59     ` Fabrizio Castro

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.