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 = <&mmc0_pins>;
126 vmmc-supply = <®_dcdc1>;
128 cd-gpios = <&pio 7 18 GPIO_ACTIVE_LOW>; /* PH8 */
133 pinctrl-names = "default";
134 pinctrl-0 = <&mmc1_pins>;
135 vmmc-supply = <®_dldo1>;
136 vqmmc-supply = <®_cldo3>;
137 mmc-pwrseq = <&wifi_pwrseq>;
148 pinctrl-names = "default";
149 pinctrl-0 = <&mmc2_8bit_pins>;
150 vmmc-supply = <®_dcdc1>;
158 /* Increase drive strength for DDR modes */
159 drive-strength = <40>;
171 /* osc32k input is from AC100 */
172 clocks = <&ac100_rtc 0>;
184 interrupt-parent = <&nmi_intc>;
185 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
190 * TODO: This should be handled by the
194 regulator-min-microvolt = <3000000>;
195 regulator-max-microvolt = <3000000>;
196 regulator-name = "vcc33-usbh";
200 regulator-min-microvolt = <1800000>;
201 regulator-max-microvolt = <1800000>;
202 regulator-name = "vcc-pb-io-cam";
211 regulator-min-microvolt = <800000>;
212 regulator-max-microvolt = <1100000>;
213 regulator-name = "vdd-cpus-09-usbh";
218 regulator-min-microvolt = <3000000>;
219 regulator-max-microvolt = <3000000>;
220 regulator-name = "vcc-3v";
224 regulator-min-microvolt = <800000>;
225 regulator-max-microvolt = <1100000>;
226 regulator-name = "vdd-gpu";
231 regulator-min-microvolt = <800000>;
232 regulator-max-microvolt = <1100000>;
233 regulator-name = "vdd-cpua";
238 regulator-min-microvolt = <800000>;
239 regulator-max-microvolt = <1100000>;
240 regulator-name = "vdd-sys-usb0-hdmi";
245 regulator-min-microvolt = <1425000>;
246 regulator-max-microvolt = <1575000>;
247 regulator-name = "vcc-dram";
252 * The WiFi chip supports a wide range
253 * (3.0 ~ 4.8V) of voltages, and so does
254 * this regulator (3.0 ~ 4.2V), but
255 * Allwinner SDK always sets it to 3.3V.
257 regulator-min-microvolt = <3300000>;
258 regulator-max-microvolt = <3300000>;
259 regulator-name = "vcc-wifi";
264 regulator-min-microvolt = <3000000>;
265 regulator-max-microvolt = <3000000>;
266 regulator-name = "vcc-pl";
270 regulator-min-microvolt = <1200000>;
271 regulator-max-microvolt = <1200000>;
272 regulator-name = "vcc-dvdd-cam";
276 regulator-min-microvolt = <1800000>;
277 regulator-max-microvolt = <1800000>;
278 regulator-name = "vcc-pe";
283 regulator-min-microvolt = <3000000>;
284 regulator-max-microvolt = <3000000>;
285 regulator-name = "vcc-pm-codec-io1";
288 reg_ldo_io0: ldo_io0 {
290 regulator-min-microvolt = <3000000>;
291 regulator-max-microvolt = <3000000>;
292 regulator-name = "vcc-pg";
295 reg_ldo_io1: ldo_io1 {
296 regulator-min-microvolt = <2500000>;
297 regulator-max-microvolt = <2500000>;
298 regulator-name = "vcc-pa-gmac-2v5";
301 reg_rtc_ldo: rtc_ldo {
302 regulator-name = "vcc-rtc-vdd1v8-io";
312 compatible = "x-powers,axp806";
314 interrupt-parent = <&nmi_intc>;
315 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
316 interrupt-controller;
317 #interrupt-cells = <1>;
318 bldoin-supply = <®_dcdce>;
323 regulator-min-microvolt = <3000000>;
324 regulator-max-microvolt = <3000000>;
325 regulator-name = "avcc";
330 * unused, but use a different name to
331 * avoid name clash with axp809's aldo's
333 regulator-name = "s_aldo2";
338 * unused, but use a different name to
339 * avoid name clash with axp809's aldo's
341 regulator-name = "s_aldo3";
346 regulator-min-microvolt = <1700000>;
347 regulator-max-microvolt = <1900000>;
348 regulator-name = "vcc18-efuse-adc-display-csi";
353 regulator-min-microvolt = <1700000>;
354 regulator-max-microvolt = <1900000>;
356 "vdd18-drampll-vcc18-pll-cpvdd";
364 regulator-min-microvolt = <1100000>;
365 regulator-max-microvolt = <1300000>;
366 regulator-name = "vcc12-hsic";
371 * This was 3V in the original design, but
372 * 3.3V is the recommended supply voltage
373 * for the Ethernet PHY.
375 regulator-min-microvolt = <3300000>;
376 regulator-max-microvolt = <3300000>;
377 regulator-name = "vcc-gmac-phy";
381 regulator-min-microvolt = <2800000>;
382 regulator-max-microvolt = <2800000>;
383 regulator-name = "afvcc-cam";
387 regulator-min-microvolt = <3000000>;
388 regulator-max-microvolt = <3000000>;
389 regulator-name = "vcc-io-wifi-codec-io2";
394 regulator-min-microvolt = <800000>;
395 regulator-max-microvolt = <1100000>;
396 regulator-name = "vdd-cpub";
401 regulator-min-microvolt = <800000>;
402 regulator-max-microvolt = <1100000>;
403 regulator-name = "vdd-vpu";
408 regulator-min-microvolt = <2100000>;
409 regulator-max-microvolt = <2100000>;
410 regulator-name = "vcc-bldo-codec-ldoin";
415 * unused, but use a different name to
416 * avoid name clash with axp809's sw
418 regulator-name = "s_sw";
424 compatible = "x-powers,ac100";
428 compatible = "x-powers,ac100-codec";
429 interrupt-parent = <&r_pio>;
430 interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */
432 clock-output-names = "4M_adda";
436 compatible = "x-powers,ac100-rtc";
437 interrupt-parent = <&nmi_intc>;
438 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
439 clocks = <&ac100_codec>;
441 clock-output-names = "cko1_rtc",
448 #include "axp809.dtsi"
451 pinctrl-names = "default";
452 pinctrl-0 = <&uart0_ph_pins>;
457 phy-supply = <®_usb1_vbus>;
462 phy-supply = <®_bldo4>;
463 /* Enable if HSIC peripheral is connected */
468 phy-supply = <®_usb3_vbus>;