2 * Copyright 2015 Tyler Baker
4 * Tyler Baker <tyler.baker@linaro.org>
5 * Chen-Yu Tsai <wens@csie.org>
7 * This file is dual-licensed: you can use it either under the terms
8 * of the GPL or the X11 license, at your option. Note that this dual
9 * licensing only applies to this file, and not this project as a
12 * a) This file is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License as
14 * published by the Free Software Foundation; either version 2 of the
15 * License, or (at your option) any later version.
17 * This file is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
24 * b) Permission is hereby granted, free of charge, to any person
25 * obtaining a copy of this software and associated documentation
26 * files (the "Software"), to deal in the Software without
27 * restriction, including without limitation the rights to use,
28 * copy, modify, merge, publish, distribute, sublicense, and/or
29 * sell copies of the Software, and to permit persons to whom the
30 * Software is furnished to do so, subject to the following
33 * The above copyright notice and this permission notice shall be
34 * included in all copies or substantial portions of the Software.
36 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
37 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
38 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
39 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
40 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
41 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
42 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
43 * OTHER DEALINGS IN THE SOFTWARE.
47 #include "sun9i-a80.dtsi"
49 #include <dt-bindings/gpio/gpio.h>
50 #include <dt-bindings/pinctrl/sun4i-a10.h>
53 model = "Cubietech Cubieboard4";
54 compatible = "cubietech,a80-cubieboard4", "allwinner,sun9i-a80";
61 stdout-path = "serial0:115200n8";
65 compatible = "gpio-leds";
66 pinctrl-names = "default";
67 pinctrl-0 = <&led_pins_cubieboard4>;
70 label = "cubieboard4:green:usr";
71 gpios = <&pio 7 17 GPIO_ACTIVE_HIGH>; /* PH17 */
75 label = "cubieboard4:red:usr";
76 gpios = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */
80 wifi_pwrseq: wifi_pwrseq {
81 compatible = "mmc-pwrseq-simple";
82 clocks = <&ac100_rtc 1>;
83 clock-names = "ext_clock";
84 /* enables internal regulator and de-asserts reset */
85 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 WL-PMU-EN */
90 pinctrl-names = "default";
91 pinctrl-0 = <&mmc0_pins>, <&mmc0_cd_pin_cubieboard4>;
92 vmmc-supply = <®_dcdc1>;
94 cd-gpios = <&pio 7 18 GPIO_ACTIVE_HIGH>; /* PH18 */
100 pinctrl-names = "default";
101 pinctrl-0 = <&mmc1_pins>, <&wifi_en_pin_cubieboard4>;
102 vmmc-supply = <®_dldo1>;
103 vqmmc-supply = <®_cldo3>;
104 mmc-pwrseq = <&wifi_pwrseq>;
111 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
115 pinctrl-names = "default";
116 pinctrl-0 = <&mmc2_8bit_pins>;
117 vmmc-supply = <®_dcdc1>;
125 /* Increase drive strength for DDR modes */
126 allwinner,drive = <SUN4I_PINCTRL_40_MA>;
130 /* osc32k input is from AC100 */
131 clocks = <&ac100_rtc 0>;
135 led_pins_cubieboard4: led-pins@0 {
136 allwinner,pins = "PH6", "PH17";
137 allwinner,function = "gpio_out";
138 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
139 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
142 mmc0_cd_pin_cubieboard4: mmc0_cd_pin@0 {
143 allwinner,pins = "PH18";
144 allwinner,function = "gpio_in";
145 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
146 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
155 wifi_en_pin_cubieboard4: wifi_en_pin@0 {
156 allwinner,pins = "PL2";
157 allwinner,function = "gpio_out";
158 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
159 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
168 interrupt-parent = <&nmi_intc>;
169 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
174 * TODO: This should be handled by the
178 regulator-min-microvolt = <3000000>;
179 regulator-max-microvolt = <3000000>;
180 regulator-name = "vcc33-usbh";
184 regulator-min-microvolt = <1800000>;
185 regulator-max-microvolt = <1800000>;
186 regulator-name = "vcc-pb-io-cam";
195 regulator-min-microvolt = <800000>;
196 regulator-max-microvolt = <1100000>;
197 regulator-name = "vdd-cpus-09-usbh";
202 regulator-min-microvolt = <3000000>;
203 regulator-max-microvolt = <3000000>;
204 regulator-name = "vcc-3v";
208 regulator-min-microvolt = <800000>;
209 regulator-max-microvolt = <1100000>;
210 regulator-name = "vdd-gpu";
215 regulator-min-microvolt = <800000>;
216 regulator-max-microvolt = <1100000>;
217 regulator-name = "vdd-cpua";
222 regulator-min-microvolt = <800000>;
223 regulator-max-microvolt = <1100000>;
224 regulator-name = "vdd-sys-usb0-hdmi";
229 regulator-min-microvolt = <1425000>;
230 regulator-max-microvolt = <1575000>;
231 regulator-name = "vcc-dram";
236 * The WiFi chip supports a wide range
237 * (3.0 ~ 4.8V) of voltages, and so does
238 * this regulator (3.0 ~ 4.2V), but
239 * Allwinner SDK always sets it to 3.3V.
241 regulator-min-microvolt = <3300000>;
242 regulator-max-microvolt = <3300000>;
243 regulator-name = "vcc-wifi";
248 regulator-min-microvolt = <3000000>;
249 regulator-max-microvolt = <3000000>;
250 regulator-name = "vcc-pl";
254 regulator-min-microvolt = <1200000>;
255 regulator-max-microvolt = <1200000>;
256 regulator-name = "vcc-dvdd-cam";
260 regulator-min-microvolt = <1800000>;
261 regulator-max-microvolt = <1800000>;
262 regulator-name = "vcc-pe";
267 regulator-min-microvolt = <3000000>;
268 regulator-max-microvolt = <3000000>;
269 regulator-name = "vcc-pm-codec-io1";
272 reg_ldo_io0: ldo_io0 {
274 regulator-min-microvolt = <3000000>;
275 regulator-max-microvolt = <3000000>;
276 regulator-name = "vcc-pg";
279 reg_ldo_io1: ldo_io1 {
280 regulator-min-microvolt = <2500000>;
281 regulator-max-microvolt = <2500000>;
282 regulator-name = "vcc-pa-gmac-2v5";
285 reg_rtc_ldo: rtc_ldo {
286 regulator-name = "vcc-rtc-vdd1v8-io";
296 compatible = "x-powers,axp806";
298 interrupt-parent = <&nmi_intc>;
299 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
300 interrupt-controller;
301 #interrupt-cells = <1>;
302 bldoin-supply = <®_dcdce>;
307 regulator-min-microvolt = <3000000>;
308 regulator-max-microvolt = <3000000>;
309 regulator-name = "avcc";
314 * unused, but use a different name to
315 * avoid name clash with axp809's aldo's
317 regulator-name = "s_aldo2";
322 * unused, but use a different name to
323 * avoid name clash with axp809's aldo's
325 regulator-name = "s_aldo3";
330 regulator-min-microvolt = <1700000>;
331 regulator-max-microvolt = <1900000>;
332 regulator-name = "vcc18-efuse-adc-display-csi";
337 regulator-min-microvolt = <1700000>;
338 regulator-max-microvolt = <1900000>;
340 "vdd18-drampll-vcc18-pll-cpvdd";
348 regulator-min-microvolt = <1100000>;
349 regulator-max-microvolt = <1300000>;
350 regulator-name = "vcc12-hsic";
355 * This was 3V in the original design, but
356 * 3.3V is the recommended supply voltage
357 * for the Ethernet PHY.
359 regulator-min-microvolt = <3300000>;
360 regulator-max-microvolt = <3300000>;
361 regulator-name = "vcc-gmac-phy";
365 regulator-min-microvolt = <2800000>;
366 regulator-max-microvolt = <2800000>;
367 regulator-name = "afvcc-cam";
371 regulator-min-microvolt = <3000000>;
372 regulator-max-microvolt = <3000000>;
373 regulator-name = "vcc-io-wifi-codec-io2";
378 regulator-min-microvolt = <800000>;
379 regulator-max-microvolt = <1100000>;
380 regulator-name = "vdd-cpub";
385 regulator-min-microvolt = <800000>;
386 regulator-max-microvolt = <1100000>;
387 regulator-name = "vdd-vpu";
392 regulator-min-microvolt = <2100000>;
393 regulator-max-microvolt = <2100000>;
394 regulator-name = "vcc-bldo-codec-ldoin";
399 * unused, but use a different name to
400 * avoid name clash with axp809's sw
402 regulator-name = "s_sw";
408 compatible = "x-powers,ac100";
412 compatible = "x-powers,ac100-codec";
413 interrupt-parent = <&r_pio>;
414 interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */
416 clock-output-names = "4M_adda";
420 compatible = "x-powers,ac100-rtc";
421 interrupt-parent = <&nmi_intc>;
422 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
423 clocks = <&ac100_codec>;
425 clock-output-names = "cko1_rtc",
432 #include "axp809.dtsi"
435 pinctrl-names = "default";
436 pinctrl-0 = <&uart0_pins_a>;