diff options
author | Chen-Yu Tsai <wens@csie.org> | 2017-10-18 04:31:35 -0400 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2017-11-02 04:04:51 -0400 |
commit | f9573c09b3a371fb434ae062a2d09228795b24e2 (patch) | |
tree | 605394ed212a4778532ef5268ad017568a369ff5 | |
parent | d7c5f6863550d6c219aeeb1d4c777fb3658387bc (diff) |
ARM: dts: sun8i: a83t: allwinner-h8homlet-v2: Add AXP818 regulator nodes
This patch adds device nodes for all the regulators of the AXP818 PMIC.
Sunxi common regulators are removed, and USB VBUS regulators are added.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
-rw-r--r-- | arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts | 147 |
1 files changed, 134 insertions, 13 deletions
diff --git a/arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts b/arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts index 1f0d60afb25b..5091cecbcd1e 100644 --- a/arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts +++ b/arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts | |||
@@ -43,7 +43,8 @@ | |||
43 | 43 | ||
44 | /dts-v1/; | 44 | /dts-v1/; |
45 | #include "sun8i-a83t.dtsi" | 45 | #include "sun8i-a83t.dtsi" |
46 | #include "sunxi-common-regulators.dtsi" | 46 | |
47 | #include <dt-bindings/gpio/gpio.h> | ||
47 | 48 | ||
48 | / { | 49 | / { |
49 | model = "Allwinner A83T H8Homlet Proto Dev Board v2.0"; | 50 | model = "Allwinner A83T H8Homlet Proto Dev Board v2.0"; |
@@ -56,6 +57,26 @@ | |||
56 | chosen { | 57 | chosen { |
57 | stdout-path = "serial0:115200n8"; | 58 | stdout-path = "serial0:115200n8"; |
58 | }; | 59 | }; |
60 | |||
61 | reg_usb0_vbus: reg-usb0-vbus { | ||
62 | compatible = "regulator-fixed"; | ||
63 | regulator-name = "usb0-vbus"; | ||
64 | regulator-min-microvolt = <5000000>; | ||
65 | regulator-max-microvolt = <5000000>; | ||
66 | regulator-boot-on; | ||
67 | enable-active-high; | ||
68 | gpio = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */ | ||
69 | }; | ||
70 | |||
71 | reg_usb1_vbus: reg-usb1-vbus { | ||
72 | compatible = "regulator-fixed"; | ||
73 | regulator-name = "usb1-vbus"; | ||
74 | regulator-min-microvolt = <5000000>; | ||
75 | regulator-max-microvolt = <5000000>; | ||
76 | regulator-boot-on; | ||
77 | enable-active-high; | ||
78 | gpio = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */ | ||
79 | }; | ||
59 | }; | 80 | }; |
60 | 81 | ||
61 | &ehci0 { | 82 | &ehci0 { |
@@ -65,7 +86,7 @@ | |||
65 | &mmc0 { | 86 | &mmc0 { |
66 | pinctrl-names = "default"; | 87 | pinctrl-names = "default"; |
67 | pinctrl-0 = <&mmc0_pins>; | 88 | pinctrl-0 = <&mmc0_pins>; |
68 | vmmc-supply = <®_vcc3v0>; | 89 | vmmc-supply = <®_dcdc1>; |
69 | cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */ | 90 | cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */ |
70 | bus-width = <4>; | 91 | bus-width = <4>; |
71 | cd-inverted; | 92 | cd-inverted; |
@@ -75,7 +96,8 @@ | |||
75 | &mmc2 { | 96 | &mmc2 { |
76 | pinctrl-names = "default"; | 97 | pinctrl-names = "default"; |
77 | pinctrl-0 = <&mmc2_8bit_emmc_pins>; | 98 | pinctrl-0 = <&mmc2_8bit_emmc_pins>; |
78 | vmmc-supply = <®_vcc3v0>; | 99 | vmmc-supply = <®_dcdc1>; |
100 | vqmmc-supply = <®_dcdc1>; | ||
79 | bus-width = <8>; | 101 | bus-width = <8>; |
80 | non-removable; | 102 | non-removable; |
81 | cap-mmc-hw-reset; | 103 | cap-mmc-hw-reset; |
@@ -86,16 +108,6 @@ | |||
86 | status = "okay"; | 108 | status = "okay"; |
87 | }; | 109 | }; |
88 | 110 | ||
89 | ®_usb0_vbus { | ||
90 | gpio = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */ | ||
91 | status = "okay"; | ||
92 | }; | ||
93 | |||
94 | ®_usb1_vbus { | ||
95 | gpio = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */ | ||
96 | status = "okay"; | ||
97 | }; | ||
98 | |||
99 | &r_rsb { | 111 | &r_rsb { |
100 | status = "okay"; | 112 | status = "okay"; |
101 | 113 | ||
@@ -104,6 +116,8 @@ | |||
104 | reg = <0x3a3>; | 116 | reg = <0x3a3>; |
105 | interrupt-parent = <&r_intc>; | 117 | interrupt-parent = <&r_intc>; |
106 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; | 118 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; |
119 | eldoin-supply = <®_dcdc1>; | ||
120 | swin-supply = <®_dcdc1>; | ||
107 | }; | 121 | }; |
108 | 122 | ||
109 | ac100: codec@e89 { | 123 | ac100: codec@e89 { |
@@ -131,6 +145,113 @@ | |||
131 | }; | 145 | }; |
132 | }; | 146 | }; |
133 | 147 | ||
148 | #include "axp81x.dtsi" | ||
149 | |||
150 | ®_aldo1 { | ||
151 | regulator-always-on; | ||
152 | regulator-min-microvolt = <1800000>; | ||
153 | regulator-max-microvolt = <1800000>; | ||
154 | regulator-name = "vcc-1v8"; | ||
155 | }; | ||
156 | |||
157 | ®_aldo2 { | ||
158 | regulator-always-on; | ||
159 | regulator-min-microvolt = <1800000>; | ||
160 | regulator-max-microvolt = <1800000>; | ||
161 | regulator-name = "dram-pll"; | ||
162 | }; | ||
163 | |||
164 | ®_aldo3 { | ||
165 | regulator-always-on; | ||
166 | regulator-min-microvolt = <3000000>; | ||
167 | regulator-max-microvolt = <3000000>; | ||
168 | regulator-name = "avcc"; | ||
169 | }; | ||
170 | |||
171 | ®_dcdc1 { | ||
172 | regulator-always-on; | ||
173 | regulator-min-microvolt = <3300000>; | ||
174 | regulator-max-microvolt = <3300000>; | ||
175 | regulator-name = "vcc-3v3"; | ||
176 | }; | ||
177 | |||
178 | ®_dcdc2 { | ||
179 | regulator-always-on; | ||
180 | regulator-min-microvolt = <700000>; | ||
181 | regulator-max-microvolt = <1100000>; | ||
182 | regulator-name = "vdd-cpua"; | ||
183 | }; | ||
184 | |||
185 | ®_dcdc3 { | ||
186 | regulator-always-on; | ||
187 | regulator-min-microvolt = <700000>; | ||
188 | regulator-max-microvolt = <1100000>; | ||
189 | regulator-name = "vdd-cpub"; | ||
190 | }; | ||
191 | |||
192 | ®_dcdc4 { | ||
193 | regulator-min-microvolt = <700000>; | ||
194 | regulator-max-microvolt = <1100000>; | ||
195 | regulator-name = "vdd-gpu"; | ||
196 | }; | ||
197 | |||
198 | ®_dcdc5 { | ||
199 | regulator-always-on; | ||
200 | regulator-min-microvolt = <1500000>; | ||
201 | regulator-max-microvolt = <1500000>; | ||
202 | regulator-name = "vcc-dram"; | ||
203 | }; | ||
204 | |||
205 | ®_dcdc6 { | ||
206 | regulator-always-on; | ||
207 | regulator-min-microvolt = <900000>; | ||
208 | regulator-max-microvolt = <900000>; | ||
209 | regulator-name = "vdd-sys"; | ||
210 | }; | ||
211 | |||
212 | ®_dldo2 { | ||
213 | regulator-min-microvolt = <3300000>; | ||
214 | regulator-max-microvolt = <3300000>; | ||
215 | regulator-name = "vcc-mipi"; | ||
216 | }; | ||
217 | |||
218 | ®_dldo4 { | ||
219 | /* | ||
220 | * The PHY requires 20ms after all voltages are applied until core | ||
221 | * logic is ready and 30ms after the reset pin is de-asserted. | ||
222 | * Set a 100ms delay to account for PMIC ramp time and board traces. | ||
223 | */ | ||
224 | regulator-enable-ramp-delay = <100000>; | ||
225 | regulator-min-microvolt = <3300000>; | ||
226 | regulator-max-microvolt = <3300000>; | ||
227 | regulator-name = "vcc-ephy"; | ||
228 | }; | ||
229 | |||
230 | ®_fldo1 { | ||
231 | regulator-min-microvolt = <1080000>; | ||
232 | regulator-max-microvolt = <1320000>; | ||
233 | regulator-name = "vdd12-hsic"; | ||
234 | }; | ||
235 | |||
236 | ®_fldo2 { | ||
237 | /* | ||
238 | * Despite the embedded CPUs core not being used in any way, | ||
239 | * this must remain on or the system will hang. | ||
240 | */ | ||
241 | regulator-always-on; | ||
242 | regulator-min-microvolt = <700000>; | ||
243 | regulator-max-microvolt = <1100000>; | ||
244 | regulator-name = "vdd-cpus"; | ||
245 | }; | ||
246 | |||
247 | ®_rtc_ldo { | ||
248 | regulator-name = "vcc-rtc"; | ||
249 | }; | ||
250 | |||
251 | ®_sw { | ||
252 | regulator-name = "vcc-wifi"; | ||
253 | }; | ||
254 | |||
134 | &uart0 { | 255 | &uart0 { |
135 | pinctrl-names = "default"; | 256 | pinctrl-names = "default"; |
136 | pinctrl-0 = <&uart0_pb_pins>; | 257 | pinctrl-0 = <&uart0_pb_pins>; |