2 * Copyright 2014 Chen-Yu Tsai
4 * Chen-Yu Tsai <wens@csie.org>
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
11 * a) This file is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
16 * This file is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
23 * b) Permission is hereby granted, free of charge, to any person
24 * obtaining a copy of this software and associated documentation
25 * files (the "Software"), to deal in the Software without
26 * restriction, including without limitation the rights to use,
27 * copy, modify, merge, publish, distribute, sublicense, and/or
28 * sell copies of the Software, and to permit persons to whom the
29 * Software is furnished to do so, subject to the following
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 * OTHER DEALINGS IN THE SOFTWARE.
46 #include "sun9i-a80.dtsi"
48 #include <dt-bindings/gpio/gpio.h>
51 model = "Merrii A80 Optimus Board";
52 compatible = "merrii,a80-optimus", "allwinner,sun9i-a80";
60 stdout-path = "serial0:115200n8";
64 compatible = "gpio-leds";
66 /* The LED names match those found on the board */
68 label = "optimus:led2:usr";
69 gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>;
73 label = "optimus:led3:usr";
74 gpios = <&r_pio 1 15 GPIO_ACTIVE_HIGH>; /* PM15 */
78 label = "optimus:led4:usr";
79 gpios = <&pio 7 0 GPIO_ACTIVE_HIGH>;
83 reg_usb1_vbus: usb1-vbus {
84 compatible = "regulator-fixed";
85 pinctrl-names = "default";
86 regulator-min-microvolt = <5000000>;
87 regulator-max-microvolt = <5000000>;
89 gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
92 reg_usb3_vbus: usb3-vbus {
93 compatible = "regulator-fixed";
94 pinctrl-names = "default";
95 regulator-min-microvolt = <5000000>;
96 regulator-max-microvolt = <5000000>;
98 gpio = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
101 wifi_pwrseq: wifi-pwrseq {
102 compatible = "mmc-pwrseq-simple";
103 clocks = <&ac100_rtc 1>;
104 clock-names = "ext_clock";
105 /* enables internal regulator and de-asserts reset */
106 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 WL-PMU-EN */
115 /* Enable if HSIC peripheral is connected */
124 pinctrl-names = "default";
125 pinctrl-0 = <&gmac_rgmii_pins>;
128 phy-supply = <®_cldo1>;
131 phy1: ethernet-phy@1 {
137 pinctrl-names = "default";
138 pinctrl-0 = <&mmc0_pins>;
139 vmmc-supply = <®_dcdc1>;
141 cd-gpios = <&pio 7 18 GPIO_ACTIVE_LOW>; /* PH8 */
146 pinctrl-names = "default";
147 pinctrl-0 = <&mmc1_pins>;
148 vmmc-supply = <®_dldo1>;
149 vqmmc-supply = <®_cldo3>;
150 mmc-pwrseq = <&wifi_pwrseq>;
161 pinctrl-names = "default";
162 pinctrl-0 = <&mmc2_8bit_pins>;
163 vmmc-supply = <®_dcdc1>;
171 /* Increase drive strength for DDR modes */
172 drive-strength = <40>;
184 /* osc32k input is from AC100 */
185 clocks = <&ac100_rtc 0>;
189 vcc-pa-supply = <®_ldo_io1>;
190 vcc-pb-supply = <®_aldo2>;
191 vcc-pc-supply = <®_dcdc1>;
192 vcc-pd-supply = <®_dcdc1>;
193 vcc-pe-supply = <®_eldo2>;
194 vcc-pf-supply = <®_dcdc1>;
195 vcc-pg-supply = <®_ldo_io0>;
196 vcc-ph-supply = <®_dcdc1>;
204 vcc-pl-supply = <®_dldo2>;
205 vcc-pm-supply = <®_eldo3>;
213 interrupt-parent = <&nmi_intc>;
214 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
219 * TODO: This should be handled by the
223 regulator-min-microvolt = <3000000>;
224 regulator-max-microvolt = <3000000>;
225 regulator-name = "vcc33-usbh";
229 regulator-min-microvolt = <1800000>;
230 regulator-max-microvolt = <1800000>;
231 regulator-name = "vcc-pb-io-cam";
240 regulator-min-microvolt = <800000>;
241 regulator-max-microvolt = <1100000>;
242 regulator-name = "vdd-cpus-09-usbh";
251 regulator-min-microvolt = <3000000>;
252 regulator-max-microvolt = <3000000>;
253 regulator-name = "vcc-3v";
257 regulator-min-microvolt = <800000>;
258 regulator-max-microvolt = <1100000>;
259 regulator-name = "vdd-gpu";
264 regulator-min-microvolt = <800000>;
265 regulator-max-microvolt = <1100000>;
266 regulator-name = "vdd-cpua";
271 regulator-min-microvolt = <800000>;
272 regulator-max-microvolt = <1100000>;
273 regulator-name = "vdd-sys-usb0-hdmi";
278 regulator-min-microvolt = <1425000>;
279 regulator-max-microvolt = <1575000>;
280 regulator-name = "vcc-dram";
285 * The WiFi chip supports a wide range
286 * (3.0 ~ 4.8V) of voltages, and so does
287 * this regulator (3.0 ~ 4.2V), but
288 * Allwinner SDK always sets it to 3.3V.
290 regulator-min-microvolt = <3300000>;
291 regulator-max-microvolt = <3300000>;
292 regulator-name = "vcc-wifi";
296 regulator-min-microvolt = <3000000>;
297 regulator-max-microvolt = <3000000>;
298 regulator-name = "vcc-pl";
302 regulator-min-microvolt = <1200000>;
303 regulator-max-microvolt = <1200000>;
304 regulator-name = "vcc-dvdd-cam";
308 regulator-min-microvolt = <1800000>;
309 regulator-max-microvolt = <1800000>;
310 regulator-name = "vcc-pe";
314 regulator-min-microvolt = <3000000>;
315 regulator-max-microvolt = <3000000>;
316 regulator-name = "vcc-pm-codec-io1";
319 reg_ldo_io0: ldo_io0 {
320 regulator-min-microvolt = <3000000>;
321 regulator-max-microvolt = <3000000>;
322 regulator-name = "vcc-pg";
325 reg_ldo_io1: ldo_io1 {
326 regulator-min-microvolt = <2500000>;
327 regulator-max-microvolt = <2500000>;
328 regulator-name = "vcc-pa-gmac-2v5";
331 reg_rtc_ldo: rtc_ldo {
332 regulator-name = "vcc-rtc-vdd1v8-io";
342 compatible = "x-powers,axp806";
344 interrupt-parent = <&nmi_intc>;
345 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
346 interrupt-controller;
347 #interrupt-cells = <1>;
348 bldoin-supply = <®_dcdce>;
353 regulator-min-microvolt = <3000000>;
354 regulator-max-microvolt = <3000000>;
355 regulator-name = "avcc";
360 * unused, but use a different name to
361 * avoid name clash with axp809's aldo's
363 regulator-name = "s_aldo2";
368 * unused, but use a different name to
369 * avoid name clash with axp809's aldo's
371 regulator-name = "s_aldo3";
376 regulator-min-microvolt = <1700000>;
377 regulator-max-microvolt = <1900000>;
378 regulator-name = "vcc18-efuse-adc-display-csi";
383 regulator-min-microvolt = <1700000>;
384 regulator-max-microvolt = <1900000>;
386 "vdd18-drampll-vcc18-pll-cpvdd";
394 regulator-min-microvolt = <1100000>;
395 regulator-max-microvolt = <1300000>;
396 regulator-name = "vcc12-hsic";
401 * This was 3V in the original design, but
402 * 3.3V is the recommended supply voltage
403 * for the Ethernet PHY.
405 regulator-min-microvolt = <3300000>;
406 regulator-max-microvolt = <3300000>;
408 * The PHY requires 20ms after all voltages
409 * are applied until core logic is ready and
410 * 30ms after the reset pin is de-asserted.
411 * Set a 100ms delay to account for PMIC
412 * ramp time and board traces.
414 regulator-enable-ramp-delay = <100000>;
415 regulator-name = "vcc-gmac-phy";
419 regulator-min-microvolt = <2800000>;
420 regulator-max-microvolt = <2800000>;
421 regulator-name = "afvcc-cam";
425 regulator-min-microvolt = <3000000>;
426 regulator-max-microvolt = <3000000>;
427 regulator-name = "vcc-io-wifi-codec-io2";
432 regulator-min-microvolt = <800000>;
433 regulator-max-microvolt = <1100000>;
434 regulator-name = "vdd-cpub";
439 regulator-min-microvolt = <800000>;
440 regulator-max-microvolt = <1100000>;
441 regulator-name = "vdd-vpu";
446 regulator-min-microvolt = <2100000>;
447 regulator-max-microvolt = <2100000>;
448 regulator-name = "vcc-bldo-codec-ldoin";
453 * unused, but use a different name to
454 * avoid name clash with axp809's sw
456 regulator-name = "s_sw";
462 compatible = "x-powers,ac100";
466 compatible = "x-powers,ac100-codec";
467 interrupt-parent = <&r_pio>;
468 interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */
470 clock-output-names = "4M_adda";
474 compatible = "x-powers,ac100-rtc";
475 interrupt-parent = <&nmi_intc>;
476 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
477 clocks = <&ac100_codec>;
479 clock-output-names = "cko1_rtc",
486 #include "axp809.dtsi"
489 pinctrl-names = "default";
490 pinctrl-0 = <&uart0_ph_pins>;
495 phy-supply = <®_usb1_vbus>;
500 phy-supply = <®_bldo4>;
501 /* Enable if HSIC peripheral is connected */
506 phy-supply = <®_usb3_vbus>;