diff options
| author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2017-07-24 12:29:29 -0400 |
|---|---|---|
| committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2017-11-02 04:09:19 -0400 |
| commit | 90c5d7cdae64577f4f33c9d98ccaebdcb7b33433 (patch) | |
| tree | 1b4ca3b53e4e35a96f8ec1a5c2c66152a01ceddc | |
| parent | 337cce7ec3caadbbc8098a19446d9195da62335b (diff) | |
ARM: dts: sun8i: a711: Add regulator support
The TBS A711 is using an AXP813 PMIC. Let's add all the regulators for that
board, and migrate the current, dumb, regulators to the actual ones.
Acked-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-tbs-a711.dts | 165 |
1 files changed, 155 insertions, 10 deletions
diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts index de0be140338b..1dc935b91dbc 100644 --- a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts +++ b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.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 = "TBS A711 Tablet"; | 50 | model = "TBS A711 Tablet"; |
| @@ -105,7 +106,7 @@ | |||
| 105 | }; | 106 | }; |
| 106 | 107 | ||
| 107 | &mmc0 { | 108 | &mmc0 { |
| 108 | vmmc-supply = <®_vcc3v3>; | 109 | vmmc-supply = <®_dcdc1>; |
| 109 | pinctrl-names = "default"; | 110 | pinctrl-names = "default"; |
| 110 | pinctrl-0 = <&mmc0_pins>; | 111 | pinctrl-0 = <&mmc0_pins>; |
| 111 | cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; | 112 | cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; |
| @@ -115,8 +116,8 @@ | |||
| 115 | &mmc1 { | 116 | &mmc1 { |
| 116 | mmc-pwrseq = <&wifi_pwrseq>; | 117 | mmc-pwrseq = <&wifi_pwrseq>; |
| 117 | bus-width = <4>; | 118 | bus-width = <4>; |
| 118 | vmmc-supply = <®_vcc3v3>; | 119 | vmmc-supply = <®_dldo1>; |
| 119 | vqmmc-supply = <®_vcc3v3>; | 120 | vqmmc-supply = <®_dldo1>; |
| 120 | non-removable; | 121 | non-removable; |
| 121 | wakeup-source; | 122 | wakeup-source; |
| 122 | status = "okay"; | 123 | status = "okay"; |
| @@ -133,8 +134,8 @@ | |||
| 133 | &mmc2 { | 134 | &mmc2 { |
| 134 | pinctrl-0 = <&mmc2_8bit_emmc_pins>; | 135 | pinctrl-0 = <&mmc2_8bit_emmc_pins>; |
| 135 | pinctrl-names = "default"; | 136 | pinctrl-names = "default"; |
| 136 | vmmc-supply = <®_vcc3v3>; | 137 | vmmc-supply = <®_dcdc1>; |
| 137 | vqmmc-supply = <®_vcc3v3>; | 138 | vqmmc-supply = <®_dcdc1>; |
| 138 | bus-width = <8>; | 139 | bus-width = <8>; |
| 139 | non-removable; | 140 | non-removable; |
| 140 | cap-mmc-hw-reset; | 141 | cap-mmc-hw-reset; |
| @@ -144,11 +145,12 @@ | |||
| 144 | &r_rsb { | 145 | &r_rsb { |
| 145 | status = "okay"; | 146 | status = "okay"; |
| 146 | 147 | ||
| 147 | axp813: pmic@3a3 { | 148 | axp81x: pmic@3a3 { |
| 148 | compatible = "x-powers,axp813"; | ||
| 149 | reg = <0x3a3>; | 149 | reg = <0x3a3>; |
| 150 | interrupt-parent = <&r_intc>; | 150 | interrupt-parent = <&r_intc>; |
| 151 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; | 151 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; |
| 152 | swin-supply = <®_dcdc1>; | ||
| 153 | x-powers,drive-vbus-en; | ||
| 152 | }; | 154 | }; |
| 153 | 155 | ||
| 154 | ac100: codec@e89 { | 156 | ac100: codec@e89 { |
| @@ -177,6 +179,149 @@ | |||
| 177 | 179 | ||
| 178 | }; | 180 | }; |
| 179 | 181 | ||
| 182 | #include "axp81x.dtsi" | ||
| 183 | |||
| 184 | ®_aldo1 { | ||
| 185 | regulator-min-microvolt = <1800000>; | ||
| 186 | regulator-max-microvolt = <1800000>; | ||
| 187 | regulator-name = "vcc-1.8"; | ||
| 188 | }; | ||
| 189 | |||
| 190 | ®_aldo2 { | ||
| 191 | regulator-min-microvolt = <1800000>; | ||
| 192 | regulator-max-microvolt = <1800000>; | ||
| 193 | regulator-always-on; | ||
| 194 | regulator-name = "vdd-drampll"; | ||
| 195 | }; | ||
| 196 | |||
| 197 | ®_aldo3 { | ||
| 198 | regulator-min-microvolt = <3000000>; | ||
| 199 | regulator-max-microvolt = <3000000>; | ||
| 200 | regulator-always-on; | ||
| 201 | regulator-name = "avcc"; | ||
| 202 | }; | ||
| 203 | |||
| 204 | ®_dcdc1 { | ||
| 205 | regulator-min-microvolt = <3100000>; | ||
| 206 | regulator-max-microvolt = <3100000>; | ||
| 207 | regulator-always-on; | ||
| 208 | regulator-name = "vcc-io"; | ||
| 209 | }; | ||
| 210 | |||
| 211 | ®_dcdc2 { | ||
| 212 | regulator-min-microvolt = <700000>; | ||
| 213 | regulator-max-microvolt = <1100000>; | ||
| 214 | regulator-always-on; | ||
| 215 | regulator-name = "vdd-cpu-A"; | ||
| 216 | }; | ||
| 217 | |||
| 218 | ®_dcdc3 { | ||
| 219 | regulator-min-microvolt = <700000>; | ||
| 220 | regulator-max-microvolt = <1100000>; | ||
| 221 | regulator-always-on; | ||
| 222 | regulator-name = "vdd-cpu-B"; | ||
| 223 | }; | ||
| 224 | |||
| 225 | ®_dcdc4 { | ||
| 226 | regulator-min-microvolt = <700000>; | ||
| 227 | regulator-max-microvolt = <1100000>; | ||
| 228 | regulator-name = "vdd-gpu"; | ||
| 229 | }; | ||
| 230 | |||
| 231 | ®_dcdc5 { | ||
| 232 | regulator-min-microvolt = <1200000>; | ||
| 233 | regulator-max-microvolt = <1500000>; | ||
| 234 | regulator-always-on; | ||
| 235 | regulator-name = "vcc-dram"; | ||
| 236 | }; | ||
| 237 | |||
| 238 | ®_dcdc6 { | ||
| 239 | regulator-min-microvolt = <900000>; | ||
| 240 | regulator-max-microvolt = <900000>; | ||
| 241 | regulator-always-on; | ||
| 242 | regulator-name = "vdd-sys"; | ||
| 243 | }; | ||
| 244 | |||
| 245 | ®_dldo1 { | ||
| 246 | regulator-min-microvolt = <3100000>; | ||
| 247 | regulator-max-microvolt = <3100000>; | ||
| 248 | regulator-name = "vcc-wifi-io"; | ||
| 249 | }; | ||
| 250 | |||
| 251 | ®_dldo2 { | ||
| 252 | regulator-min-microvolt = <2800000>; | ||
| 253 | regulator-max-microvolt = <4200000>; | ||
| 254 | regulator-name = "vcc-mipi"; | ||
| 255 | }; | ||
| 256 | |||
| 257 | ®_dldo3 { | ||
| 258 | regulator-min-microvolt = <2800000>; | ||
| 259 | regulator-max-microvolt = <2800000>; | ||
| 260 | regulator-name = "vdd-csi"; | ||
| 261 | }; | ||
| 262 | |||
| 263 | ®_dldo4 { | ||
| 264 | regulator-min-microvolt = <2800000>; | ||
| 265 | regulator-max-microvolt = <2800000>; | ||
| 266 | regulator-name = "avdd-csi"; | ||
| 267 | }; | ||
| 268 | |||
| 269 | ®_drivevbus { | ||
| 270 | regulator-name = "usb0-vbus"; | ||
| 271 | status = "okay"; | ||
| 272 | }; | ||
| 273 | |||
| 274 | ®_eldo1 { | ||
| 275 | regulator-min-microvolt = <1200000>; | ||
| 276 | regulator-max-microvolt = <1800000>; | ||
| 277 | regulator-name = "dvdd-csi-r"; | ||
| 278 | }; | ||
| 279 | |||
| 280 | ®_eldo2 { | ||
| 281 | regulator-min-microvolt = <1800000>; | ||
| 282 | regulator-max-microvolt = <1800000>; | ||
| 283 | regulator-name = "vcc-dsi"; | ||
| 284 | }; | ||
| 285 | |||
| 286 | ®_eldo3 { | ||
| 287 | regulator-min-microvolt = <1200000>; | ||
| 288 | regulator-max-microvolt = <1800000>; | ||
| 289 | regulator-name = "dvdd-csi-f"; | ||
| 290 | }; | ||
| 291 | |||
| 292 | ®_fldo1 { | ||
| 293 | regulator-min-microvolt = <1200000>; | ||
| 294 | regulator-max-microvolt = <1200000>; | ||
| 295 | regulator-name = "vcc-hsic"; | ||
| 296 | }; | ||
| 297 | |||
| 298 | ®_fldo2 { | ||
| 299 | regulator-min-microvolt = <700000>; | ||
| 300 | regulator-max-microvolt = <1100000>; | ||
| 301 | regulator-always-on; | ||
| 302 | regulator-name = "vdd-cpus"; | ||
| 303 | }; | ||
| 304 | |||
| 305 | ®_ldo_io0 { | ||
| 306 | regulator-min-microvolt = <3100000>; | ||
| 307 | regulator-max-microvolt = <3100000>; | ||
| 308 | regulator-name = "vcc-ctp"; | ||
| 309 | status = "okay"; | ||
| 310 | }; | ||
| 311 | |||
| 312 | ®_ldo_io1 { | ||
| 313 | regulator-min-microvolt = <3100000>; | ||
| 314 | regulator-max-microvolt = <3100000>; | ||
| 315 | regulator-name = "vcc-vb"; | ||
| 316 | status = "okay"; | ||
| 317 | }; | ||
| 318 | |||
| 319 | ®_sw { | ||
| 320 | regulator-min-microvolt = <3100000>; | ||
| 321 | regulator-max-microvolt = <3100000>; | ||
| 322 | regulator-name = "vcc-lcd"; | ||
| 323 | }; | ||
| 324 | |||
| 180 | &uart0 { | 325 | &uart0 { |
| 181 | pinctrl-names = "default"; | 326 | pinctrl-names = "default"; |
| 182 | pinctrl-0 = <&uart0_pb_pins>; | 327 | pinctrl-0 = <&uart0_pb_pins>; |
| @@ -191,7 +336,7 @@ | |||
| 191 | }; | 336 | }; |
| 192 | 337 | ||
| 193 | &usbphy { | 338 | &usbphy { |
| 194 | usb1_vbus_supply = <®_vcc5v0>; | 339 | usb1_vbus_supply = <®_vmain>; |
| 195 | usb2_vbus_supply = <®_vcc5v0>; | 340 | usb2_vbus_supply = <®_vmain>; |
| 196 | status = "okay"; | 341 | status = "okay"; |
| 197 | }; | 342 | }; |
