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>
22 model = "Olimex A20-Olinuxino Micro";
23 compatible = "olimex,a20-olinuxino-micro", "allwinner,sun7i-a20";
32 pinctrl-names = "default";
33 pinctrl-0 = <&spi1_pins_a>;
38 pinctrl-names = "default";
39 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
40 vmmc-supply = <®_vcc3v3>;
42 cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
48 pinctrl-names = "default";
49 pinctrl-0 = <&mmc3_pins_a>, <&mmc3_cd_pin_olinuxinom>;
50 vmmc-supply = <®_vcc3v3>;
52 cd-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */
57 usbphy: phy@01c13400 {
58 usb1_vbus-supply = <®_usb1_vbus>;
59 usb2_vbus-supply = <®_usb2_vbus>;
72 pinctrl-names = "default";
73 pinctrl-0 = <&spi2_pins_a>;
78 target-supply = <®_ahci_5v>;
91 mmc3_cd_pin_olinuxinom: mmc3_cd_pin@0 {
92 allwinner,pins = "PH11";
93 allwinner,function = "gpio_in";
94 allwinner,drive = <0>;
98 led_pins_olinuxino: led_pins@0 {
99 allwinner,pins = "PH2";
100 allwinner,function = "gpio_out";
101 allwinner,drive = <1>;
102 allwinner,pull = <0>;
106 lradc: lradc@01c22800 {
107 vref-supply = <®_vcc3v0>;
112 linux,code = <KEY_VOLUMEUP>;
118 label = "Volume Down";
119 linux,code = <KEY_VOLUMEDOWN>;
126 linux,code = <KEY_MENU>;
133 linux,code = <KEY_SEARCH>;
140 linux,code = <KEY_HOMEPAGE>;
147 linux,code = <KEY_ESC>;
154 linux,code = <KEY_ENTER>;
160 uart0: serial@01c28000 {
161 pinctrl-names = "default";
162 pinctrl-0 = <&uart0_pins_a>;
166 uart6: serial@01c29800 {
167 pinctrl-names = "default";
168 pinctrl-0 = <&uart6_pins_a>;
172 uart7: serial@01c29c00 {
173 pinctrl-names = "default";
174 pinctrl-0 = <&uart7_pins_a>;
179 pinctrl-names = "default";
180 pinctrl-0 = <&i2c0_pins_a>;
184 compatible = "x-powers,axp209";
186 interrupt-parent = <&nmi_intc>;
189 interrupt-controller;
190 #interrupt-cells = <1>;
195 pinctrl-names = "default";
196 pinctrl-0 = <&i2c1_pins_a>;
201 pinctrl-names = "default";
202 pinctrl-0 = <&i2c2_pins_a>;
206 gmac: ethernet@01c50000 {
207 pinctrl-names = "default";
208 pinctrl-0 = <&gmac_pins_mii_a>;
213 phy1: ethernet-phy@1 {
220 compatible = "gpio-leds";
221 pinctrl-names = "default";
222 pinctrl-0 = <&led_pins_olinuxino>;
225 label = "a20-olinuxino-micro:green:usr";
226 gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>;
227 default-state = "on";
231 reg_ahci_5v: ahci-5v {
235 reg_usb1_vbus: usb1-vbus {
239 reg_usb2_vbus: usb2-vbus {