aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2014-02-13 00:43:19 -0500
committerSimon Horman <horms+renesas@verge.net.au>2014-02-13 00:49:31 -0500
commitc6119944a421c416818a9ff11f8bd77aa4d683a5 (patch)
treef5fdfcbcd9f7650bc00689ccb2d8cc27d489d698
parent9fe7c4f810a7e82c4a1a9765017f9cb2c2b40a65 (diff)
ARM: shmobile: lager: add SDHI0/2 support on DTS
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Acked-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r--arch/arm/boot/dts/r8a7790-lager.dts78
1 files changed, 78 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts
index adff2dc4012d..5466fe4ed43e 100644
--- a/arch/arm/boot/dts/r8a7790-lager.dts
+++ b/arch/arm/boot/dts/r8a7790-lager.dts
@@ -56,6 +56,54 @@
56 regulator-boot-on; 56 regulator-boot-on;
57 regulator-always-on; 57 regulator-always-on;
58 }; 58 };
59
60 vcc_sdhi0: regulator@1 {
61 compatible = "regulator-fixed";
62
63 regulator-name = "SDHI0 Vcc";
64 regulator-min-microvolt = <3300000>;
65 regulator-max-microvolt = <3300000>;
66
67 gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>;
68 enable-active-high;
69 };
70
71 vccq_sdhi0: regulator@2 {
72 compatible = "regulator-gpio";
73
74 regulator-name = "SDHI0 VccQ";
75 regulator-min-microvolt = <1800000>;
76 regulator-max-microvolt = <3300000>;
77
78 gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
79 gpios-states = <1>;
80 states = <3300000 1
81 1800000 0>;
82 };
83
84 vcc_sdhi2: regulator@3 {
85 compatible = "regulator-fixed";
86
87 regulator-name = "SDHI2 Vcc";
88 regulator-min-microvolt = <3300000>;
89 regulator-max-microvolt = <3300000>;
90
91 gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>;
92 enable-active-high;
93 };
94
95 vccq_sdhi2: regulator@4 {
96 compatible = "regulator-gpio";
97
98 regulator-name = "SDHI2 VccQ";
99 regulator-min-microvolt = <1800000>;
100 regulator-max-microvolt = <3300000>;
101
102 gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>;
103 gpios-states = <1>;
104 states = <3300000 1
105 1800000 0>;
106 };
59}; 107};
60 108
61&extal_clk { 109&extal_clk {
@@ -76,6 +124,16 @@
76 renesas,function = "scif1"; 124 renesas,function = "scif1";
77 }; 125 };
78 126
127 sdhi0_pins: sd0 {
128 renesas,gpios = "sdhi0_data4", "sdhi0_ctrl";
129 renesas,function = "sdhi0";
130 };
131
132 sdhi2_pins: sd2 {
133 renesas,gpios = "sdhi2_data4", "sdhi2_ctrl";
134 renesas,function = "sdhi2";
135 };
136
79 mmc1_pins: mmc1 { 137 mmc1_pins: mmc1 {
80 renesas,groups = "mmc1_data8", "mmc1_ctrl"; 138 renesas,groups = "mmc1_data8", "mmc1_ctrl";
81 renesas,function = "mmc1"; 139 renesas,function = "mmc1";
@@ -131,3 +189,23 @@
131 }; 189 };
132 }; 190 };
133}; 191};
192
193&sdhi0 {
194 pinctrl-0 = <&sdhi0_pins>;
195 pinctrl-names = "default";
196
197 vmmc-supply = <&vcc_sdhi0>;
198 vqmmc-supply = <&vccq_sdhi0>;
199 cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
200 status = "okay";
201};
202
203&sdhi2 {
204 pinctrl-0 = <&sdhi2_pins>;
205 pinctrl-names = "default";
206
207 vmmc-supply = <&vcc_sdhi2>;
208 vqmmc-supply = <&vccq_sdhi2>;
209 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
210 status = "okay";
211};