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>,
	Wolfram Sang <wsa+renesas@sang-engineering.com>,
	Simon Horman <horms+renesas@verge.net.au>
Subject: [PATCH 38/47] ARM: dts: alt: use demuxer for I2C1
Date: Fri, 16 Mar 2018 17:38:35 +0100	[thread overview]
Message-ID: <61866d7fdc7007acfca2107f7d9fcb05ed0c6203.1521218085.git.horms+renesas@verge.net.au> (raw)
In-Reply-To: <cover.1521218085.git.horms+renesas@verge.net.au>

From: Wolfram Sang <wsa+renesas@sang-engineering.com>

Create a separate bus for HDMI related I2C1 and provide fallback to GPIO.

Based on work for the r8a7790/lager by Wolfram Sang.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
[wsa: rebased, fixed aliases, switched to named GPIOs]
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 arch/arm/boot/dts/r8a7794-alt.dts | 53 +++++++++++++++++++++++++++------------
 1 file changed, 37 insertions(+), 16 deletions(-)

diff --git a/arch/arm/boot/dts/r8a7794-alt.dts b/arch/arm/boot/dts/r8a7794-alt.dts
index 60c6515c4996..26a883484ea8 100644
--- a/arch/arm/boot/dts/r8a7794-alt.dts
+++ b/arch/arm/boot/dts/r8a7794-alt.dts
@@ -18,7 +18,9 @@
 
 	aliases {
 		serial0 = &scif2;
+		i2c9 = &gpioi2c1;
 		i2c10 = &gpioi2c4;
+		i2c11 = &i2chdmi;
 		i2c12 = &i2cexio4;
 	};
 
@@ -138,17 +140,50 @@
 		clock-frequency = <148500000>;
 	};
 
+	gpioi2c1: i2c-9 {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		compatible = "i2c-gpio";
+		status = "disabled";
+		scl-gpios = <&gpio4 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+		sda-gpios = <&gpio4 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+	};
+
 	gpioi2c4: i2c-10 {
 		#address-cells = <1>;
 		#size-cells = <0>;
 		compatible = "i2c-gpio";
 		status = "disabled";
-		sda-gpios = <&gpio4 9 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
 		scl-gpios = <&gpio4 8 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+		sda-gpios = <&gpio4 9 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
 		i2c-gpio,delay-us = <5>;
 	};
 
 	/*
+	 * A fallback to GPIO is provided for I2C1.
+	 */
+	i2chdmi: i2c-11 {
+		compatible = "i2c-demux-pinctrl";
+		i2c-parent = <&i2c1>, <&gpioi2c1>;
+		i2c-bus-name = "i2c-hdmi";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		composite-in@20 {
+			compatible = "adi,adv7180";
+			reg = <0x20>;
+			remote = <&vin0>;
+
+			port {
+				adv7180: endpoint {
+					bus-width = <8>;
+					remote-endpoint = <&vin0ep>;
+				};
+			};
+		};
+	};
+
+	/*
 	 * I2C4 is routed to EXIO connector B, pins 73 (SCL) + 74 (SDA).
 	 * A fallback to GPIO is provided.
 	 */
@@ -324,23 +359,9 @@
 
 &i2c1 {
 	pinctrl-0 = <&i2c1_pins>;
-	pinctrl-names = "default";
+	pinctrl-names = "i2c-hdmi";
 
-	status = "okay";
 	clock-frequency = <400000>;
-
-	composite-in@20 {
-		compatible = "adi,adv7180";
-		reg = <0x20>;
-		remote = <&vin0>;
-
-		port {
-			adv7180: endpoint {
-				bus-width = <8>;
-				remote-endpoint = <&vin0ep>;
-			};
-		};
-	};
 };
 
 &i2c4 {
-- 
2.11.0

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 38/47] ARM: dts: alt: use demuxer for I2C1
Date: Fri, 16 Mar 2018 17:38:35 +0100	[thread overview]
Message-ID: <61866d7fdc7007acfca2107f7d9fcb05ed0c6203.1521218085.git.horms+renesas@verge.net.au> (raw)
In-Reply-To: <cover.1521218085.git.horms+renesas@verge.net.au>

From: Wolfram Sang <wsa+renesas@sang-engineering.com>

Create a separate bus for HDMI related I2C1 and provide fallback to GPIO.

Based on work for the r8a7790/lager by Wolfram Sang.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
[wsa: rebased, fixed aliases, switched to named GPIOs]
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 arch/arm/boot/dts/r8a7794-alt.dts | 53 +++++++++++++++++++++++++++------------
 1 file changed, 37 insertions(+), 16 deletions(-)

diff --git a/arch/arm/boot/dts/r8a7794-alt.dts b/arch/arm/boot/dts/r8a7794-alt.dts
index 60c6515c4996..26a883484ea8 100644
--- a/arch/arm/boot/dts/r8a7794-alt.dts
+++ b/arch/arm/boot/dts/r8a7794-alt.dts
@@ -18,7 +18,9 @@
 
 	aliases {
 		serial0 = &scif2;
+		i2c9 = &gpioi2c1;
 		i2c10 = &gpioi2c4;
+		i2c11 = &i2chdmi;
 		i2c12 = &i2cexio4;
 	};
 
@@ -138,17 +140,50 @@
 		clock-frequency = <148500000>;
 	};
 
+	gpioi2c1: i2c-9 {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		compatible = "i2c-gpio";
+		status = "disabled";
+		scl-gpios = <&gpio4 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+		sda-gpios = <&gpio4 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+	};
+
 	gpioi2c4: i2c-10 {
 		#address-cells = <1>;
 		#size-cells = <0>;
 		compatible = "i2c-gpio";
 		status = "disabled";
-		sda-gpios = <&gpio4 9 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
 		scl-gpios = <&gpio4 8 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+		sda-gpios = <&gpio4 9 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
 		i2c-gpio,delay-us = <5>;
 	};
 
 	/*
+	 * A fallback to GPIO is provided for I2C1.
+	 */
+	i2chdmi: i2c-11 {
+		compatible = "i2c-demux-pinctrl";
+		i2c-parent = <&i2c1>, <&gpioi2c1>;
+		i2c-bus-name = "i2c-hdmi";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		composite-in at 20 {
+			compatible = "adi,adv7180";
+			reg = <0x20>;
+			remote = <&vin0>;
+
+			port {
+				adv7180: endpoint {
+					bus-width = <8>;
+					remote-endpoint = <&vin0ep>;
+				};
+			};
+		};
+	};
+
+	/*
 	 * I2C4 is routed to EXIO connector B, pins 73 (SCL) + 74 (SDA).
 	 * A fallback to GPIO is provided.
 	 */
@@ -324,23 +359,9 @@
 
 &i2c1 {
 	pinctrl-0 = <&i2c1_pins>;
-	pinctrl-names = "default";
+	pinctrl-names = "i2c-hdmi";
 
-	status = "okay";
 	clock-frequency = <400000>;
-
-	composite-in at 20 {
-		compatible = "adi,adv7180";
-		reg = <0x20>;
-		remote = <&vin0>;
-
-		port {
-			adv7180: endpoint {
-				bus-width = <8>;
-				remote-endpoint = <&vin0ep>;
-			};
-		};
-	};
 };
 
 &i2c4 {
-- 
2.11.0

  parent reply	other threads:[~2018-03-16 16:39 UTC|newest]

Thread overview: 98+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-16 16:38 [GIT PULL v2] Renesas ARM Based SoC DT Updates for v4.17 Simon Horman
2018-03-16 16:38 ` Simon Horman
2018-03-16 16:37 ` [PATCH 01/47] ARM: dts: r8a7790: Reduce size of thermal registers Simon Horman
2018-03-16 16:37   ` Simon Horman
2018-03-16 16:37 ` [PATCH 02/47] ARM: dts: r8a7791: " Simon Horman
2018-03-16 16:37   ` Simon Horman
2018-03-16 16:38 ` [PATCH 03/47] ARM: dts: r8a7793: " Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 04/47] ARM: dts: lager: Add CEC clock for HDMI transmitter Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 05/47] ARM: dts: iwg20m: Enable cmt0 Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 06/47] ARM: dts: iwg22m: " Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 07/47] ARM: dts: porter: Fix HDMI output routing Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 08/47] ARM: dts: r8a7790: consistently use single space after = Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 09/47] ARM: dts: r8a7790: add soc node Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 10/47] ARM: dts: r8a7790: sort subnodes of " Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 11/47] ARM: dts: r8a7790: sort subnodes of root node Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 12/47] ARM: dts: r8a7791: consistently use single space after = Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 13/47] ARM: dts: r8a7791: add soc node Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 14/47] ARM: dts: r8a7791: sort subnodes of root node Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 15/47] ARM: dts: r8a7792: sort subnodes of soc node Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 16/47] ARM: dts: r8a7793: consistently use single space after = Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 17/47] ARM: dts: r8a7793: add soc node Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 18/47] ARM: dts: r8a7793: sort subnodes of " Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 19/47] ARM: dts: r8a7793: sort subnodes of root node Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 20/47] ARM: dts: r8a7794: consistently use single space after = Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 21/47] ARM: dts: r8a7794: add soc node Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 22/47] ARM: dts: r8a7794: sort subnodes of " Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 23/47] ARM: dts: r8a7794: sort subnodes of root node Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 24/47] ARM: dts: r8a7790: consistently use single space before = Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 25/47] ARM: dts: r8a7791: " Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 26/47] ARM: dts: r8a7793: " Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 27/47] ARM: dts: r8a7743: sort subnodes of soc node Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 28/47] ARM: dts: r8a7745: " Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 29/47] ARM: dts: r8a7743: Add IPMMU DT nodes Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 30/47] ARM: dts: r8a7745: " Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 31/47] ARM: dts: r8a7743: Add VSP support Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 32/47] ARM: dts: r8a7745: " Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 33/47] ARM: dts: lager: use demuxer for IIC2/I2C2 Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 34/47] ARM: dts: lager: use demuxer for IIC3/I2C3 Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 35/47] ARM: dts: koelsch: use demuxer for I2C2 Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 36/47] ARM: dts: koelsch: use demuxer for I2C4 Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 37/47] ARM: dts: porter: use demuxer for I2C2 Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` Simon Horman [this message]
2018-03-16 16:38   ` [PATCH 38/47] ARM: dts: alt: use demuxer for I2C1 Simon Horman
2018-03-16 16:38 ` [PATCH 39/47] ARM: dts: silk: " Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 40/47] ARM: dts: gose: use demuxer for I2C2 Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 41/47] ARM: dts: gose: use demuxer for I2C4 Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 42/47] ARM: dts: kzm9d: Fix "debounce-interval" property misspelling Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 43/47] ARM: dts: lager: Move cec_clock to root node Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 44/47] ARM: dts: stout: Initial r8a7790 Stout board support Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 45/47] ARM: dts: marzen: Add SDHI0 VCCQ Regulator Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 46/47] ARM: dts: silk: Add r1ex24002 EEPROM to DT Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-16 16:38 ` [PATCH 47/47] ARM: dts: silk: Add GPIO keys " Simon Horman
2018-03-16 16:38   ` Simon Horman
2018-03-27 12:10 ` [GIT PULL v2] Renesas ARM Based SoC DT Updates for v4.17 Arnd Bergmann
2018-03-27 12:10   ` Arnd Bergmann

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=61866d7fdc7007acfca2107f7d9fcb05ed0c6203.1521218085.git.horms+renesas@verge.net.au \
    --to=horms+renesas@verge.net.au \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=wsa+renesas@sang-engineering.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.