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>
52 model = "Cubietech Cubieboard4";
53 compatible = "cubietech,a80-cubieboard4", "allwinner,sun9i-a80";
60 stdout-path = "serial0:115200n8";
64 compatible = "gpio-leds";
67 label = "cubieboard4:green:usr";
68 gpios = <&pio 7 17 GPIO_ACTIVE_HIGH>; /* PH17 */
72 label = "cubieboard4:red:usr";
73 gpios = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */
77 wifi_pwrseq: wifi-pwrseq {
78 compatible = "mmc-pwrseq-simple";
79 clocks = <&ac100_rtc 1>;
80 clock-names = "ext_clock";
81 /* enables internal regulator and de-asserts reset */
82 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 WL-PMU-EN */
87 pinctrl-names = "default";
88 pinctrl-0 = <&mmc0_pins>;
89 vmmc-supply = <®_dcdc1>;
91 cd-gpios = <&pio 7 18 GPIO_ACTIVE_HIGH>; /* PH18 */
97 pinctrl-names = "default";
98 pinctrl-0 = <&mmc1_pins>;
99 vmmc-supply = <®_dldo1>;
100 vqmmc-supply = <®_cldo3>;
101 mmc-pwrseq = <&wifi_pwrseq>;
112 pinctrl-names = "default";
113 pinctrl-0 = <&mmc2_8bit_pins>;
114 vmmc-supply = <®_dcdc1>;
122 /* Increase drive strength for DDR modes */
123 drive-strength = <40>;
127 /* osc32k input is from AC100 */
128 clocks = <&ac100_rtc 0>;
140 interrupt-parent = <&nmi_intc>;
141 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
146 * TODO: This should be handled by the
150 regulator-min-microvolt = <3000000>;
151 regulator-max-microvolt = <3000000>;
152 regulator-name = "vcc33-usbh";
156 regulator-min-microvolt = <1800000>;
157 regulator-max-microvolt = <1800000>;
158 regulator-name = "vcc-pb-io-cam";
167 regulator-min-microvolt = <800000>;
168 regulator-max-microvolt = <1100000>;
169 regulator-name = "vdd-cpus-09-usbh";
174 regulator-min-microvolt = <3000000>;
175 regulator-max-microvolt = <3000000>;
176 regulator-name = "vcc-3v";
180 regulator-min-microvolt = <800000>;
181 regulator-max-microvolt = <1100000>;
182 regulator-name = "vdd-gpu";
187 regulator-min-microvolt = <800000>;
188 regulator-max-microvolt = <1100000>;
189 regulator-name = "vdd-cpua";
194 regulator-min-microvolt = <800000>;
195 regulator-max-microvolt = <1100000>;
196 regulator-name = "vdd-sys-usb0-hdmi";
201 regulator-min-microvolt = <1425000>;
202 regulator-max-microvolt = <1575000>;
203 regulator-name = "vcc-dram";
208 * The WiFi chip supports a wide range
209 * (3.0 ~ 4.8V) of voltages, and so does
210 * this regulator (3.0 ~ 4.2V), but
211 * Allwinner SDK always sets it to 3.3V.
213 regulator-min-microvolt = <3300000>;
214 regulator-max-microvolt = <3300000>;
215 regulator-name = "vcc-wifi";
220 regulator-min-microvolt = <3000000>;
221 regulator-max-microvolt = <3000000>;
222 regulator-name = "vcc-pl";
226 regulator-min-microvolt = <1200000>;
227 regulator-max-microvolt = <1200000>;
228 regulator-name = "vcc-dvdd-cam";
232 regulator-min-microvolt = <1800000>;
233 regulator-max-microvolt = <1800000>;
234 regulator-name = "vcc-pe";
239 regulator-min-microvolt = <3000000>;
240 regulator-max-microvolt = <3000000>;
241 regulator-name = "vcc-pm-codec-io1";
244 reg_ldo_io0: ldo_io0 {
246 regulator-min-microvolt = <3000000>;
247 regulator-max-microvolt = <3000000>;
248 regulator-name = "vcc-pg";
251 reg_ldo_io1: ldo_io1 {
252 regulator-min-microvolt = <2500000>;
253 regulator-max-microvolt = <2500000>;
254 regulator-name = "vcc-pa-gmac-2v5";
257 reg_rtc_ldo: rtc_ldo {
258 regulator-name = "vcc-rtc-vdd1v8-io";
268 compatible = "x-powers,axp806";
270 interrupt-parent = <&nmi_intc>;
271 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
272 interrupt-controller;
273 #interrupt-cells = <1>;
274 bldoin-supply = <®_dcdce>;
279 regulator-min-microvolt = <3000000>;
280 regulator-max-microvolt = <3000000>;
281 regulator-name = "avcc";
286 * unused, but use a different name to
287 * avoid name clash with axp809's aldo's
289 regulator-name = "s_aldo2";
294 * unused, but use a different name to
295 * avoid name clash with axp809's aldo's
297 regulator-name = "s_aldo3";
302 regulator-min-microvolt = <1700000>;
303 regulator-max-microvolt = <1900000>;
304 regulator-name = "vcc18-efuse-adc-display-csi";
309 regulator-min-microvolt = <1700000>;
310 regulator-max-microvolt = <1900000>;
312 "vdd18-drampll-vcc18-pll-cpvdd";
320 regulator-min-microvolt = <1100000>;
321 regulator-max-microvolt = <1300000>;
322 regulator-name = "vcc12-hsic";
327 * This was 3V in the original design, but
328 * 3.3V is the recommended supply voltage
329 * for the Ethernet PHY.
331 regulator-min-microvolt = <3300000>;
332 regulator-max-microvolt = <3300000>;
333 regulator-name = "vcc-gmac-phy";
337 regulator-min-microvolt = <2800000>;
338 regulator-max-microvolt = <2800000>;
339 regulator-name = "afvcc-cam";
343 regulator-min-microvolt = <3000000>;
344 regulator-max-microvolt = <3000000>;
345 regulator-name = "vcc-io-wifi-codec-io2";
350 regulator-min-microvolt = <800000>;
351 regulator-max-microvolt = <1100000>;
352 regulator-name = "vdd-cpub";
357 regulator-min-microvolt = <800000>;
358 regulator-max-microvolt = <1100000>;
359 regulator-name = "vdd-vpu";
364 regulator-min-microvolt = <2100000>;
365 regulator-max-microvolt = <2100000>;
366 regulator-name = "vcc-bldo-codec-ldoin";
371 * unused, but use a different name to
372 * avoid name clash with axp809's sw
374 regulator-name = "s_sw";
380 compatible = "x-powers,ac100";
384 compatible = "x-powers,ac100-codec";
385 interrupt-parent = <&r_pio>;
386 interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */
388 clock-output-names = "4M_adda";
392 compatible = "x-powers,ac100-rtc";
393 interrupt-parent = <&nmi_intc>;
394 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
395 clocks = <&ac100_codec>;
397 clock-output-names = "cko1_rtc",
404 #include "axp809.dtsi"
407 pinctrl-names = "default";
408 pinctrl-0 = <&uart0_ph_pins>;