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 v3 12/13] ARM: dts: alt: use demuxer for I2C4
Date: Wed, 22 Jun 2016 12:43:50 +0900	[thread overview]
Message-ID: <1466567031-20381-13-git-send-email-horms+renesas@verge.net.au> (raw)
In-Reply-To: <1466567031-20381-1-git-send-email-horms+renesas@verge.net.au>

Make it possible to fallback to GPIO for I2C4 on the EXIO-B connector.

This is based on reference work for the I2C0 core of the lager/r8a7790
by Wolfram Sang.

Cc: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
v3
* New Patch
---
 arch/arm/boot/dts/r8a7794-alt.dts | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7794-alt.dts b/arch/arm/boot/dts/r8a7794-alt.dts
index d00b1b33f6ed..10f72e700685 100644
--- a/arch/arm/boot/dts/r8a7794-alt.dts
+++ b/arch/arm/boot/dts/r8a7794-alt.dts
@@ -19,7 +19,9 @@
 	aliases {
 		serial0 = &scif2;
 		i2c9 = "gpioi2c1";
+		i2c10 = "gpioi2c4";
 		i2c11 = "i2chdmi";
+		i2c12 = "i2cexio4";
 	};
 
 	chosen {
@@ -92,6 +94,17 @@
 		i2c-gpio,delay-us = <5>;
 	};
 
+	gpioi2c4: i2c-10 {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		compatible = "i2c-gpio";
+		status = "disabled";
+		gpios = <&gpio4 9 GPIO_ACTIVE_HIGH /* sda */
+			 &gpio4 8 GPIO_ACTIVE_HIGH /* scl */
+			>;
+		i2c-gpio,delay-us = <5>;
+	};
+
 	/*
 	 * A fallback to GPIO is provided for I2C1.
 	 */
@@ -115,6 +128,18 @@
 			};
 		};
 	};
+
+	/*
+	 * I2C4 is routed to EXIO connector B, pins 73 (SCL) + 74 (SDA).
+	 * A fallback to GPIO is provided.
+	 */
+	i2cexio4: i2c-14 {
+		compatible = "i2c-demux-pinctrl";
+		i2c-parent = <&i2c4>, <&gpioi2c4>;
+		i2c-bus-name = "i2c-exio4";
+		#address-cells = <1>;
+		#size-cells = <0>;
+	};
 };
 
 &du {
@@ -174,6 +199,11 @@
 		function = "i2c1";
 	};
 
+	i2c4_pins: i2c4 {
+		groups = "i2c4";
+		function = "i2c4";
+	};
+
 	vin0_pins: vin0 {
 		groups = "vin0_data8", "vin0_clk";
 		function = "vin0";
@@ -214,6 +244,11 @@
 	clock-frequency = <400000>;
 };
 
+&i2c4 {
+	pinctrl-0 = <&i2c4_pins>;
+	pinctrl-names = "i2c-exio4";
+};
+
 &vin0 {
 	status = "okay";
 	pinctrl-0 = <&vin0_pins>;
-- 
2.1.4

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 v3 12/13] ARM: dts: alt: use demuxer for I2C4
Date: Wed, 22 Jun 2016 12:43:50 +0900	[thread overview]
Message-ID: <1466567031-20381-13-git-send-email-horms+renesas@verge.net.au> (raw)
In-Reply-To: <1466567031-20381-1-git-send-email-horms+renesas@verge.net.au>

Make it possible to fallback to GPIO for I2C4 on the EXIO-B connector.

This is based on reference work for the I2C0 core of the lager/r8a7790
by Wolfram Sang.

Cc: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
v3
* New Patch
---
 arch/arm/boot/dts/r8a7794-alt.dts | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7794-alt.dts b/arch/arm/boot/dts/r8a7794-alt.dts
index d00b1b33f6ed..10f72e700685 100644
--- a/arch/arm/boot/dts/r8a7794-alt.dts
+++ b/arch/arm/boot/dts/r8a7794-alt.dts
@@ -19,7 +19,9 @@
 	aliases {
 		serial0 = &scif2;
 		i2c9 = "gpioi2c1";
+		i2c10 = "gpioi2c4";
 		i2c11 = "i2chdmi";
+		i2c12 = "i2cexio4";
 	};
 
 	chosen {
@@ -92,6 +94,17 @@
 		i2c-gpio,delay-us = <5>;
 	};
 
+	gpioi2c4: i2c-10 {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		compatible = "i2c-gpio";
+		status = "disabled";
+		gpios = <&gpio4 9 GPIO_ACTIVE_HIGH /* sda */
+			 &gpio4 8 GPIO_ACTIVE_HIGH /* scl */
+			>;
+		i2c-gpio,delay-us = <5>;
+	};
+
 	/*
 	 * A fallback to GPIO is provided for I2C1.
 	 */
@@ -115,6 +128,18 @@
 			};
 		};
 	};
+
+	/*
+	 * I2C4 is routed to EXIO connector B, pins 73 (SCL) + 74 (SDA).
+	 * A fallback to GPIO is provided.
+	 */
+	i2cexio4: i2c-14 {
+		compatible = "i2c-demux-pinctrl";
+		i2c-parent = <&i2c4>, <&gpioi2c4>;
+		i2c-bus-name = "i2c-exio4";
+		#address-cells = <1>;
+		#size-cells = <0>;
+	};
 };
 
 &du {
@@ -174,6 +199,11 @@
 		function = "i2c1";
 	};
 
+	i2c4_pins: i2c4 {
+		groups = "i2c4";
+		function = "i2c4";
+	};
+
 	vin0_pins: vin0 {
 		groups = "vin0_data8", "vin0_clk";
 		function = "vin0";
@@ -214,6 +244,11 @@
 	clock-frequency = <400000>;
 };
 
+&i2c4 {
+	pinctrl-0 = <&i2c4_pins>;
+	pinctrl-names = "i2c-exio4";
+};
+
 &vin0 {
 	status = "okay";
 	pinctrl-0 = <&vin0_pins>;
-- 
2.1.4

  parent reply	other threads:[~2016-06-22  3:49 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-22  3:43 [PATCH v3 00/13] ARM: dts: r8a779x: use demuxer for I2C Simon Horman
2016-06-22  3:43 ` Simon Horman
2016-06-22  3:43 ` [PATCH v3 01/13] ARM: dts: lager: rename and reindex i2cexio Simon Horman
2016-06-22  3:43   ` Simon Horman
2016-08-30 15:29   ` Wolfram Sang
2016-08-30 15:29     ` Wolfram Sang
2016-09-02  8:17     ` Simon Horman
2016-09-02  8:17       ` Simon Horman
2016-06-22  3:43 ` [PATCH v3 02/13] ARM: dts: lager: use demuxer for IIC1/I2C1 Simon Horman
2016-06-22  3:43   ` Simon Horman
2016-06-22  3:43 ` [PATCH v3 03/13] ARM: dts: lager: use demuxer for IIC2/I2C2 Simon Horman
2016-06-22  3:43   ` Simon Horman
2016-06-22  3:43 ` [PATCH v3 04/13] ARM: dts: lager: use demuxer for IIC3/I2C3 Simon Horman
2016-06-22  3:43   ` Simon Horman
2016-06-22  7:29   ` Geert Uytterhoeven
2016-06-22  7:29     ` Geert Uytterhoeven
2016-06-22  3:43 ` [PATCH v3 05/13] ARM: dts: koelsch: use demuxer for I2C1 Simon Horman
2016-06-22  3:43   ` Simon Horman
2016-06-22  3:43 ` [PATCH v3 06/13] ARM: dts: koelsch: use demuxer for I2C2 Simon Horman
2016-06-22  3:43   ` Simon Horman
2016-06-22  3:43 ` [PATCH v3 07/13] ARM: dts: koelsch: use demuxer for I2C4 Simon Horman
2016-06-22  3:43   ` Simon Horman
2016-06-22  3:43 ` [PATCH v3 08/13] ARM: dts: porter: use demuxer for I2C2 Simon Horman
2016-06-22  3:43   ` Simon Horman
2016-06-22  3:43 ` [PATCH v3 09/13] " Simon Horman
2016-06-22  3:43   ` Simon Horman
2016-06-22  3:43 ` [PATCH v3 10/13] ARM: dts: koelsch: use demuxer for I2C4 Simon Horman
2016-06-22  3:43   ` Simon Horman
2016-06-22  3:43 ` [PATCH v3 11/13] ARM: dts: alt: use demuxer for I2C1 Simon Horman
2016-06-22  3:43   ` Simon Horman
2016-06-22  3:43 ` Simon Horman [this message]
2016-06-22  3:43   ` [PATCH v3 12/13] ARM: dts: alt: use demuxer for I2C4 Simon Horman
2016-06-22  3:43 ` [PATCH v3 13/13] ARM: dts: silk: use demuxer for I2C1 Simon Horman
2016-06-22  3:43   ` Simon Horman

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=1466567031-20381-13-git-send-email-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.