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>;
115 pinctrl-names = "default";
116 pinctrl-0 = <&mmc2_8bit_pins>;
117 vmmc-supply = <®_dcdc1>;
125 /* Increase drive strength for DDR modes */
126 drive-strength = <40>;
130 /* osc32k input is from AC100 */
131 clocks = <&ac100_rtc 0>;
135 led_pins_cubieboard4: led-pins@0 {
136 pins = "PH6", "PH17";
137 function = "gpio_out";
140 mmc0_cd_pin_cubieboard4: mmc0_cd_pin@0 {
142 function = "gpio_in";
152 wifi_en_pin_cubieboard4: wifi_en_pin@0 {
154 function = "gpio_out";
163 interrupt-parent = <&nmi_intc>;
164 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
169 * TODO: This should be handled by the
173 regulator-min-microvolt = <3000000>;
174 regulator-max-microvolt = <3000000>;
175 regulator-name = "vcc33-usbh";
179 regulator-min-microvolt = <1800000>;
180 regulator-max-microvolt = <1800000>;
181 regulator-name = "vcc-pb-io-cam";
190 regulator-min-microvolt = <800000>;
191 regulator-max-microvolt = <1100000>;
192 regulator-name = "vdd-cpus-09-usbh";
197 regulator-min-microvolt = <3000000>;
198 regulator-max-microvolt = <3000000>;
199 regulator-name = "vcc-3v";
203 regulator-min-microvolt = <800000>;
204 regulator-max-microvolt = <1100000>;
205 regulator-name = "vdd-gpu";
210 regulator-min-microvolt = <800000>;
211 regulator-max-microvolt = <1100000>;
212 regulator-name = "vdd-cpua";
217 regulator-min-microvolt = <800000>;
218 regulator-max-microvolt = <1100000>;
219 regulator-name = "vdd-sys-usb0-hdmi";
224 regulator-min-microvolt = <1425000>;
225 regulator-max-microvolt = <1575000>;
226 regulator-name = "vcc-dram";
231 * The WiFi chip supports a wide range
232 * (3.0 ~ 4.8V) of voltages, and so does
233 * this regulator (3.0 ~ 4.2V), but
234 * Allwinner SDK always sets it to 3.3V.
236 regulator-min-microvolt = <3300000>;
237 regulator-max-microvolt = <3300000>;
238 regulator-name = "vcc-wifi";
243 regulator-min-microvolt = <3000000>;
244 regulator-max-microvolt = <3000000>;
245 regulator-name = "vcc-pl";
249 regulator-min-microvolt = <1200000>;
250 regulator-max-microvolt = <1200000>;
251 regulator-name = "vcc-dvdd-cam";
255 regulator-min-microvolt = <1800000>;
256 regulator-max-microvolt = <1800000>;
257 regulator-name = "vcc-pe";
262 regulator-min-microvolt = <3000000>;
263 regulator-max-microvolt = <3000000>;
264 regulator-name = "vcc-pm-codec-io1";
267 reg_ldo_io0: ldo_io0 {
269 regulator-min-microvolt = <3000000>;
270 regulator-max-microvolt = <3000000>;
271 regulator-name = "vcc-pg";
274 reg_ldo_io1: ldo_io1 {
275 regulator-min-microvolt = <2500000>;
276 regulator-max-microvolt = <2500000>;
277 regulator-name = "vcc-pa-gmac-2v5";
280 reg_rtc_ldo: rtc_ldo {
281 regulator-name = "vcc-rtc-vdd1v8-io";
291 compatible = "x-powers,axp806";
293 interrupt-parent = <&nmi_intc>;
294 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
295 interrupt-controller;
296 #interrupt-cells = <1>;
297 bldoin-supply = <®_dcdce>;
302 regulator-min-microvolt = <3000000>;
303 regulator-max-microvolt = <3000000>;
304 regulator-name = "avcc";
309 * unused, but use a different name to
310 * avoid name clash with axp809's aldo's
312 regulator-name = "s_aldo2";
317 * unused, but use a different name to
318 * avoid name clash with axp809's aldo's
320 regulator-name = "s_aldo3";
325 regulator-min-microvolt = <1700000>;
326 regulator-max-microvolt = <1900000>;
327 regulator-name = "vcc18-efuse-adc-display-csi";
332 regulator-min-microvolt = <1700000>;
333 regulator-max-microvolt = <1900000>;
335 "vdd18-drampll-vcc18-pll-cpvdd";
343 regulator-min-microvolt = <1100000>;
344 regulator-max-microvolt = <1300000>;
345 regulator-name = "vcc12-hsic";
350 * This was 3V in the original design, but
351 * 3.3V is the recommended supply voltage
352 * for the Ethernet PHY.
354 regulator-min-microvolt = <3300000>;
355 regulator-max-microvolt = <3300000>;
356 regulator-name = "vcc-gmac-phy";
360 regulator-min-microvolt = <2800000>;
361 regulator-max-microvolt = <2800000>;
362 regulator-name = "afvcc-cam";
366 regulator-min-microvolt = <3000000>;
367 regulator-max-microvolt = <3000000>;
368 regulator-name = "vcc-io-wifi-codec-io2";
373 regulator-min-microvolt = <800000>;
374 regulator-max-microvolt = <1100000>;
375 regulator-name = "vdd-cpub";
380 regulator-min-microvolt = <800000>;
381 regulator-max-microvolt = <1100000>;
382 regulator-name = "vdd-vpu";
387 regulator-min-microvolt = <2100000>;
388 regulator-max-microvolt = <2100000>;
389 regulator-name = "vcc-bldo-codec-ldoin";
394 * unused, but use a different name to
395 * avoid name clash with axp809's sw
397 regulator-name = "s_sw";
403 compatible = "x-powers,ac100";
407 compatible = "x-powers,ac100-codec";
408 interrupt-parent = <&r_pio>;
409 interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */
411 clock-output-names = "4M_adda";
415 compatible = "x-powers,ac100-rtc";
416 interrupt-parent = <&nmi_intc>;
417 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
418 clocks = <&ac100_codec>;
420 clock-output-names = "cko1_rtc",
427 #include "axp809.dtsi"
430 pinctrl-names = "default";
431 pinctrl-0 = <&uart0_pins_a>;