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

Create a separate bus for dla98063 PMIC and da9210 regulator
related I2C slaves.

Based on similar work for HDMI by Wolfram Sang.

Cc: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
v3
* Add a small commend documenting that IIC3/I2C3 may be switched
  and that a GPIO fallback not provided.

v2
* No change
---
 arch/arm/boot/dts/r8a7790-lager.dts | 84 +++++++++++++++++++++++--------------
 1 file changed, 53 insertions(+), 31 deletions(-)

diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts
index 862d766b932b..626b55369871 100644
--- a/arch/arm/boot/dts/r8a7790-lager.dts
+++ b/arch/arm/boot/dts/r8a7790-lager.dts
@@ -55,6 +55,7 @@
 		i2c10 = "i2cexio0";
 		i2c11 = "i2cexio1";
 		i2c12 = "i2chdmi";
+		i2c13 = "i2cpwr";
 	};
 
 	chosen {
@@ -374,6 +375,46 @@
 			};
 		};
 	};
+
+	/*
+	 * IIC3 and I2C3 may be switched using pinmux.
+	 * IIC3/I2C3 does not appear to support fallback to GPIO.
+	 */
+	i2cpwr: i2c-13 {
+		compatible = "i2c-demux-pinctrl";
+		i2c-parent = <&iic3>, <&i2c3>;
+		i2c-bus-name = "i2c-pwr";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		pmic@58 {
+			compatible = "dlg,da9063";
+			reg = <0x58>;
+			interrupt-parent = <&irqc0>;
+			interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
+			interrupt-controller;
+
+			rtc {
+				compatible = "dlg,da9063-rtc";
+			};
+
+			wdt {
+				compatible = "dlg,da9063-watchdog";
+			};
+		};
+
+		vdd_dvfs: regulator@68 {
+			compatible = "dlg,da9210";
+			reg = <0x68>;
+			interrupt-parent = <&irqc0>;
+			interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
+
+			regulator-min-microvolt = <1000000>;
+			regulator-max-microvolt = <1000000>;
+			regulator-boot-on;
+			regulator-always-on;
+		};
+	};
 };
 
 &du {
@@ -516,6 +557,11 @@
 		function = "iic2";
 	};
 
+	i2c3_pins: i2c3 {
+		groups = "i2c3";
+		function = "i2c3";
+	};
+
 	iic3_pins: iic3 {
 		groups = "iic3";
 		function = "iic3";
@@ -726,38 +772,14 @@
 	clock-frequency = <100000>;
 };
 
-&iic3 {
-	pinctrl-names = "default";
-	pinctrl-0 = <&iic3_pins>;
-	status = "okay";
-
-	pmic@58 {
-		compatible = "dlg,da9063";
-		reg = <0x58>;
-		interrupt-parent = <&irqc0>;
-		interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
-		interrupt-controller;
-
-		rtc {
-			compatible = "dlg,da9063-rtc";
-		};
-
-		wdt {
-			compatible = "dlg,da9063-watchdog";
-		};
-	};
-
-	vdd_dvfs: regulator@68 {
-		compatible = "dlg,da9210";
-		reg = <0x68>;
-		interrupt-parent = <&irqc0>;
-		interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
+&i2c3	{
+	pinctrl-0 = <&i2c3_pins>;
+	pinctrl-names = "i2c-pwr";
+};
 
-		regulator-min-microvolt = <1000000>;
-		regulator-max-microvolt = <1000000>;
-		regulator-boot-on;
-		regulator-always-on;
-	};
+&iic3	{
+	pinctrl-0 = <&iic3_pins>;
+	pinctrl-names = "i2c-pwr";
 };
 
 &pci0 {
-- 
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 04/13] ARM: dts: lager: use demuxer for IIC3/I2C3
Date: Wed, 22 Jun 2016 12:43:42 +0900	[thread overview]
Message-ID: <1466567031-20381-5-git-send-email-horms+renesas@verge.net.au> (raw)
In-Reply-To: <1466567031-20381-1-git-send-email-horms+renesas@verge.net.au>

Create a separate bus for dla98063 PMIC and da9210 regulator
related I2C slaves.

Based on similar work for HDMI by Wolfram Sang.

Cc: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
v3
* Add a small commend documenting that IIC3/I2C3 may be switched
  and that a GPIO fallback not provided.

v2
* No change
---
 arch/arm/boot/dts/r8a7790-lager.dts | 84 +++++++++++++++++++++++--------------
 1 file changed, 53 insertions(+), 31 deletions(-)

diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts
index 862d766b932b..626b55369871 100644
--- a/arch/arm/boot/dts/r8a7790-lager.dts
+++ b/arch/arm/boot/dts/r8a7790-lager.dts
@@ -55,6 +55,7 @@
 		i2c10 = "i2cexio0";
 		i2c11 = "i2cexio1";
 		i2c12 = "i2chdmi";
+		i2c13 = "i2cpwr";
 	};
 
 	chosen {
@@ -374,6 +375,46 @@
 			};
 		};
 	};
+
+	/*
+	 * IIC3 and I2C3 may be switched using pinmux.
+	 * IIC3/I2C3 does not appear to support fallback to GPIO.
+	 */
+	i2cpwr: i2c-13 {
+		compatible = "i2c-demux-pinctrl";
+		i2c-parent = <&iic3>, <&i2c3>;
+		i2c-bus-name = "i2c-pwr";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		pmic at 58 {
+			compatible = "dlg,da9063";
+			reg = <0x58>;
+			interrupt-parent = <&irqc0>;
+			interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
+			interrupt-controller;
+
+			rtc {
+				compatible = "dlg,da9063-rtc";
+			};
+
+			wdt {
+				compatible = "dlg,da9063-watchdog";
+			};
+		};
+
+		vdd_dvfs: regulator at 68 {
+			compatible = "dlg,da9210";
+			reg = <0x68>;
+			interrupt-parent = <&irqc0>;
+			interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
+
+			regulator-min-microvolt = <1000000>;
+			regulator-max-microvolt = <1000000>;
+			regulator-boot-on;
+			regulator-always-on;
+		};
+	};
 };
 
 &du {
@@ -516,6 +557,11 @@
 		function = "iic2";
 	};
 
+	i2c3_pins: i2c3 {
+		groups = "i2c3";
+		function = "i2c3";
+	};
+
 	iic3_pins: iic3 {
 		groups = "iic3";
 		function = "iic3";
@@ -726,38 +772,14 @@
 	clock-frequency = <100000>;
 };
 
-&iic3 {
-	pinctrl-names = "default";
-	pinctrl-0 = <&iic3_pins>;
-	status = "okay";
-
-	pmic at 58 {
-		compatible = "dlg,da9063";
-		reg = <0x58>;
-		interrupt-parent = <&irqc0>;
-		interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
-		interrupt-controller;
-
-		rtc {
-			compatible = "dlg,da9063-rtc";
-		};
-
-		wdt {
-			compatible = "dlg,da9063-watchdog";
-		};
-	};
-
-	vdd_dvfs: regulator at 68 {
-		compatible = "dlg,da9210";
-		reg = <0x68>;
-		interrupt-parent = <&irqc0>;
-		interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
+&i2c3	{
+	pinctrl-0 = <&i2c3_pins>;
+	pinctrl-names = "i2c-pwr";
+};
 
-		regulator-min-microvolt = <1000000>;
-		regulator-max-microvolt = <1000000>;
-		regulator-boot-on;
-		regulator-always-on;
-	};
+&iic3	{
+	pinctrl-0 = <&iic3_pins>;
+	pinctrl-names = "i2c-pwr";
 };
 
 &pci0 {
-- 
2.1.4

  parent reply	other threads:[~2016-06-22  3:58 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 ` Simon Horman [this message]
2016-06-22  3:43   ` [PATCH v3 04/13] ARM: dts: lager: use demuxer for IIC3/I2C3 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 ` [PATCH v3 12/13] ARM: dts: alt: use demuxer for I2C4 Simon Horman
2016-06-22  3:43   ` 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-5-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.