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 regulator-name = "usb1-vbus";
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 regulator-name = "usb3-vbus";
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>;
126 phy-handle = <&phy1>;
128 phy-supply = <®_cldo1>;
133 phy1: ethernet-phy@1 {
139 pinctrl-names = "default";
140 pinctrl-0 = <&mmc0_pins>;
141 vmmc-supply = <®_dcdc1>;
143 cd-gpios = <&pio 7 18 GPIO_ACTIVE_LOW>; /* PH8 */
148 pinctrl-names = "default";
149 pinctrl-0 = <&mmc1_pins>;
150 vmmc-supply = <®_dldo1>;
151 vqmmc-supply = <®_cldo3>;
152 mmc-pwrseq = <&wifi_pwrseq>;
163 pinctrl-names = "default";
164 pinctrl-0 = <&mmc2_8bit_pins>;
165 vmmc-supply = <®_dcdc1>;
173 /* Increase drive strength for DDR modes */
174 drive-strength = <40>;
186 /* osc32k input is from AC100 */
187 clocks = <&ac100_rtc 0>;
191 vcc-pa-supply = <®_ldo_io1>;
192 vcc-pb-supply = <®_aldo2>;
193 vcc-pc-supply = <®_dcdc1>;
194 vcc-pd-supply = <®_dcdc1>;
195 vcc-pe-supply = <®_eldo2>;
196 vcc-pf-supply = <®_dcdc1>;
197 vcc-pg-supply = <®_ldo_io0>;
198 vcc-ph-supply = <®_dcdc1>;
206 vcc-pl-supply = <®_dldo2>;
207 vcc-pm-supply = <®_eldo3>;
215 interrupt-parent = <&nmi_intc>;
216 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
221 * TODO: This should be handled by the
225 regulator-min-microvolt = <3000000>;
226 regulator-max-microvolt = <3000000>;
227 regulator-name = "vcc33-usbh";
231 regulator-min-microvolt = <1800000>;
232 regulator-max-microvolt = <1800000>;
233 regulator-name = "vcc-pb-io-cam";
242 regulator-min-microvolt = <800000>;
243 regulator-max-microvolt = <1100000>;
244 regulator-name = "vdd-cpus-09-usbh";
253 regulator-min-microvolt = <3000000>;
254 regulator-max-microvolt = <3000000>;
255 regulator-name = "vcc-3v";
259 regulator-min-microvolt = <800000>;
260 regulator-max-microvolt = <1100000>;
261 regulator-name = "vdd-gpu";
266 regulator-min-microvolt = <800000>;
267 regulator-max-microvolt = <1100000>;
268 regulator-name = "vdd-cpua";
273 regulator-min-microvolt = <800000>;
274 regulator-max-microvolt = <1100000>;
275 regulator-name = "vdd-sys-usb0-hdmi";
280 regulator-min-microvolt = <1425000>;
281 regulator-max-microvolt = <1575000>;
282 regulator-name = "vcc-dram";
287 * The WiFi chip supports a wide range
288 * (3.0 ~ 4.8V) of voltages, and so does
289 * this regulator (3.0 ~ 4.2V), but
290 * Allwinner SDK always sets it to 3.3V.
292 regulator-min-microvolt = <3300000>;
293 regulator-max-microvolt = <3300000>;
294 regulator-name = "vcc-wifi";
298 regulator-min-microvolt = <3000000>;
299 regulator-max-microvolt = <3000000>;
300 regulator-name = "vcc-pl";
304 regulator-min-microvolt = <1200000>;
305 regulator-max-microvolt = <1200000>;
306 regulator-name = "vcc-dvdd-cam";
310 regulator-min-microvolt = <1800000>;
311 regulator-max-microvolt = <1800000>;
312 regulator-name = "vcc-pe";
316 regulator-min-microvolt = <3000000>;
317 regulator-max-microvolt = <3000000>;
318 regulator-name = "vcc-pm-codec-io1";
321 reg_ldo_io0: ldo_io0 {
322 regulator-min-microvolt = <3000000>;
323 regulator-max-microvolt = <3000000>;
324 regulator-name = "vcc-pg";
327 reg_ldo_io1: ldo_io1 {
328 regulator-min-microvolt = <2500000>;
329 regulator-max-microvolt = <2500000>;
330 regulator-name = "vcc-pa-gmac-2v5";
333 reg_rtc_ldo: rtc_ldo {
334 regulator-name = "vcc-rtc-vdd1v8-io";
344 compatible = "x-powers,axp806";
346 interrupt-parent = <&nmi_intc>;
347 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
348 interrupt-controller;
349 #interrupt-cells = <1>;
350 bldoin-supply = <®_dcdce>;
355 regulator-min-microvolt = <3000000>;
356 regulator-max-microvolt = <3000000>;
357 regulator-name = "avcc";
362 * unused, but use a different name to
363 * avoid name clash with axp809's aldo's
365 regulator-name = "s_aldo2";
370 * unused, but use a different name to
371 * avoid name clash with axp809's aldo's
373 regulator-name = "s_aldo3";
378 regulator-min-microvolt = <1700000>;
379 regulator-max-microvolt = <1900000>;
380 regulator-name = "vcc18-efuse-adc-display-csi";
385 regulator-min-microvolt = <1700000>;
386 regulator-max-microvolt = <1900000>;
388 "vdd18-drampll-vcc18-pll-cpvdd";
396 regulator-min-microvolt = <1100000>;
397 regulator-max-microvolt = <1300000>;
398 regulator-name = "vcc12-hsic";
403 * This was 3V in the original design, but
404 * 3.3V is the recommended supply voltage
405 * for the Ethernet PHY.
407 regulator-min-microvolt = <3300000>;
408 regulator-max-microvolt = <3300000>;
410 * The PHY requires 20ms after all voltages
411 * are applied until core logic is ready and
412 * 30ms after the reset pin is de-asserted.
413 * Set a 100ms delay to account for PMIC
414 * ramp time and board traces.
416 regulator-enable-ramp-delay = <100000>;
417 regulator-name = "vcc-gmac-phy";
421 regulator-min-microvolt = <2800000>;
422 regulator-max-microvolt = <2800000>;
423 regulator-name = "afvcc-cam";
427 regulator-min-microvolt = <3000000>;
428 regulator-max-microvolt = <3000000>;
429 regulator-name = "vcc-io-wifi-codec-io2";
434 regulator-min-microvolt = <800000>;
435 regulator-max-microvolt = <1100000>;
436 regulator-name = "vdd-cpub";
441 regulator-min-microvolt = <800000>;
442 regulator-max-microvolt = <1100000>;
443 regulator-name = "vdd-vpu";
448 regulator-min-microvolt = <2100000>;
449 regulator-max-microvolt = <2100000>;
450 regulator-name = "vcc-bldo-codec-ldoin";
455 * unused, but use a different name to
456 * avoid name clash with axp809's sw
458 regulator-name = "s_sw";
464 compatible = "x-powers,ac100";
468 compatible = "x-powers,ac100-codec";
469 interrupt-parent = <&r_pio>;
470 interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */
472 clock-output-names = "4M_adda";
476 compatible = "x-powers,ac100-rtc";
477 interrupt-parent = <&nmi_intc>;
478 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
479 clocks = <&ac100_codec>;
481 clock-output-names = "cko1_rtc",
488 #include "axp809.dtsi"
491 pinctrl-names = "default";
492 pinctrl-0 = <&uart0_ph_pins>;
497 phy-supply = <®_usb1_vbus>;
502 phy-supply = <®_bldo4>;
503 /* Enable if HSIC peripheral is connected */
508 phy-supply = <®_usb3_vbus>;