aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlrich Hecht <ulrich.hecht+renesas@gmail.com>2016-04-18 12:02:57 -0400
committerSimon Horman <horms+renesas@verge.net.au>2016-04-25 00:10:11 -0400
commit6f92cb2f454c26d9bdada902e22af4bc361a5202 (patch)
treec1d2c8826d5fa33d3f8fe94bf338303c3790d715
parentfc9ee228f5005437b9fdb1b85804b6d3f8d497be (diff)
ARM: dts: gose: Enable SDHI controllers
Includes regulator and pin assignments. Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r--arch/arm/boot/dts/r8a7793-gose.dts119
1 files changed, 119 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/r8a7793-gose.dts b/arch/arm/boot/dts/r8a7793-gose.dts
index 3cd1c804621f..0ebc3ee34923 100644
--- a/arch/arm/boot/dts/r8a7793-gose.dts
+++ b/arch/arm/boot/dts/r8a7793-gose.dts
@@ -158,6 +158,78 @@
158 }; 158 };
159 }; 159 };
160 160
161 vcc_sdhi0: regulator@0 {
162 compatible = "regulator-fixed";
163
164 regulator-name = "SDHI0 Vcc";
165 regulator-min-microvolt = <3300000>;
166 regulator-max-microvolt = <3300000>;
167
168 gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>;
169 enable-active-high;
170 };
171
172 vccq_sdhi0: regulator@1 {
173 compatible = "regulator-gpio";
174
175 regulator-name = "SDHI0 VccQ";
176 regulator-min-microvolt = <1800000>;
177 regulator-max-microvolt = <3300000>;
178
179 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
180 gpios-states = <1>;
181 states = <3300000 1
182 1800000 0>;
183 };
184
185 vcc_sdhi1: regulator@2 {
186 compatible = "regulator-fixed";
187
188 regulator-name = "SDHI1 Vcc";
189 regulator-min-microvolt = <3300000>;
190 regulator-max-microvolt = <3300000>;
191
192 gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
193 enable-active-high;
194 };
195
196 vccq_sdhi1: regulator@3 {
197 compatible = "regulator-gpio";
198
199 regulator-name = "SDHI1 VccQ";
200 regulator-min-microvolt = <1800000>;
201 regulator-max-microvolt = <3300000>;
202
203 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
204 gpios-states = <1>;
205 states = <3300000 1
206 1800000 0>;
207 };
208
209 vcc_sdhi2: regulator@4 {
210 compatible = "regulator-fixed";
211
212 regulator-name = "SDHI2 Vcc";
213 regulator-min-microvolt = <3300000>;
214 regulator-max-microvolt = <3300000>;
215
216 gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
217 enable-active-high;
218 };
219
220 vccq_sdhi2: regulator@5 {
221 compatible = "regulator-gpio";
222
223 regulator-name = "SDHI2 VccQ";
224 regulator-min-microvolt = <1800000>;
225 regulator-max-microvolt = <3300000>;
226
227 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
228 gpios-states = <1>;
229 states = <3300000 1
230 1800000 0>;
231 };
232
161 audio_clock: audio_clock { 233 audio_clock: audio_clock {
162 compatible = "fixed-clock"; 234 compatible = "fixed-clock";
163 #clock-cells = <0>; 235 #clock-cells = <0>;
@@ -273,6 +345,21 @@
273 function = "intc"; 345 function = "intc";
274 }; 346 };
275 347
348 sdhi0_pins: sd0 {
349 renesas,groups = "sdhi0_data4", "sdhi0_ctrl";
350 renesas,function = "sdhi0";
351 };
352
353 sdhi1_pins: sd1 {
354 renesas,groups = "sdhi1_data4", "sdhi1_ctrl";
355 renesas,function = "sdhi1";
356 };
357
358 sdhi2_pins: sd2 {
359 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
360 renesas,function = "sdhi2";
361 };
362
276 qspi_pins: spi0 { 363 qspi_pins: spi0 {
277 groups = "qspi_ctrl", "qspi_data4"; 364 groups = "qspi_ctrl", "qspi_data4";
278 function = "qspi"; 365 function = "qspi";
@@ -328,6 +415,38 @@
328 status = "okay"; 415 status = "okay";
329}; 416};
330 417
418&sdhi0 {
419 pinctrl-0 = <&sdhi0_pins>;
420 pinctrl-names = "default";
421
422 vmmc-supply = <&vcc_sdhi0>;
423 vqmmc-supply = <&vccq_sdhi0>;
424 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
425 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
426 status = "okay";
427};
428
429&sdhi1 {
430 pinctrl-0 = <&sdhi1_pins>;
431 pinctrl-names = "default";
432
433 vmmc-supply = <&vcc_sdhi1>;
434 vqmmc-supply = <&vccq_sdhi1>;
435 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
436 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
437 status = "okay";
438};
439
440&sdhi2 {
441 pinctrl-0 = <&sdhi2_pins>;
442 pinctrl-names = "default";
443
444 vmmc-supply = <&vcc_sdhi2>;
445 vqmmc-supply = <&vccq_sdhi2>;
446 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
447 status = "okay";
448};
449
331&qspi { 450&qspi {
332 pinctrl-0 = <&qspi_pins>; 451 pinctrl-0 = <&qspi_pins>;
333 pinctrl-names = "default"; 452 pinctrl-names = "default";