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 */
82 pinctrl-names = "default";
83 pinctrl-0 = <&mmc0_pins>, <&mmc0_cd_pin_cubieboard4>;
84 vmmc-supply = <®_dcdc1>;
86 cd-gpios = <&pio 7 18 GPIO_ACTIVE_HIGH>; /* PH18 */
92 pinctrl-names = "default";
93 pinctrl-0 = <&mmc2_8bit_pins>;
94 vmmc-supply = <®_dcdc1>;
102 /* Increase drive strength for DDR modes */
103 allwinner,drive = <SUN4I_PINCTRL_40_MA>;
107 /* osc32k input is from AC100 */
108 clocks = <&ac100_rtc 0>;
112 led_pins_cubieboard4: led-pins@0 {
113 allwinner,pins = "PH6", "PH17";
114 allwinner,function = "gpio_out";
115 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
116 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
119 mmc0_cd_pin_cubieboard4: mmc0_cd_pin@0 {
120 allwinner,pins = "PH18";
121 allwinner,function = "gpio_in";
122 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
123 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
136 interrupt-parent = <&nmi_intc>;
137 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
142 * TODO: This should be handled by the
146 regulator-min-microvolt = <3000000>;
147 regulator-max-microvolt = <3000000>;
148 regulator-name = "vcc33-usbh";
152 regulator-min-microvolt = <1800000>;
153 regulator-max-microvolt = <1800000>;
154 regulator-name = "vcc-pb-io-cam";
163 regulator-min-microvolt = <800000>;
164 regulator-max-microvolt = <1100000>;
165 regulator-name = "vdd-cpus-09-usbh";
170 regulator-min-microvolt = <3000000>;
171 regulator-max-microvolt = <3000000>;
172 regulator-name = "vcc-3v";
176 regulator-min-microvolt = <800000>;
177 regulator-max-microvolt = <1100000>;
178 regulator-name = "vdd-gpu";
183 regulator-min-microvolt = <800000>;
184 regulator-max-microvolt = <1100000>;
185 regulator-name = "vdd-cpua";
190 regulator-min-microvolt = <800000>;
191 regulator-max-microvolt = <1100000>;
192 regulator-name = "vdd-sys-usb0-hdmi";
197 regulator-min-microvolt = <1425000>;
198 regulator-max-microvolt = <1575000>;
199 regulator-name = "vcc-dram";
204 * The WiFi chip supports a wide range
205 * (3.0 ~ 4.8V) of voltages, and so does
206 * this regulator (3.0 ~ 4.2V), but
207 * Allwinner SDK always sets it to 3.3V.
209 regulator-min-microvolt = <3300000>;
210 regulator-max-microvolt = <3300000>;
211 regulator-name = "vcc-wifi";
216 regulator-min-microvolt = <3000000>;
217 regulator-max-microvolt = <3000000>;
218 regulator-name = "vcc-pl";
222 regulator-min-microvolt = <1200000>;
223 regulator-max-microvolt = <1200000>;
224 regulator-name = "vcc-dvdd-cam";
228 regulator-min-microvolt = <1800000>;
229 regulator-max-microvolt = <1800000>;
230 regulator-name = "vcc-pe";
235 regulator-min-microvolt = <3000000>;
236 regulator-max-microvolt = <3000000>;
237 regulator-name = "vcc-pm-codec-io1";
240 reg_ldo_io0: ldo_io0 {
242 regulator-min-microvolt = <3000000>;
243 regulator-max-microvolt = <3000000>;
244 regulator-name = "vcc-pg";
247 reg_ldo_io1: ldo_io1 {
248 regulator-min-microvolt = <2500000>;
249 regulator-max-microvolt = <2500000>;
250 regulator-name = "vcc-pa-gmac-2v5";
253 reg_rtc_ldo: rtc_ldo {
254 regulator-name = "vcc-rtc-vdd1v8-io";
264 compatible = "x-powers,axp806";
266 interrupt-parent = <&nmi_intc>;
267 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
268 interrupt-controller;
269 #interrupt-cells = <1>;
270 bldoin-supply = <®_dcdce>;
275 regulator-min-microvolt = <3000000>;
276 regulator-max-microvolt = <3000000>;
277 regulator-name = "avcc";
282 * unused, but use a different name to
283 * avoid name clash with axp809's aldo's
285 regulator-name = "s_aldo2";
290 * unused, but use a different name to
291 * avoid name clash with axp809's aldo's
293 regulator-name = "s_aldo3";
298 regulator-min-microvolt = <1700000>;
299 regulator-max-microvolt = <1900000>;
300 regulator-name = "vcc18-efuse-adc-display-csi";
305 regulator-min-microvolt = <1700000>;
306 regulator-max-microvolt = <1900000>;
308 "vdd18-drampll-vcc18-pll-cpvdd";
316 regulator-min-microvolt = <1100000>;
317 regulator-max-microvolt = <1300000>;
318 regulator-name = "vcc12-hsic";
323 * This was 3V in the original design, but
324 * 3.3V is the recommended supply voltage
325 * for the Ethernet PHY.
327 regulator-min-microvolt = <3300000>;
328 regulator-max-microvolt = <3300000>;
329 regulator-name = "vcc-gmac-phy";
333 regulator-min-microvolt = <2800000>;
334 regulator-max-microvolt = <2800000>;
335 regulator-name = "afvcc-cam";
339 regulator-min-microvolt = <3000000>;
340 regulator-max-microvolt = <3000000>;
341 regulator-name = "vcc-io-wifi-codec-io2";
346 regulator-min-microvolt = <800000>;
347 regulator-max-microvolt = <1100000>;
348 regulator-name = "vdd-cpub";
353 regulator-min-microvolt = <800000>;
354 regulator-max-microvolt = <1100000>;
355 regulator-name = "vdd-vpu";
360 regulator-min-microvolt = <2100000>;
361 regulator-max-microvolt = <2100000>;
362 regulator-name = "vcc-bldo-codec-ldoin";
367 * unused, but use a different name to
368 * avoid name clash with axp809's sw
370 regulator-name = "s_sw";
376 compatible = "x-powers,ac100";
380 compatible = "x-powers,ac100-codec";
381 interrupt-parent = <&r_pio>;
382 interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */
384 clock-output-names = "4M_adda";
388 compatible = "x-powers,ac100-rtc";
389 interrupt-parent = <&nmi_intc>;
390 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
391 clocks = <&ac100_codec>;
393 clock-output-names = "cko1_rtc",
400 #include "axp809.dtsi"
403 pinctrl-names = "default";
404 pinctrl-0 = <&uart0_pins_a>;