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 vga_dac_in: endpoint {
101 remote-endpoint = <&tcon0_out_vga>;
108 vga_dac_out: endpoint {
109 remote-endpoint = <&vga_con_in>;
115 wifi_pwrseq: wifi-pwrseq {
116 compatible = "mmc-pwrseq-simple";
117 clocks = <&ac100_rtc 1>;
118 clock-names = "ext_clock";
119 /* enables internal regulator and de-asserts reset */
120 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 WL-PMU-EN */
129 pinctrl-names = "default";
130 pinctrl-0 = <&gmac_rgmii_pins>;
131 phy-handle = <&phy1>;
133 phy-supply = <®_cldo1>;
138 pinctrl-names = "default";
139 pinctrl-0 = <&i2c3_pins>;
144 phy1: ethernet-phy@1 {
150 pinctrl-names = "default";
151 pinctrl-0 = <&mmc0_pins>;
152 vmmc-supply = <®_dcdc1>;
154 cd-gpios = <&pio 7 18 GPIO_ACTIVE_LOW>; /* PH18 */
159 pinctrl-names = "default";
160 pinctrl-0 = <&mmc1_pins>;
161 vmmc-supply = <®_dldo1>;
162 vqmmc-supply = <®_cldo3>;
163 mmc-pwrseq = <&wifi_pwrseq>;
174 pinctrl-names = "default";
175 pinctrl-0 = <&mmc2_8bit_pins>;
176 vmmc-supply = <®_dcdc1>;
184 /* Increase drive strength for DDR modes */
185 drive-strength = <40>;
189 /* osc32k input is from AC100 */
190 clocks = <&ac100_rtc 0>;
194 vcc-pa-supply = <®_ldo_io1>;
195 vcc-pb-supply = <®_aldo2>;
196 vcc-pc-supply = <®_dcdc1>;
197 vcc-pd-supply = <®_dc1sw>;
198 vcc-pe-supply = <®_eldo2>;
199 vcc-pf-supply = <®_dcdc1>;
200 vcc-pg-supply = <®_ldo_io0>;
201 vcc-ph-supply = <®_dcdc1>;
209 vcc-pl-supply = <®_dldo2>;
210 vcc-pm-supply = <®_eldo3>;
218 interrupt-parent = <&nmi_intc>;
219 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
224 * TODO: This should be handled by the
228 regulator-min-microvolt = <3000000>;
229 regulator-max-microvolt = <3000000>;
230 regulator-name = "vcc33-usbh";
234 regulator-min-microvolt = <1800000>;
235 regulator-max-microvolt = <1800000>;
236 regulator-name = "vcc-pb-io-cam";
244 regulator-name = "vcc-pd";
249 regulator-min-microvolt = <800000>;
250 regulator-max-microvolt = <1100000>;
251 regulator-name = "vdd-cpus-09-usbh";
256 regulator-min-microvolt = <3000000>;
257 regulator-max-microvolt = <3000000>;
258 regulator-name = "vcc-3v";
262 regulator-min-microvolt = <800000>;
263 regulator-max-microvolt = <1100000>;
264 regulator-name = "vdd-gpu";
269 regulator-min-microvolt = <800000>;
270 regulator-max-microvolt = <1100000>;
271 regulator-name = "vdd-cpua";
276 regulator-min-microvolt = <800000>;
277 regulator-max-microvolt = <1100000>;
278 regulator-name = "vdd-sys-usb0-hdmi";
283 regulator-min-microvolt = <1425000>;
284 regulator-max-microvolt = <1575000>;
285 regulator-name = "vcc-dram";
290 * The WiFi chip supports a wide range
291 * (3.0 ~ 4.8V) of voltages, and so does
292 * this regulator (3.0 ~ 4.2V), but
293 * Allwinner SDK always sets it to 3.3V.
295 regulator-min-microvolt = <3300000>;
296 regulator-max-microvolt = <3300000>;
297 regulator-name = "vcc-wifi";
301 regulator-min-microvolt = <3000000>;
302 regulator-max-microvolt = <3000000>;
303 regulator-name = "vcc-pl";
307 regulator-min-microvolt = <1200000>;
308 regulator-max-microvolt = <1200000>;
309 regulator-name = "vcc-dvdd-cam";
313 regulator-min-microvolt = <1800000>;
314 regulator-max-microvolt = <1800000>;
315 regulator-name = "vcc-pe";
319 regulator-min-microvolt = <3000000>;
320 regulator-max-microvolt = <3000000>;
321 regulator-name = "vcc-pm-codec-io1";
324 reg_ldo_io0: ldo_io0 {
325 regulator-min-microvolt = <3000000>;
326 regulator-max-microvolt = <3000000>;
327 regulator-name = "vcc-pg";
330 reg_ldo_io1: ldo_io1 {
331 regulator-min-microvolt = <2500000>;
332 regulator-max-microvolt = <2500000>;
333 regulator-name = "vcc-pa-gmac-2v5";
336 reg_rtc_ldo: rtc_ldo {
337 regulator-name = "vcc-rtc-vdd1v8-io";
347 compatible = "x-powers,axp806";
349 interrupt-parent = <&nmi_intc>;
350 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
351 interrupt-controller;
352 #interrupt-cells = <1>;
353 bldoin-supply = <®_dcdce>;
358 regulator-min-microvolt = <3000000>;
359 regulator-max-microvolt = <3000000>;
360 regulator-name = "avcc";
365 * unused, but use a different name to
366 * avoid name clash with axp809's aldo's
368 regulator-name = "s_aldo2";
373 * unused, but use a different name to
374 * avoid name clash with axp809's aldo's
376 regulator-name = "s_aldo3";
381 regulator-min-microvolt = <1700000>;
382 regulator-max-microvolt = <1900000>;
383 regulator-name = "vcc18-efuse-adc-display-csi";
388 regulator-min-microvolt = <1700000>;
389 regulator-max-microvolt = <1900000>;
391 "vdd18-drampll-vcc18-pll-cpvdd";
399 regulator-min-microvolt = <1100000>;
400 regulator-max-microvolt = <1300000>;
401 regulator-name = "vcc12-hsic";
406 * This was 3V in the original design, but
407 * 3.3V is the recommended supply voltage
408 * for the Ethernet PHY.
410 regulator-min-microvolt = <3300000>;
411 regulator-max-microvolt = <3300000>;
413 * The PHY requires 20ms after all voltages
414 * are applied until core logic is ready and
415 * 30ms after the reset pin is de-asserted.
416 * Set a 100ms delay to account for PMIC
417 * ramp time and board traces.
419 regulator-enable-ramp-delay = <100000>;
420 regulator-name = "vcc-gmac-phy";
424 regulator-min-microvolt = <2800000>;
425 regulator-max-microvolt = <2800000>;
426 regulator-name = "afvcc-cam";
430 regulator-min-microvolt = <3000000>;
431 regulator-max-microvolt = <3000000>;
432 regulator-name = "vcc-io-wifi-codec-io2";
437 regulator-min-microvolt = <800000>;
438 regulator-max-microvolt = <1100000>;
439 regulator-name = "vdd-cpub";
444 regulator-min-microvolt = <800000>;
445 regulator-max-microvolt = <1100000>;
446 regulator-name = "vdd-vpu";
451 regulator-min-microvolt = <2100000>;
452 regulator-max-microvolt = <2100000>;
453 regulator-name = "vcc-bldo-codec-ldoin";
458 * unused, but use a different name to
459 * avoid name clash with axp809's sw
461 regulator-name = "s_sw";
467 compatible = "x-powers,ac100";
471 compatible = "x-powers,ac100-codec";
472 interrupt-parent = <&r_pio>;
473 interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */
475 clock-output-names = "4M_adda";
479 compatible = "x-powers,ac100-rtc";
480 interrupt-parent = <&nmi_intc>;
481 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
482 clocks = <&ac100_codec>;
484 clock-output-names = "cko1_rtc",
491 #include "axp809.dtsi"
494 pinctrl-names = "default";
495 pinctrl-0 = <&lcd0_rgb888_pins>;
499 tcon0_out_vga: endpoint {
500 remote-endpoint = <&vga_dac_in>;
505 pinctrl-names = "default";
506 pinctrl-0 = <&uart0_ph_pins>;