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";
65 pinctrl-names = "default";
66 pinctrl-0 = <&led_pins_optimus>, <&led_r_pins_optimus>;
68 /* The LED names match those found on the board */
71 label = "optimus:led2:usr";
72 gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>;
76 label = "optimus:led3:usr";
77 gpios = <&r_pio 1 15 GPIO_ACTIVE_HIGH>; /* PM15 */
81 label = "optimus:led4:usr";
82 gpios = <&pio 7 0 GPIO_ACTIVE_HIGH>;
86 reg_usb1_vbus: usb1-vbus {
87 compatible = "regulator-fixed";
88 pinctrl-names = "default";
89 pinctrl-0 = <&usb1_vbus_pin_optimus>;
90 regulator-name = "usb1-vbus";
91 regulator-min-microvolt = <5000000>;
92 regulator-max-microvolt = <5000000>;
94 gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
97 reg_usb3_vbus: usb3-vbus {
98 compatible = "regulator-fixed";
99 pinctrl-names = "default";
100 pinctrl-0 = <&usb3_vbus_pin_optimus>;
101 regulator-name = "usb3-vbus";
102 regulator-min-microvolt = <5000000>;
103 regulator-max-microvolt = <5000000>;
105 gpio = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
108 wifi_pwrseq: wifi_pwrseq {
109 compatible = "mmc-pwrseq-simple";
110 clocks = <&ac100_rtc 1>;
111 clock-names = "ext_clock";
112 /* enables internal regulator and de-asserts reset */
113 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 WL-PMU-EN */
122 /* Enable if HSIC peripheral is connected */
131 pinctrl-names = "default";
132 pinctrl-0 = <&mmc0_pins>, <&mmc0_cd_pin_optimus>;
133 vmmc-supply = <®_dcdc1>;
135 cd-gpios = <&pio 7 18 GPIO_ACTIVE_HIGH>; /* PH8 */
141 pinctrl-names = "default";
142 pinctrl-0 = <&mmc1_pins>, <&wifi_en_pin_optimus>;
143 vmmc-supply = <®_dldo1>;
144 vqmmc-supply = <®_cldo3>;
145 mmc-pwrseq = <&wifi_pwrseq>;
156 pinctrl-names = "default";
157 pinctrl-0 = <&mmc2_8bit_pins>;
158 vmmc-supply = <®_dcdc1>;
166 /* Increase drive strength for DDR modes */
167 drive-strength = <40>;
179 /* osc32k input is from AC100 */
180 clocks = <&ac100_rtc 0>;
184 led_pins_optimus: led-pins@0 {
186 function = "gpio_out";
189 mmc0_cd_pin_optimus: mmc0_cd_pin@0 {
191 function = "gpio_in";
195 usb1_vbus_pin_optimus: usb1_vbus_pin@1 {
197 function = "gpio_out";
200 usb3_vbus_pin_optimus: usb3_vbus_pin@1 {
202 function = "gpio_out";
211 led_r_pins_optimus: led-pins@1 {
213 function = "gpio_out";
216 wifi_en_pin_optimus: wifi_en_pin@0 {
218 function = "gpio_out";
227 interrupt-parent = <&nmi_intc>;
228 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
233 * TODO: This should be handled by the
237 regulator-min-microvolt = <3000000>;
238 regulator-max-microvolt = <3000000>;
239 regulator-name = "vcc33-usbh";
243 regulator-min-microvolt = <1800000>;
244 regulator-max-microvolt = <1800000>;
245 regulator-name = "vcc-pb-io-cam";
254 regulator-min-microvolt = <800000>;
255 regulator-max-microvolt = <1100000>;
256 regulator-name = "vdd-cpus-09-usbh";
261 regulator-min-microvolt = <3000000>;
262 regulator-max-microvolt = <3000000>;
263 regulator-name = "vcc-3v";
267 regulator-min-microvolt = <800000>;
268 regulator-max-microvolt = <1100000>;
269 regulator-name = "vdd-gpu";
274 regulator-min-microvolt = <800000>;
275 regulator-max-microvolt = <1100000>;
276 regulator-name = "vdd-cpua";
281 regulator-min-microvolt = <800000>;
282 regulator-max-microvolt = <1100000>;
283 regulator-name = "vdd-sys-usb0-hdmi";
288 regulator-min-microvolt = <1425000>;
289 regulator-max-microvolt = <1575000>;
290 regulator-name = "vcc-dram";
295 * The WiFi chip supports a wide range
296 * (3.0 ~ 4.8V) of voltages, and so does
297 * this regulator (3.0 ~ 4.2V), but
298 * Allwinner SDK always sets it to 3.3V.
300 regulator-min-microvolt = <3300000>;
301 regulator-max-microvolt = <3300000>;
302 regulator-name = "vcc-wifi";
307 regulator-min-microvolt = <3000000>;
308 regulator-max-microvolt = <3000000>;
309 regulator-name = "vcc-pl";
313 regulator-min-microvolt = <1200000>;
314 regulator-max-microvolt = <1200000>;
315 regulator-name = "vcc-dvdd-cam";
319 regulator-min-microvolt = <1800000>;
320 regulator-max-microvolt = <1800000>;
321 regulator-name = "vcc-pe";
326 regulator-min-microvolt = <3000000>;
327 regulator-max-microvolt = <3000000>;
328 regulator-name = "vcc-pm-codec-io1";
331 reg_ldo_io0: ldo_io0 {
333 regulator-min-microvolt = <3000000>;
334 regulator-max-microvolt = <3000000>;
335 regulator-name = "vcc-pg";
338 reg_ldo_io1: ldo_io1 {
339 regulator-min-microvolt = <2500000>;
340 regulator-max-microvolt = <2500000>;
341 regulator-name = "vcc-pa-gmac-2v5";
344 reg_rtc_ldo: rtc_ldo {
345 regulator-name = "vcc-rtc-vdd1v8-io";
355 compatible = "x-powers,axp806";
357 interrupt-parent = <&nmi_intc>;
358 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
359 interrupt-controller;
360 #interrupt-cells = <1>;
361 bldoin-supply = <®_dcdce>;
366 regulator-min-microvolt = <3000000>;
367 regulator-max-microvolt = <3000000>;
368 regulator-name = "avcc";
373 * unused, but use a different name to
374 * avoid name clash with axp809's aldo's
376 regulator-name = "s_aldo2";
381 * unused, but use a different name to
382 * avoid name clash with axp809's aldo's
384 regulator-name = "s_aldo3";
389 regulator-min-microvolt = <1700000>;
390 regulator-max-microvolt = <1900000>;
391 regulator-name = "vcc18-efuse-adc-display-csi";
396 regulator-min-microvolt = <1700000>;
397 regulator-max-microvolt = <1900000>;
399 "vdd18-drampll-vcc18-pll-cpvdd";
407 regulator-min-microvolt = <1100000>;
408 regulator-max-microvolt = <1300000>;
409 regulator-name = "vcc12-hsic";
414 * This was 3V in the original design, but
415 * 3.3V is the recommended supply voltage
416 * for the Ethernet PHY.
418 regulator-min-microvolt = <3300000>;
419 regulator-max-microvolt = <3300000>;
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 = <&uart0_pins_a>;
500 phy-supply = <®_usb1_vbus>;
505 phy-supply = <®_bldo4>;
506 /* Enable if HSIC peripheral is connected */
511 phy-supply = <®_usb3_vbus>;