diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2016-08-30 18:24:41 -0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2016-09-05 08:32:42 -0400 |
commit | 0c157ad23bb02fbda8b9cee82941d7c5ecac26f1 (patch) | |
tree | 6b28c9345c31106a4809d7c704fee2c568bed8f7 | |
parent | 4ea71e6df8c22f90665394476c433cad3b4394b6 (diff) |
ARM: dts: wheat: add SDHI0 support
Define the Wheat board dependent part of the SDHI0 (connected to the
micro-SD slot) device node along with the necessary voltage regulator.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r-- | arch/arm/boot/dts/r8a7792-wheat.dts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/r8a7792-wheat.dts b/arch/arm/boot/dts/r8a7792-wheat.dts index 65d13c83d424..ff37de35c57c 100644 --- a/arch/arm/boot/dts/r8a7792-wheat.dts +++ b/arch/arm/boot/dts/r8a7792-wheat.dts | |||
@@ -11,6 +11,7 @@ | |||
11 | 11 | ||
12 | /dts-v1/; | 12 | /dts-v1/; |
13 | #include "r8a7792.dtsi" | 13 | #include "r8a7792.dtsi" |
14 | #include <dt-bindings/gpio/gpio.h> | ||
14 | 15 | ||
15 | / { | 16 | / { |
16 | model = "Wheat"; | 17 | model = "Wheat"; |
@@ -54,6 +55,17 @@ | |||
54 | pinctrl-0 = <&lan89218_pins>; | 55 | pinctrl-0 = <&lan89218_pins>; |
55 | pinctrl-names = "default"; | 56 | pinctrl-names = "default"; |
56 | }; | 57 | }; |
58 | |||
59 | vcc_sdhi0: regulator-vcc-sdhi0 { | ||
60 | compatible = "regulator-fixed"; | ||
61 | |||
62 | regulator-name = "SDHI0 Vcc"; | ||
63 | regulator-min-microvolt = <3300000>; | ||
64 | regulator-max-microvolt = <3300000>; | ||
65 | |||
66 | gpio = <&gpio11 12 GPIO_ACTIVE_HIGH>; | ||
67 | enable-active-high; | ||
68 | }; | ||
57 | }; | 69 | }; |
58 | 70 | ||
59 | &extal_clk { | 71 | &extal_clk { |
@@ -86,6 +98,11 @@ | |||
86 | groups = "can1_data"; | 98 | groups = "can1_data"; |
87 | function = "can1"; | 99 | function = "can1"; |
88 | }; | 100 | }; |
101 | |||
102 | sdhi0_pins: sdhi0 { | ||
103 | groups = "sdhi0_data4", "sdhi0_ctrl"; | ||
104 | function = "sdhi0"; | ||
105 | }; | ||
89 | }; | 106 | }; |
90 | 107 | ||
91 | &scif0 { | 108 | &scif0 { |
@@ -108,3 +125,12 @@ | |||
108 | 125 | ||
109 | status = "okay"; | 126 | status = "okay"; |
110 | }; | 127 | }; |
128 | |||
129 | &sdhi0 { | ||
130 | pinctrl-0 = <&sdhi0_pins>; | ||
131 | pinctrl-names = "default"; | ||
132 | |||
133 | vmmc-supply = <&vcc_sdhi0>; | ||
134 | cd-gpios = <&gpio11 11 GPIO_ACTIVE_LOW>; | ||
135 | status = "okay"; | ||
136 | }; | ||