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 */
78 compatible = "vga-connector";
80 ddc-i2c-bus = <&i2c3>;
83 vga_con_in: endpoint {
84 remote-endpoint = <&vga_dac_out>;
90 compatible = "corpro,gm7123", "adi,adv7123", "dumb-vga-dac";
91 vdd-supply = <®_dcdc1>;
100 #address-cells = <1>;
104 vga_dac_in: endpoint@0 {
106 remote-endpoint = <&tcon0_out_vga>;
111 #address-cells = <1>;
115 vga_dac_out: endpoint@0 {
117 remote-endpoint = <&vga_con_in>;
123 wifi_pwrseq: wifi-pwrseq {
124 compatible = "mmc-pwrseq-simple";
125 clocks = <&ac100_rtc 1>;
126 clock-names = "ext_clock";
127 /* enables internal regulator and de-asserts reset */
128 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 WL-PMU-EN */
137 pinctrl-names = "default";
138 pinctrl-0 = <&i2c3_pins>;
143 pinctrl-names = "default";
144 pinctrl-0 = <&mmc0_pins>;
145 vmmc-supply = <®_dcdc1>;
147 cd-gpios = <&pio 7 18 GPIO_ACTIVE_LOW>; /* PH18 */
152 pinctrl-names = "default";
153 pinctrl-0 = <&mmc1_pins>;
154 vmmc-supply = <®_dldo1>;
155 vqmmc-supply = <®_cldo3>;
156 mmc-pwrseq = <&wifi_pwrseq>;
167 pinctrl-names = "default";
168 pinctrl-0 = <&mmc2_8bit_pins>;
169 vmmc-supply = <®_dcdc1>;
177 /* Increase drive strength for DDR modes */
178 drive-strength = <40>;
182 /* osc32k input is from AC100 */
183 clocks = <&ac100_rtc 0>;
195 interrupt-parent = <&nmi_intc>;
196 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
201 * TODO: This should be handled by the
205 regulator-min-microvolt = <3000000>;
206 regulator-max-microvolt = <3000000>;
207 regulator-name = "vcc33-usbh";
211 regulator-min-microvolt = <1800000>;
212 regulator-max-microvolt = <1800000>;
213 regulator-name = "vcc-pb-io-cam";
222 regulator-min-microvolt = <800000>;
223 regulator-max-microvolt = <1100000>;
224 regulator-name = "vdd-cpus-09-usbh";
229 regulator-min-microvolt = <3000000>;
230 regulator-max-microvolt = <3000000>;
231 regulator-name = "vcc-3v";
235 regulator-min-microvolt = <800000>;
236 regulator-max-microvolt = <1100000>;
237 regulator-name = "vdd-gpu";
242 regulator-min-microvolt = <800000>;
243 regulator-max-microvolt = <1100000>;
244 regulator-name = "vdd-cpua";
249 regulator-min-microvolt = <800000>;
250 regulator-max-microvolt = <1100000>;
251 regulator-name = "vdd-sys-usb0-hdmi";
256 regulator-min-microvolt = <1425000>;
257 regulator-max-microvolt = <1575000>;
258 regulator-name = "vcc-dram";
263 * The WiFi chip supports a wide range
264 * (3.0 ~ 4.8V) of voltages, and so does
265 * this regulator (3.0 ~ 4.2V), but
266 * Allwinner SDK always sets it to 3.3V.
268 regulator-min-microvolt = <3300000>;
269 regulator-max-microvolt = <3300000>;
270 regulator-name = "vcc-wifi";
275 regulator-min-microvolt = <3000000>;
276 regulator-max-microvolt = <3000000>;
277 regulator-name = "vcc-pl";
281 regulator-min-microvolt = <1200000>;
282 regulator-max-microvolt = <1200000>;
283 regulator-name = "vcc-dvdd-cam";
287 regulator-min-microvolt = <1800000>;
288 regulator-max-microvolt = <1800000>;
289 regulator-name = "vcc-pe";
294 regulator-min-microvolt = <3000000>;
295 regulator-max-microvolt = <3000000>;
296 regulator-name = "vcc-pm-codec-io1";
299 reg_ldo_io0: ldo_io0 {
301 regulator-min-microvolt = <3000000>;
302 regulator-max-microvolt = <3000000>;
303 regulator-name = "vcc-pg";
306 reg_ldo_io1: ldo_io1 {
307 regulator-min-microvolt = <2500000>;
308 regulator-max-microvolt = <2500000>;
309 regulator-name = "vcc-pa-gmac-2v5";
312 reg_rtc_ldo: rtc_ldo {
313 regulator-name = "vcc-rtc-vdd1v8-io";
323 compatible = "x-powers,axp806";
325 interrupt-parent = <&nmi_intc>;
326 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
327 interrupt-controller;
328 #interrupt-cells = <1>;
329 bldoin-supply = <®_dcdce>;
334 regulator-min-microvolt = <3000000>;
335 regulator-max-microvolt = <3000000>;
336 regulator-name = "avcc";
341 * unused, but use a different name to
342 * avoid name clash with axp809's aldo's
344 regulator-name = "s_aldo2";
349 * unused, but use a different name to
350 * avoid name clash with axp809's aldo's
352 regulator-name = "s_aldo3";
357 regulator-min-microvolt = <1700000>;
358 regulator-max-microvolt = <1900000>;
359 regulator-name = "vcc18-efuse-adc-display-csi";
364 regulator-min-microvolt = <1700000>;
365 regulator-max-microvolt = <1900000>;
367 "vdd18-drampll-vcc18-pll-cpvdd";
375 regulator-min-microvolt = <1100000>;
376 regulator-max-microvolt = <1300000>;
377 regulator-name = "vcc12-hsic";
382 * This was 3V in the original design, but
383 * 3.3V is the recommended supply voltage
384 * for the Ethernet PHY.
386 regulator-min-microvolt = <3300000>;
387 regulator-max-microvolt = <3300000>;
388 regulator-name = "vcc-gmac-phy";
392 regulator-min-microvolt = <2800000>;
393 regulator-max-microvolt = <2800000>;
394 regulator-name = "afvcc-cam";
398 regulator-min-microvolt = <3000000>;
399 regulator-max-microvolt = <3000000>;
400 regulator-name = "vcc-io-wifi-codec-io2";
405 regulator-min-microvolt = <800000>;
406 regulator-max-microvolt = <1100000>;
407 regulator-name = "vdd-cpub";
412 regulator-min-microvolt = <800000>;
413 regulator-max-microvolt = <1100000>;
414 regulator-name = "vdd-vpu";
419 regulator-min-microvolt = <2100000>;
420 regulator-max-microvolt = <2100000>;
421 regulator-name = "vcc-bldo-codec-ldoin";
426 * unused, but use a different name to
427 * avoid name clash with axp809's sw
429 regulator-name = "s_sw";
435 compatible = "x-powers,ac100";
439 compatible = "x-powers,ac100-codec";
440 interrupt-parent = <&r_pio>;
441 interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */
443 clock-output-names = "4M_adda";
447 compatible = "x-powers,ac100-rtc";
448 interrupt-parent = <&nmi_intc>;
449 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
450 clocks = <&ac100_codec>;
452 clock-output-names = "cko1_rtc",
459 #include "axp809.dtsi"
462 pinctrl-names = "default";
463 pinctrl-0 = <&lcd0_rgb888_pins>;
467 tcon0_out_vga: endpoint@0 {
469 remote-endpoint = <&vga_dac_in>;
474 pinctrl-names = "default";
475 pinctrl-0 = <&uart0_ph_pins>;