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>;
133 phy-supply = <®_cldo1>;
136 phy1: ethernet-phy@1 {
142 pinctrl-names = "default";
143 pinctrl-0 = <&i2c3_pins>;
148 pinctrl-names = "default";
149 pinctrl-0 = <&mmc0_pins>;
150 vmmc-supply = <®_dcdc1>;
152 cd-gpios = <&pio 7 18 GPIO_ACTIVE_LOW>; /* PH18 */
157 pinctrl-names = "default";
158 pinctrl-0 = <&mmc1_pins>;
159 vmmc-supply = <®_dldo1>;
160 vqmmc-supply = <®_cldo3>;
161 mmc-pwrseq = <&wifi_pwrseq>;
172 pinctrl-names = "default";
173 pinctrl-0 = <&mmc2_8bit_pins>;
174 vmmc-supply = <®_dcdc1>;
182 /* Increase drive strength for DDR modes */
183 drive-strength = <40>;
187 /* osc32k input is from AC100 */
188 clocks = <&ac100_rtc 0>;
192 vcc-pa-supply = <®_ldo_io1>;
193 vcc-pb-supply = <®_aldo2>;
194 vcc-pc-supply = <®_dcdc1>;
195 vcc-pd-supply = <®_dc1sw>;
196 vcc-pe-supply = <®_eldo2>;
197 vcc-pf-supply = <®_dcdc1>;
198 vcc-pg-supply = <®_ldo_io0>;
199 vcc-ph-supply = <®_dcdc1>;
207 vcc-pl-supply = <®_dldo2>;
208 vcc-pm-supply = <®_eldo3>;
216 interrupt-parent = <&nmi_intc>;
217 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
222 * TODO: This should be handled by the
226 regulator-min-microvolt = <3000000>;
227 regulator-max-microvolt = <3000000>;
228 regulator-name = "vcc33-usbh";
232 regulator-min-microvolt = <1800000>;
233 regulator-max-microvolt = <1800000>;
234 regulator-name = "vcc-pb-io-cam";
242 regulator-name = "vcc-pd";
247 regulator-min-microvolt = <800000>;
248 regulator-max-microvolt = <1100000>;
249 regulator-name = "vdd-cpus-09-usbh";
254 regulator-min-microvolt = <3000000>;
255 regulator-max-microvolt = <3000000>;
256 regulator-name = "vcc-3v";
260 regulator-min-microvolt = <800000>;
261 regulator-max-microvolt = <1100000>;
262 regulator-name = "vdd-gpu";
267 regulator-min-microvolt = <800000>;
268 regulator-max-microvolt = <1100000>;
269 regulator-name = "vdd-cpua";
274 regulator-min-microvolt = <800000>;
275 regulator-max-microvolt = <1100000>;
276 regulator-name = "vdd-sys-usb0-hdmi";
281 regulator-min-microvolt = <1425000>;
282 regulator-max-microvolt = <1575000>;
283 regulator-name = "vcc-dram";
288 * The WiFi chip supports a wide range
289 * (3.0 ~ 4.8V) of voltages, and so does
290 * this regulator (3.0 ~ 4.2V), but
291 * Allwinner SDK always sets it to 3.3V.
293 regulator-min-microvolt = <3300000>;
294 regulator-max-microvolt = <3300000>;
295 regulator-name = "vcc-wifi";
299 regulator-min-microvolt = <3000000>;
300 regulator-max-microvolt = <3000000>;
301 regulator-name = "vcc-pl";
305 regulator-min-microvolt = <1200000>;
306 regulator-max-microvolt = <1200000>;
307 regulator-name = "vcc-dvdd-cam";
311 regulator-min-microvolt = <1800000>;
312 regulator-max-microvolt = <1800000>;
313 regulator-name = "vcc-pe";
317 regulator-min-microvolt = <3000000>;
318 regulator-max-microvolt = <3000000>;
319 regulator-name = "vcc-pm-codec-io1";
322 reg_ldo_io0: ldo_io0 {
323 regulator-min-microvolt = <3000000>;
324 regulator-max-microvolt = <3000000>;
325 regulator-name = "vcc-pg";
328 reg_ldo_io1: ldo_io1 {
329 regulator-min-microvolt = <2500000>;
330 regulator-max-microvolt = <2500000>;
331 regulator-name = "vcc-pa-gmac-2v5";
334 reg_rtc_ldo: rtc_ldo {
335 regulator-name = "vcc-rtc-vdd1v8-io";
345 compatible = "x-powers,axp806";
347 interrupt-parent = <&nmi_intc>;
348 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
349 interrupt-controller;
350 #interrupt-cells = <1>;
351 bldoin-supply = <®_dcdce>;
356 regulator-min-microvolt = <3000000>;
357 regulator-max-microvolt = <3000000>;
358 regulator-name = "avcc";
363 * unused, but use a different name to
364 * avoid name clash with axp809's aldo's
366 regulator-name = "s_aldo2";
371 * unused, but use a different name to
372 * avoid name clash with axp809's aldo's
374 regulator-name = "s_aldo3";
379 regulator-min-microvolt = <1700000>;
380 regulator-max-microvolt = <1900000>;
381 regulator-name = "vcc18-efuse-adc-display-csi";
386 regulator-min-microvolt = <1700000>;
387 regulator-max-microvolt = <1900000>;
389 "vdd18-drampll-vcc18-pll-cpvdd";
397 regulator-min-microvolt = <1100000>;
398 regulator-max-microvolt = <1300000>;
399 regulator-name = "vcc12-hsic";
404 * This was 3V in the original design, but
405 * 3.3V is the recommended supply voltage
406 * for the Ethernet PHY.
408 regulator-min-microvolt = <3300000>;
409 regulator-max-microvolt = <3300000>;
411 * The PHY requires 20ms after all voltages
412 * are applied until core logic is ready and
413 * 30ms after the reset pin is de-asserted.
414 * Set a 100ms delay to account for PMIC
415 * ramp time and board traces.
417 regulator-enable-ramp-delay = <100000>;
418 regulator-name = "vcc-gmac-phy";
422 regulator-min-microvolt = <2800000>;
423 regulator-max-microvolt = <2800000>;
424 regulator-name = "afvcc-cam";
428 regulator-min-microvolt = <3000000>;
429 regulator-max-microvolt = <3000000>;
430 regulator-name = "vcc-io-wifi-codec-io2";
435 regulator-min-microvolt = <800000>;
436 regulator-max-microvolt = <1100000>;
437 regulator-name = "vdd-cpub";
442 regulator-min-microvolt = <800000>;
443 regulator-max-microvolt = <1100000>;
444 regulator-name = "vdd-vpu";
449 regulator-min-microvolt = <2100000>;
450 regulator-max-microvolt = <2100000>;
451 regulator-name = "vcc-bldo-codec-ldoin";
456 * unused, but use a different name to
457 * avoid name clash with axp809's sw
459 regulator-name = "s_sw";
465 compatible = "x-powers,ac100";
469 compatible = "x-powers,ac100-codec";
470 interrupt-parent = <&r_pio>;
471 interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */
473 clock-output-names = "4M_adda";
477 compatible = "x-powers,ac100-rtc";
478 interrupt-parent = <&nmi_intc>;
479 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
480 clocks = <&ac100_codec>;
482 clock-output-names = "cko1_rtc",
489 #include "axp809.dtsi"
492 pinctrl-names = "default";
493 pinctrl-0 = <&lcd0_rgb888_pins>;
497 tcon0_out_vga: endpoint {
498 remote-endpoint = <&vga_dac_in>;
503 pinctrl-names = "default";
504 pinctrl-0 = <&uart0_ph_pins>;