2 * Copyright 2013 Maxime Ripard
4 * Maxime Ripard <maxime.ripard@free-electrons.com>
6 * The code contained herein is licensed under the GNU General Public
7 * License. You may obtain a copy of the GNU General Public License
8 * Version 2 or later at the following locations:
10 * http://www.opensource.org/licenses/gpl-license.html
11 * http://www.gnu.org/copyleft/gpl.html
15 #include "sun7i-a20.dtsi"
16 #include "sunxi-common-regulators.dtsi"
18 #include <dt-bindings/gpio/gpio.h>
19 #include <dt-bindings/input/input.h>
20 #include <dt-bindings/interrupt-controller/irq.h>
21 #include <dt-bindings/pinctrl/sun4i-a10.h>
24 model = "Olimex A20-Olinuxino Micro";
25 compatible = "olimex,a20-olinuxino-micro", "allwinner,sun7i-a20";
37 pinctrl-names = "default";
38 pinctrl-0 = <&spi1_pins_a>;
43 pinctrl-names = "default";
44 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
45 vmmc-supply = <®_vcc3v3>;
47 cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
53 pinctrl-names = "default";
54 pinctrl-0 = <&mmc3_pins_a>, <&mmc3_cd_pin_olinuxinom>;
55 vmmc-supply = <®_vcc3v3>;
57 cd-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */
62 usbphy: phy@01c13400 {
63 usb1_vbus-supply = <®_usb1_vbus>;
64 usb2_vbus-supply = <®_usb2_vbus>;
77 pinctrl-names = "default";
78 pinctrl-0 = <&spi2_pins_a>;
83 target-supply = <®_ahci_5v>;
96 mmc3_cd_pin_olinuxinom: mmc3_cd_pin@0 {
97 allwinner,pins = "PH11";
98 allwinner,function = "gpio_in";
99 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
100 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
103 led_pins_olinuxino: led_pins@0 {
104 allwinner,pins = "PH2";
105 allwinner,function = "gpio_out";
106 allwinner,drive = <SUN4I_PINCTRL_20_MA>;
107 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
111 lradc: lradc@01c22800 {
112 vref-supply = <®_vcc3v0>;
117 linux,code = <KEY_VOLUMEUP>;
123 label = "Volume Down";
124 linux,code = <KEY_VOLUMEDOWN>;
131 linux,code = <KEY_MENU>;
138 linux,code = <KEY_SEARCH>;
145 linux,code = <KEY_HOMEPAGE>;
152 linux,code = <KEY_ESC>;
159 linux,code = <KEY_ENTER>;
165 uart0: serial@01c28000 {
166 pinctrl-names = "default";
167 pinctrl-0 = <&uart0_pins_a>;
171 uart6: serial@01c29800 {
172 pinctrl-names = "default";
173 pinctrl-0 = <&uart6_pins_a>;
177 uart7: serial@01c29c00 {
178 pinctrl-names = "default";
179 pinctrl-0 = <&uart7_pins_a>;
184 pinctrl-names = "default";
185 pinctrl-0 = <&i2c0_pins_a>;
189 compatible = "x-powers,axp209";
191 interrupt-parent = <&nmi_intc>;
192 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
194 interrupt-controller;
195 #interrupt-cells = <1>;
200 pinctrl-names = "default";
201 pinctrl-0 = <&i2c1_pins_a>;
206 pinctrl-names = "default";
207 pinctrl-0 = <&i2c2_pins_a>;
211 gmac: ethernet@01c50000 {
212 pinctrl-names = "default";
213 pinctrl-0 = <&gmac_pins_mii_a>;
218 phy1: ethernet-phy@1 {
225 compatible = "gpio-leds";
226 pinctrl-names = "default";
227 pinctrl-0 = <&led_pins_olinuxino>;
230 label = "a20-olinuxino-micro:green:usr";
231 gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>;
232 default-state = "on";
236 reg_ahci_5v: ahci-5v {
240 reg_usb1_vbus: usb1-vbus {
244 reg_usb2_vbus: usb2-vbus {