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>,
	Fabrizio Castro <fabrizio.castro@bp.renesas.com>,
	Chris Paterson <chris.paterson2@renesas.com>,
	Simon Horman <horms+renesas@verge.net.au>
Subject: [PATCH 46/48] ARM: dts: iwg22d: Enable SDHI0 controller
Date: Fri, 29 Sep 2017 13:53:38 +0200	[thread overview]
Message-ID: <ec301d261d5a5a71f2ba1baf7a852b220fe69f3c.1506683482.git.horms+renesas@verge.net.au> (raw)
In-Reply-To: <cover.1506683482.git.horms+renesas@verge.net.au>

From: Fabrizio Castro <fabrizio.castro@bp.renesas.com>

Enable the SDHI0 controller on iWave RZ/G1E carrier board.

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
index aac84c67a31d..8772c561e3a8 100644
--- a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
+++ b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
@@ -24,6 +24,19 @@
 		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
 		stdout-path = "serial0:115200n8";
 	};
+
+	vccq_sdhi0: regulator-vccq-sdhi0 {
+		compatible = "regulator-gpio";
+
+		regulator-name = "SDHI0 VccQ";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <3300000>;
+
+		gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
+		gpios-states = <1>;
+		states = <3300000 1
+			  1800000 0>;
+	};
 };
 
 &pfc {
@@ -36,6 +49,12 @@
 		groups = "avb_mdio", "avb_gmii";
 		function = "avb";
 	};
+
+	sdhi0_pins: sd0 {
+		groups = "sdhi0_data4", "sdhi0_ctrl";
+		function = "sdhi0";
+		power-source = <3300>;
+	};
 };
 
 &scif4 {
@@ -63,3 +82,13 @@
 		micrel,led-mode = <1>;
 	};
 };
+
+&sdhi0 {
+	pinctrl-0 = <&sdhi0_pins>;
+	pinctrl-names = "default";
+
+	vmmc-supply = <&reg_3p3v>;
+	vqmmc-supply = <&vccq_sdhi0>;
+	cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
+	status = "okay";
+};
-- 
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 46/48] ARM: dts: iwg22d: Enable SDHI0 controller
Date: Fri, 29 Sep 2017 13:53:38 +0200	[thread overview]
Message-ID: <ec301d261d5a5a71f2ba1baf7a852b220fe69f3c.1506683482.git.horms+renesas@verge.net.au> (raw)
In-Reply-To: <cover.1506683482.git.horms+renesas@verge.net.au>

From: Fabrizio Castro <fabrizio.castro@bp.renesas.com>

Enable the SDHI0 controller on iWave RZ/G1E carrier board.

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
index aac84c67a31d..8772c561e3a8 100644
--- a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
+++ b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
@@ -24,6 +24,19 @@
 		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
 		stdout-path = "serial0:115200n8";
 	};
+
+	vccq_sdhi0: regulator-vccq-sdhi0 {
+		compatible = "regulator-gpio";
+
+		regulator-name = "SDHI0 VccQ";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <3300000>;
+
+		gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
+		gpios-states = <1>;
+		states = <3300000 1
+			  1800000 0>;
+	};
 };
 
 &pfc {
@@ -36,6 +49,12 @@
 		groups = "avb_mdio", "avb_gmii";
 		function = "avb";
 	};
+
+	sdhi0_pins: sd0 {
+		groups = "sdhi0_data4", "sdhi0_ctrl";
+		function = "sdhi0";
+		power-source = <3300>;
+	};
 };
 
 &scif4 {
@@ -63,3 +82,13 @@
 		micrel,led-mode = <1>;
 	};
 };
+
+&sdhi0 {
+	pinctrl-0 = <&sdhi0_pins>;
+	pinctrl-names = "default";
+
+	vmmc-supply = <&reg_3p3v>;
+	vqmmc-supply = <&vccq_sdhi0>;
+	cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
+	status = "okay";
+};
-- 
2.1.4

  parent reply	other threads:[~2017-09-29 11:55 UTC|newest]

Thread overview: 106+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-29 11:53 [GIT PULL] Renesas ARM Based SoC DT Updates for v4.15 Simon Horman
2017-09-29 11:53 ` Simon Horman
2017-09-29 11:52 ` [PATCH 01/48] ARM: dts: r8a7790: Convert to new CPG/MSSR bindings Simon Horman
2017-09-29 11:52   ` Simon Horman
2017-09-29 11:52 ` [PATCH 02/48] ARM: dts: r8a7792: " Simon Horman
2017-09-29 11:52   ` Simon Horman
2017-09-29 11:52 ` [PATCH 03/48] ARM: dts: r8a7793: " Simon Horman
2017-09-29 11:52   ` Simon Horman
2017-09-29 11:52 ` [PATCH 04/48] ARM: dts: r8a7794: " Simon Horman
2017-09-29 11:52   ` Simon Horman
2017-09-29 11:52 ` [PATCH 05/48] ARM: dts: r8a7790: Stop grouping clocks under a "clocks" subnode Simon Horman
2017-09-29 11:52   ` Simon Horman
2017-09-29 11:52 ` [PATCH 06/48] ARM: dts: r8a7793: " Simon Horman
2017-09-29 11:52   ` Simon Horman
2017-09-29 11:52 ` [PATCH 07/48] ARM: dts: r8a7794: " Simon Horman
2017-09-29 11:52   ` Simon Horman
2017-09-29 11:53 ` [PATCH 08/48] ARM: dts: r8a7743: Add SDHI controllers Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 09/48] ARM: dts: iwg20m: Enable SDHI0 controller Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 10/48] ARM: dts: iwg20d-q7: Add SDHI1 support Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 11/48] ARM: dts: r8a7745: Add GPIO support Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 12/48] ARM: dts: iwg22m: Add iWave RZG1E SODIMM SOM Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 13/48] ARM: dts: iwg22d-sodimm: Add support for iWave G22D-SODIMM board Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 14/48] ARM: dts: r8a7745: Add I2C DT support Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 15/48] ARM: dts: r8a7745: Add MMC interface support Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 16/48] ARM: dts: iwg22m: Add eMMC support Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 17/48] ARM: dts: iwg22m: Add RTC support Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 18/48] ARM: dts: r8a7791: Convert to new CPG/MSSR bindings Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 19/48] ARM: dts: r8a7791: Stop grouping clocks under a "clocks" subnode Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 20/48] ARM: dts: gr-peach: Remove empty line Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 21/48] ARM: dts: gr-peach: Add SCIF2 pin group Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 22/48] ARM: dts: gr-peach: Add user led device nodes Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-30 10:36   ` Sergei Shtylyov
2017-09-30 10:36     ` Sergei Shtylyov
2017-10-01 17:36     ` jacopo mondi
2017-10-01 17:36       ` jacopo mondi
2017-10-02  7:15       ` Simon Horman
2017-10-02  7:15         ` Simon Horman
2017-09-29 11:53 ` [PATCH 23/48] ARM: dts: r8a7745: Add Ethernet AVB support Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 24/48] ARM: dts: iwg20d-q7: Add chosen node Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 25/48] ARM: dts: iwg20d-q7: Add RTC support Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 26/48] ARM: dts: iwg22d-sodimm: Add pinctl support for scif4 Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 27/48] ARM: dts: iwg22d-sodimm: Add Ethernet AVB support Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 28/48] ARM: dts: r8a7743: Add internal PCI bridge nodes Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 29/48] ARM: dts: r8a7743: Add USB PHY DT support Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 30/48] ARM: dts: r8a7743: Link PCI USB devices to USB PHY Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 31/48] ARM: dts: iwg20d-q7: Enable internal PCI Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 32/48] ARM: dts: iwg20d-q7: Enable USB PHY Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 33/48] ARM: dts: alt: use correct logic for SD WP pins Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 34/48] ARM: dts: r8a7743: Add IIC cores to dtsi Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 35/48] ARM: dts: r8a7790: Add reset control properties Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 36/48] ARM: dts: r8a7791: " Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 37/48] ARM: dts: r8a7792: " Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 38/48] ARM: dts: r8a7793: " Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 39/48] ARM: dts: r8a7794: " Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 40/48] ARM: dts: r8a7745: Add SDHI controllers Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 41/48] ARM: dts: iwg22m: Enable SDHI1 controller Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 42/48] ARM: dts: r8a7743: Add QSPI support Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 43/48] ARM: dts: iwg20m: Add SPI NOR support Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 44/48] ARM: dts: r8a7745: Add QSPI support Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 45/48] ARM: dts: iwg22m: Add SPI NOR support Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` Simon Horman [this message]
2017-09-29 11:53   ` [PATCH 46/48] ARM: dts: iwg22d: Enable SDHI0 controller Simon Horman
2017-09-29 11:53 ` [PATCH 47/48] ARM: dts: r8a7745: Add MSIOF[012] support Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-09-29 11:53 ` [PATCH 48/48] ARM: dts: r8a7743: " Simon Horman
2017-09-29 11:53   ` Simon Horman
2017-10-19 21:43 ` [GIT PULL] Renesas ARM Based SoC DT Updates for v4.15 Arnd Bergmann
2017-10-19 21:43   ` 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=ec301d261d5a5a71f2ba1baf7a852b220fe69f3c.1506683482.git.horms+renesas@verge.net.au \
    --to=horms+renesas@verge.net.au \
    --cc=chris.paterson2@renesas.com \
    --cc=fabrizio.castro@bp.renesas.com \
    --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.