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 = <&gmac_rgmii_pins>;
141 phy-supply = <®_cldo1>;
144 phy1: ethernet-phy@1 {
150 pinctrl-names = "default";
151 pinctrl-0 = <&i2c3_pins>;
156 pinctrl-names = "default";
157 pinctrl-0 = <&mmc0_pins>;
158 vmmc-supply = <®_dcdc1>;
160 cd-gpios = <&pio 7 18 GPIO_ACTIVE_LOW>; /* PH18 */
165 pinctrl-names = "default";
166 pinctrl-0 = <&mmc1_pins>;
167 vmmc-supply = <®_dldo1>;
168 vqmmc-supply = <®_cldo3>;
169 mmc-pwrseq = <&wifi_pwrseq>;
180 pinctrl-names = "default";
181 pinctrl-0 = <&mmc2_8bit_pins>;
182 vmmc-supply = <®_dcdc1>;
190 /* Increase drive strength for DDR modes */
191 drive-strength = <40>;
195 /* osc32k input is from AC100 */
196 clocks = <&ac100_rtc 0>;
200 vcc-pa-supply = <®_ldo_io1>;
201 vcc-pb-supply = <®_aldo2>;
202 vcc-pc-supply = <®_dcdc1>;
203 vcc-pd-supply = <®_dc1sw>;
204 vcc-pe-supply = <®_eldo2>;
205 vcc-pf-supply = <®_dcdc1>;
206 vcc-pg-supply = <®_ldo_io0>;
207 vcc-ph-supply = <®_dcdc1>;
215 vcc-pl-supply = <®_dldo2>;
216 vcc-pm-supply = <®_eldo3>;
224 interrupt-parent = <&nmi_intc>;
225 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
230 * TODO: This should be handled by the
234 regulator-min-microvolt = <3000000>;
235 regulator-max-microvolt = <3000000>;
236 regulator-name = "vcc33-usbh";
240 regulator-min-microvolt = <1800000>;
241 regulator-max-microvolt = <1800000>;
242 regulator-name = "vcc-pb-io-cam";
250 regulator-name = "vcc-pd";
255 regulator-min-microvolt = <800000>;
256 regulator-max-microvolt = <1100000>;
257 regulator-name = "vdd-cpus-09-usbh";
262 regulator-min-microvolt = <3000000>;
263 regulator-max-microvolt = <3000000>;
264 regulator-name = "vcc-3v";
268 regulator-min-microvolt = <800000>;
269 regulator-max-microvolt = <1100000>;
270 regulator-name = "vdd-gpu";
275 regulator-min-microvolt = <800000>;
276 regulator-max-microvolt = <1100000>;
277 regulator-name = "vdd-cpua";
282 regulator-min-microvolt = <800000>;
283 regulator-max-microvolt = <1100000>;
284 regulator-name = "vdd-sys-usb0-hdmi";
289 regulator-min-microvolt = <1425000>;
290 regulator-max-microvolt = <1575000>;
291 regulator-name = "vcc-dram";
296 * The WiFi chip supports a wide range
297 * (3.0 ~ 4.8V) of voltages, and so does
298 * this regulator (3.0 ~ 4.2V), but
299 * Allwinner SDK always sets it to 3.3V.
301 regulator-min-microvolt = <3300000>;
302 regulator-max-microvolt = <3300000>;
303 regulator-name = "vcc-wifi";
307 regulator-min-microvolt = <3000000>;
308 regulator-max-microvolt = <3000000>;
309 regulator-name = "vcc-pl";
313 regulator-min-microvolt = <1200000>;
314 regulator-max-microvolt = <1200000>;
315 regulator-name = "vcc-dvdd-cam";
319 regulator-min-microvolt = <1800000>;
320 regulator-max-microvolt = <1800000>;
321 regulator-name = "vcc-pe";
325 regulator-min-microvolt = <3000000>;
326 regulator-max-microvolt = <3000000>;
327 regulator-name = "vcc-pm-codec-io1";
330 reg_ldo_io0: ldo_io0 {
331 regulator-min-microvolt = <3000000>;
332 regulator-max-microvolt = <3000000>;
333 regulator-name = "vcc-pg";
336 reg_ldo_io1: ldo_io1 {
337 regulator-min-microvolt = <2500000>;
338 regulator-max-microvolt = <2500000>;
339 regulator-name = "vcc-pa-gmac-2v5";
342 reg_rtc_ldo: rtc_ldo {
343 regulator-name = "vcc-rtc-vdd1v8-io";
353 compatible = "x-powers,axp806";
355 interrupt-parent = <&nmi_intc>;
356 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
357 interrupt-controller;
358 #interrupt-cells = <1>;
359 bldoin-supply = <®_dcdce>;
364 regulator-min-microvolt = <3000000>;
365 regulator-max-microvolt = <3000000>;
366 regulator-name = "avcc";
371 * unused, but use a different name to
372 * avoid name clash with axp809's aldo's
374 regulator-name = "s_aldo2";
379 * unused, but use a different name to
380 * avoid name clash with axp809's aldo's
382 regulator-name = "s_aldo3";
387 regulator-min-microvolt = <1700000>;
388 regulator-max-microvolt = <1900000>;
389 regulator-name = "vcc18-efuse-adc-display-csi";
394 regulator-min-microvolt = <1700000>;
395 regulator-max-microvolt = <1900000>;
397 "vdd18-drampll-vcc18-pll-cpvdd";
405 regulator-min-microvolt = <1100000>;
406 regulator-max-microvolt = <1300000>;
407 regulator-name = "vcc12-hsic";
412 * This was 3V in the original design, but
413 * 3.3V is the recommended supply voltage
414 * for the Ethernet PHY.
416 regulator-min-microvolt = <3300000>;
417 regulator-max-microvolt = <3300000>;
419 * The PHY requires 20ms after all voltages
420 * are applied until core logic is ready and
421 * 30ms after the reset pin is de-asserted.
422 * Set a 100ms delay to account for PMIC
423 * ramp time and board traces.
425 regulator-enable-ramp-delay = <100000>;
426 regulator-name = "vcc-gmac-phy";
430 regulator-min-microvolt = <2800000>;
431 regulator-max-microvolt = <2800000>;
432 regulator-name = "afvcc-cam";
436 regulator-min-microvolt = <3000000>;
437 regulator-max-microvolt = <3000000>;
438 regulator-name = "vcc-io-wifi-codec-io2";
443 regulator-min-microvolt = <800000>;
444 regulator-max-microvolt = <1100000>;
445 regulator-name = "vdd-cpub";
450 regulator-min-microvolt = <800000>;
451 regulator-max-microvolt = <1100000>;
452 regulator-name = "vdd-vpu";
457 regulator-min-microvolt = <2100000>;
458 regulator-max-microvolt = <2100000>;
459 regulator-name = "vcc-bldo-codec-ldoin";
464 * unused, but use a different name to
465 * avoid name clash with axp809's sw
467 regulator-name = "s_sw";
473 compatible = "x-powers,ac100";
477 compatible = "x-powers,ac100-codec";
478 interrupt-parent = <&r_pio>;
479 interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */
481 clock-output-names = "4M_adda";
485 compatible = "x-powers,ac100-rtc";
486 interrupt-parent = <&nmi_intc>;
487 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
488 clocks = <&ac100_codec>;
490 clock-output-names = "cko1_rtc",
497 #include "axp809.dtsi"
500 pinctrl-names = "default";
501 pinctrl-0 = <&lcd0_rgb888_pins>;
505 tcon0_out_vga: endpoint@0 {
507 remote-endpoint = <&vga_dac_in>;
512 pinctrl-names = "default";
513 pinctrl-0 = <&uart0_ph_pins>;