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";
65 pinctrl-names = "default";
66 pinctrl-0 = <&led_pins_cubieboard4>;
69 label = "cubieboard4:green:usr";
70 gpios = <&pio 7 17 GPIO_ACTIVE_HIGH>; /* PH17 */
74 label = "cubieboard4:red:usr";
75 gpios = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */
79 wifi_pwrseq: wifi_pwrseq {
80 compatible = "mmc-pwrseq-simple";
81 clocks = <&ac100_rtc 1>;
82 clock-names = "ext_clock";
83 /* enables internal regulator and de-asserts reset */
84 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 WL-PMU-EN */
89 pinctrl-names = "default";
90 pinctrl-0 = <&mmc0_pins>, <&mmc0_cd_pin_cubieboard4>;
91 vmmc-supply = <®_dcdc1>;
93 cd-gpios = <&pio 7 18 GPIO_ACTIVE_HIGH>; /* PH18 */
99 pinctrl-names = "default";
100 pinctrl-0 = <&mmc1_pins>, <&wifi_en_pin_cubieboard4>;
101 vmmc-supply = <®_dldo1>;
102 vqmmc-supply = <®_cldo3>;
103 mmc-pwrseq = <&wifi_pwrseq>;
114 pinctrl-names = "default";
115 pinctrl-0 = <&mmc2_8bit_pins>;
116 vmmc-supply = <®_dcdc1>;
124 /* Increase drive strength for DDR modes */
125 drive-strength = <40>;
129 /* osc32k input is from AC100 */
130 clocks = <&ac100_rtc 0>;
134 led_pins_cubieboard4: led-pins@0 {
135 pins = "PH6", "PH17";
136 function = "gpio_out";
139 mmc0_cd_pin_cubieboard4: mmc0_cd_pin@0 {
141 function = "gpio_in";
151 wifi_en_pin_cubieboard4: wifi_en_pin@0 {
153 function = "gpio_out";
162 interrupt-parent = <&nmi_intc>;
163 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
168 * TODO: This should be handled by the
172 regulator-min-microvolt = <3000000>;
173 regulator-max-microvolt = <3000000>;
174 regulator-name = "vcc33-usbh";
178 regulator-min-microvolt = <1800000>;
179 regulator-max-microvolt = <1800000>;
180 regulator-name = "vcc-pb-io-cam";
189 regulator-min-microvolt = <800000>;
190 regulator-max-microvolt = <1100000>;
191 regulator-name = "vdd-cpus-09-usbh";
196 regulator-min-microvolt = <3000000>;
197 regulator-max-microvolt = <3000000>;
198 regulator-name = "vcc-3v";
202 regulator-min-microvolt = <800000>;
203 regulator-max-microvolt = <1100000>;
204 regulator-name = "vdd-gpu";
209 regulator-min-microvolt = <800000>;
210 regulator-max-microvolt = <1100000>;
211 regulator-name = "vdd-cpua";
216 regulator-min-microvolt = <800000>;
217 regulator-max-microvolt = <1100000>;
218 regulator-name = "vdd-sys-usb0-hdmi";
223 regulator-min-microvolt = <1425000>;
224 regulator-max-microvolt = <1575000>;
225 regulator-name = "vcc-dram";
230 * The WiFi chip supports a wide range
231 * (3.0 ~ 4.8V) of voltages, and so does
232 * this regulator (3.0 ~ 4.2V), but
233 * Allwinner SDK always sets it to 3.3V.
235 regulator-min-microvolt = <3300000>;
236 regulator-max-microvolt = <3300000>;
237 regulator-name = "vcc-wifi";
242 regulator-min-microvolt = <3000000>;
243 regulator-max-microvolt = <3000000>;
244 regulator-name = "vcc-pl";
248 regulator-min-microvolt = <1200000>;
249 regulator-max-microvolt = <1200000>;
250 regulator-name = "vcc-dvdd-cam";
254 regulator-min-microvolt = <1800000>;
255 regulator-max-microvolt = <1800000>;
256 regulator-name = "vcc-pe";
261 regulator-min-microvolt = <3000000>;
262 regulator-max-microvolt = <3000000>;
263 regulator-name = "vcc-pm-codec-io1";
266 reg_ldo_io0: ldo_io0 {
268 regulator-min-microvolt = <3000000>;
269 regulator-max-microvolt = <3000000>;
270 regulator-name = "vcc-pg";
273 reg_ldo_io1: ldo_io1 {
274 regulator-min-microvolt = <2500000>;
275 regulator-max-microvolt = <2500000>;
276 regulator-name = "vcc-pa-gmac-2v5";
279 reg_rtc_ldo: rtc_ldo {
280 regulator-name = "vcc-rtc-vdd1v8-io";
290 compatible = "x-powers,axp806";
292 interrupt-parent = <&nmi_intc>;
293 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
294 interrupt-controller;
295 #interrupt-cells = <1>;
296 bldoin-supply = <®_dcdce>;
301 regulator-min-microvolt = <3000000>;
302 regulator-max-microvolt = <3000000>;
303 regulator-name = "avcc";
308 * unused, but use a different name to
309 * avoid name clash with axp809's aldo's
311 regulator-name = "s_aldo2";
316 * unused, but use a different name to
317 * avoid name clash with axp809's aldo's
319 regulator-name = "s_aldo3";
324 regulator-min-microvolt = <1700000>;
325 regulator-max-microvolt = <1900000>;
326 regulator-name = "vcc18-efuse-adc-display-csi";
331 regulator-min-microvolt = <1700000>;
332 regulator-max-microvolt = <1900000>;
334 "vdd18-drampll-vcc18-pll-cpvdd";
342 regulator-min-microvolt = <1100000>;
343 regulator-max-microvolt = <1300000>;
344 regulator-name = "vcc12-hsic";
349 * This was 3V in the original design, but
350 * 3.3V is the recommended supply voltage
351 * for the Ethernet PHY.
353 regulator-min-microvolt = <3300000>;
354 regulator-max-microvolt = <3300000>;
355 regulator-name = "vcc-gmac-phy";
359 regulator-min-microvolt = <2800000>;
360 regulator-max-microvolt = <2800000>;
361 regulator-name = "afvcc-cam";
365 regulator-min-microvolt = <3000000>;
366 regulator-max-microvolt = <3000000>;
367 regulator-name = "vcc-io-wifi-codec-io2";
372 regulator-min-microvolt = <800000>;
373 regulator-max-microvolt = <1100000>;
374 regulator-name = "vdd-cpub";
379 regulator-min-microvolt = <800000>;
380 regulator-max-microvolt = <1100000>;
381 regulator-name = "vdd-vpu";
386 regulator-min-microvolt = <2100000>;
387 regulator-max-microvolt = <2100000>;
388 regulator-name = "vcc-bldo-codec-ldoin";
393 * unused, but use a different name to
394 * avoid name clash with axp809's sw
396 regulator-name = "s_sw";
402 compatible = "x-powers,ac100";
406 compatible = "x-powers,ac100-codec";
407 interrupt-parent = <&r_pio>;
408 interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */
410 clock-output-names = "4M_adda";
414 compatible = "x-powers,ac100-rtc";
415 interrupt-parent = <&nmi_intc>;
416 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
417 clocks = <&ac100_codec>;
419 clock-output-names = "cko1_rtc",
426 #include "axp809.dtsi"
429 pinctrl-names = "default";
430 pinctrl-0 = <&uart0_pins_a>;