summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorFabrizio Castro <fabrizio.castro@bp.renesas.com>2017-09-22 14:01:02 +0100
committerSimon Horman <horms+renesas@verge.net.au>2017-09-25 09:13:45 +0200
commitec301d261d5a5a71f2ba1baf7a852b220fe69f3c (patch)
treeed9bc3b20e51b109fcb422185cf30eae3a1558a9 /arch
parentcf1cc6f1da41ceb60f6389b6b46f4f6dc06a2b63 (diff)
downloadtalos-obmc-linux-ec301d261d5a5a71f2ba1baf7a852b220fe69f3c.tar.gz
talos-obmc-linux-ec301d261d5a5a71f2ba1baf7a852b220fe69f3c.zip
ARM: dts: iwg22d: Enable SDHI0 controller
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts29
1 files changed, 29 insertions, 0 deletions
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";
+};
OpenPOWER on IntegriCloud