All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Horman <horms+renesas@verge.net.au>
To: linux-renesas-soc@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org,
	Magnus Damm <magnus.damm@gmail.com>,
	Magnus Damm <damm+renesas@opensource.se>,
	Simon Horman <horms+renesas@verge.net.au>
Subject: [PATCH 16/70] ARM: dts: r8a7793: gose: Add HDMI video out support
Date: Thu,  4 Feb 2016 15:29:10 +0100	[thread overview]
Message-ID: <8871eb07c0e77196f1f6cd2ccd659516e3e5d9aa.1454595846.git.horms+renesas@verge.net.au> (raw)
In-Reply-To: <cover.1454595846.git.horms+renesas@verge.net.au>

From: Magnus Damm <damm+renesas@opensource.se>

This patch adds r8a7793 GOSE HDMI video out support.

The r8a7793 GOSE board is similar to r8a7791 Koelsch. For those
boards an on-board HDMI encoder chip provides HDMI video out
and also a LVDS port is available for external LCD panels.

Tested on r8a7793 Gose with HDMI hooked up to a Toshiba TV.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
[simon: rebased; reused existing i2c2 node]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/boot/dts/r8a7793-gose.dts | 85 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 85 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7793-gose.dts b/arch/arm/boot/dts/r8a7793-gose.dts
index 987ed03b1e02..0b4cc8d99390 100644
--- a/arch/arm/boot/dts/r8a7793-gose.dts
+++ b/arch/arm/boot/dts/r8a7793-gose.dts
@@ -129,6 +129,54 @@
 			label = "LED8";
 		};
 	};
+
+	hdmi-out {
+		compatible = "hdmi-connector";
+		type = "a";
+
+		port {
+			hdmi_con: endpoint {
+				remote-endpoint = <&adv7511_out>;
+			};
+		};
+	};
+
+	x2_clk: x2-clock {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <74250000>;
+	};
+
+	x13_clk: x13-clock {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <148500000>;
+	};
+};
+
+&du {
+	pinctrl-0 = <&du_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+
+	clocks = <&mstp7_clks R8A7793_CLK_DU0>,
+		 <&mstp7_clks R8A7793_CLK_DU1>,
+		 <&mstp7_clks R8A7793_CLK_LVDS0>,
+		 <&x13_clk>, <&x2_clk>;
+	clock-names = "du.0", "du.1", "lvds.0",
+		      "dclkin.0", "dclkin.1";
+
+	ports {
+		port@0 {
+			endpoint {
+				remote-endpoint = <&adv7511_in>;
+			};
+		};
+		port@1 {
+			lvds_connector: endpoint {
+			};
+		};
+	};
 };
 
 &extal_clk {
@@ -141,6 +189,11 @@
 		renesas,function = "i2c2";
 	};
 
+	du_pins: du {
+		renesas,groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
+		renesas,function = "du";
+	};
+
 	scif0_pins: serial0 {
 		renesas,groups = "scif0_data_d";
 		renesas,function = "scif0";
@@ -247,6 +300,38 @@
 	status = "okay";
 	clock-frequency = <100000>;
 
+	hdmi@39 {
+		compatible = "adi,adv7511w";
+		reg = <0x39>;
+		interrupt-parent = <&gpio3>;
+		interrupts = <29 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 = <&du_out_rgb>;
+				};
+			};
+
+			port@1 {
+				reg = <1>;
+				adv7511_out: endpoint {
+					remote-endpoint = <&hdmi_con>;
+				};
+			};
+		};
+	};
+
 	eeprom@50 {
 		compatible = "renesas,r1ex24002", "atmel,24c02";
 		reg = <0x50>;
-- 
2.7.0.rc3.207.g0ac5344

WARNING: multiple messages have this Message-ID (diff)
From: horms+renesas@verge.net.au (Simon Horman)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 16/70] ARM: dts: r8a7793: gose: Add HDMI video out support
Date: Thu,  4 Feb 2016 15:29:10 +0100	[thread overview]
Message-ID: <8871eb07c0e77196f1f6cd2ccd659516e3e5d9aa.1454595846.git.horms+renesas@verge.net.au> (raw)
In-Reply-To: <cover.1454595846.git.horms+renesas@verge.net.au>

From: Magnus Damm <damm+renesas@opensource.se>

This patch adds r8a7793 GOSE HDMI video out support.

The r8a7793 GOSE board is similar to r8a7791 Koelsch. For those
boards an on-board HDMI encoder chip provides HDMI video out
and also a LVDS port is available for external LCD panels.

Tested on r8a7793 Gose with HDMI hooked up to a Toshiba TV.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
[simon: rebased; reused existing i2c2 node]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/boot/dts/r8a7793-gose.dts | 85 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 85 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7793-gose.dts b/arch/arm/boot/dts/r8a7793-gose.dts
index 987ed03b1e02..0b4cc8d99390 100644
--- a/arch/arm/boot/dts/r8a7793-gose.dts
+++ b/arch/arm/boot/dts/r8a7793-gose.dts
@@ -129,6 +129,54 @@
 			label = "LED8";
 		};
 	};
+
+	hdmi-out {
+		compatible = "hdmi-connector";
+		type = "a";
+
+		port {
+			hdmi_con: endpoint {
+				remote-endpoint = <&adv7511_out>;
+			};
+		};
+	};
+
+	x2_clk: x2-clock {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <74250000>;
+	};
+
+	x13_clk: x13-clock {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <148500000>;
+	};
+};
+
+&du {
+	pinctrl-0 = <&du_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+
+	clocks = <&mstp7_clks R8A7793_CLK_DU0>,
+		 <&mstp7_clks R8A7793_CLK_DU1>,
+		 <&mstp7_clks R8A7793_CLK_LVDS0>,
+		 <&x13_clk>, <&x2_clk>;
+	clock-names = "du.0", "du.1", "lvds.0",
+		      "dclkin.0", "dclkin.1";
+
+	ports {
+		port at 0 {
+			endpoint {
+				remote-endpoint = <&adv7511_in>;
+			};
+		};
+		port at 1 {
+			lvds_connector: endpoint {
+			};
+		};
+	};
 };
 
 &extal_clk {
@@ -141,6 +189,11 @@
 		renesas,function = "i2c2";
 	};
 
+	du_pins: du {
+		renesas,groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
+		renesas,function = "du";
+	};
+
 	scif0_pins: serial0 {
 		renesas,groups = "scif0_data_d";
 		renesas,function = "scif0";
@@ -247,6 +300,38 @@
 	status = "okay";
 	clock-frequency = <100000>;
 
+	hdmi at 39 {
+		compatible = "adi,adv7511w";
+		reg = <0x39>;
+		interrupt-parent = <&gpio3>;
+		interrupts = <29 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 at 0 {
+				reg = <0>;
+				adv7511_in: endpoint {
+					remote-endpoint = <&du_out_rgb>;
+				};
+			};
+
+			port at 1 {
+				reg = <1>;
+				adv7511_out: endpoint {
+					remote-endpoint = <&hdmi_con>;
+				};
+			};
+		};
+	};
+
 	eeprom at 50 {
 		compatible = "renesas,r1ex24002", "atmel,24c02";
 		reg = <0x50>;
-- 
2.7.0.rc3.207.g0ac5344

  parent reply	other threads:[~2016-02-04 14:29 UTC|newest]

Thread overview: 127+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-04 14:30 [GIT PULL] Renesas ARM Based SoC DT Updates for v4.6 Simon Horman
2016-02-04 14:28 ` [PATCH 01/70] ARM: dts: gose: Add GPIO keys to DT Simon Horman
2016-02-04 14:28 ` [PATCH 02/70] ARM: dts: gose: Add GPIO leds " Simon Horman
2016-02-04 14:28   ` Simon Horman
2016-02-04 14:28 ` [PATCH 03/70] ARM: dts: porter: add DU DT support Simon Horman
2016-02-04 14:28 ` [PATCH 04/70] ARM: dts: r8a7793: Add I2C master nodes to DT Simon Horman
2016-02-04 14:28   ` Simon Horman
2016-02-04 14:28 ` [PATCH 05/70] ARM: dts: alt: Add QSPI device " Simon Horman
2016-02-04 14:28   ` Simon Horman
2016-02-04 14:29 ` [PATCH 06/70] ARM: dts: r8a7790: use fallback usbhs compatibility string Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 07/70] ARM: dts: r8a7791: " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 08/70] ARM: dts: r8a7794: " Simon Horman
2016-02-04 14:29 ` [PATCH 09/70] ARM: dts: r8a7793: move dmac nodes Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 10/70] ARM: dts: gose: add i2c2 bus to device tree Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 11/70] ARM: dts: r8a7790: use GIC_* defines Simon Horman
2016-02-04 14:29 ` [PATCH 12/70] ARM: dts: r8a7791: " Simon Horman
2016-02-04 14:29 ` [PATCH 13/70] ARM: dts: silk: add DU DT support Simon Horman
2016-02-04 14:29 ` [PATCH 14/70] ARM: dts: r8a7793: use GIC_* defines Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 15/70] ARM: dts: r8a7794: " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` Simon Horman [this message]
2016-02-04 14:29   ` [PATCH 16/70] ARM: dts: r8a7793: gose: Add HDMI video out support Simon Horman
2016-02-04 14:29 ` [PATCH 17/70] ARM: dts: r8a7778: use GIC_* defines Simon Horman
2016-02-04 14:29 ` [PATCH 18/70] ARM: dts: r8a7779: " Simon Horman
2016-02-04 14:29 ` [PATCH 19/70] ARM: dts: porter: add sound support Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 20/70] ARM: dts: r8a73a4: use GIC_* defines Simon Horman
2016-02-04 14:29 ` [PATCH 21/70] ARM: dts: r8a7740: " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 22/70] ARM: dts: r8a7793: add MSTP10 clocks to device tree Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 23/70] ARM: dts: r8a7793: add audio clock " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 24/70] ARM: dts: r8a7793: add m2 " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 25/70] ARM: dts: r8a7793: add R-Car sound support " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 26/70] ARM: dts: r8a7793: add DVC " Simon Horman
2016-02-04 14:29 ` [PATCH 27/70] ARM: dts: r8a7793: add audio DMAC clocks " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 28/70] ARM: dts: r8a7793: add audio DMAC " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 29/70] ARM: dts: r8a7793: enable Audio DMAC peri peri via sound driver Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 30/70] ARM: dts: gose: Enable sound PIO support in device tree Simon Horman
2016-02-04 14:29 ` [PATCH 31/70] ARM: dts: gose: enable sound DMA " Simon Horman
2016-02-04 14:29 ` [PATCH 32/70] ARM: dts: gose: enable sound DMA support via BUSIF " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 33/70] ARM: dts: gose: enable sound DMA support via SRC " Simon Horman
2016-02-04 14:29 ` [PATCH 34/70] ARM: dts: gose: enable sound DMA support via DVC " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 35/70] ARM: dts: r8a7793: enable audio DMAC " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 36/70] ARM: shmobile: r8a7740: Migrate to generic l2c OF initialization Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 37/70] ARM: shmobile: r8a7740: Remove mapping of L2 cache controller registers Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 38/70] ARM: dts: r7s72100: use GIC_* defines Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 39/70] ARM: dts: sh73a0: " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 40/70] ARM: dts: emev2: " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 41/70] ARM: dts: r8a7778: Add SCIF fallback compatibility strings Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 42/70] ARM: dts: r8a7779: " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 43/70] ARM: dts: r8a7790: " Simon Horman
2016-02-04 14:29 ` [PATCH 44/70] ARM: dts: r8a7791: " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 45/70] ARM: dts: r8a7793: " Simon Horman
2016-02-04 14:29 ` [PATCH 46/70] ARM: dts: r8a7794: " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 47/70] ARM: dts: sh73a0: Rename the serial port clock to fck Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 48/70] ARM: dts: r7s72100: " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 49/70] ARM: dts: r8a73a4: " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 50/70] ARM: dts: r8a7740: " Simon Horman
2016-02-04 14:29 ` [PATCH 51/70] ARM: dts: r8a7778: " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 52/70] ARM: dts: r8a7779: " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 53/70] ARM: dts: r8a7790: " Simon Horman
2016-02-04 14:29 ` [PATCH 54/70] ARM: dts: r8a7791: " Simon Horman
2016-02-04 14:29 ` [PATCH 55/70] ARM: dts: r8a7793: " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 56/70] ARM: dts: r8a7794: " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 57/70] ARM: dts: r8a7778: Add BRG support for SCIF Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 58/70] ARM: dts: r8a7779: " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 59/70] ARM: dts: r8a7790: Add BRG support for (H)SCIF Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 60/70] ARM: dts: r8a7791: " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 61/70] ARM: dts: r8a7793: Add BRG support for SCIF Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 62/70] ARM: dts: r8a7794: Add BRG support for (H)SCIF Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 63/70] ARM: dts: alt: Enable SCIF_CLK frequency and pins Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 64/70] ARM: dts: bockw: " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:29 ` [PATCH 65/70] ARM: dts: gose: " Simon Horman
2016-02-04 14:29   ` Simon Horman
2016-02-04 14:30 ` [PATCH 66/70] ARM: dts: koelsch: " Simon Horman
2016-02-04 14:30   ` Simon Horman
2016-02-04 14:30 ` [PATCH 67/70] ARM: dts: lager: " Simon Horman
2016-02-04 14:30   ` Simon Horman
2016-02-04 14:30 ` [PATCH 68/70] ARM: dts: marzen: " Simon Horman
2016-02-04 14:30   ` Simon Horman
2016-02-04 14:30 ` [PATCH 69/70] ARM: dts: porter: " Simon Horman
2016-02-04 14:30 ` [PATCH 70/70] ARM: dts: silk: " Simon Horman
2016-02-08 21:51 ` [GIT PULL] Renesas ARM Based SoC DT Updates for v4.6 Olof Johansson
2016-02-09  7:39   ` Geert Uytterhoeven
2016-02-09 18:39     ` Simon Horman
2016-02-11  3:55       ` Olof Johansson
2016-02-11 17:22         ` Simon Horman
2016-02-11 21:22           ` Olof Johansson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8871eb07c0e77196f1f6cd2ccd659516e3e5d9aa.1454595846.git.horms+renesas@verge.net.au \
    --to=horms+renesas@verge.net.au \
    --cc=damm+renesas@opensource.se \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.