blob: 9d669cdf031d1aa1ea78c2d8a7c23b713dff3f98 [file] [log] [blame]
Maxime Riparde476ac82013-07-17 10:12:16 +02001/*
2 * Copyright 2013 Maxime Ripard
3 *
4 * Maxime Ripard <maxime.ripard@free-electrons.com>
5 *
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:
9 *
10 * http://www.opensource.org/licenses/gpl-license.html
11 * http://www.gnu.org/copyleft/gpl.html
12 */
13
14/dts-v1/;
15/include/ "sun7i-a20.dtsi"
Hans de Goede902febf2014-03-01 20:26:22 +010016/include/ "sunxi-common-regulators.dtsi"
Maxime Riparde476ac82013-07-17 10:12:16 +020017
18/ {
19 model = "Olimex A20-Olinuxino Micro";
20 compatible = "olimex,a20-olinuxino-micro", "allwinner,sun7i-a20";
21
Maxime Ripardd5cf89c2014-02-22 22:35:59 +010022 aliases {
23 spi0 = &spi1;
24 spi1 = &spi2;
25 };
26
Maxime Riparde476ac82013-07-17 10:12:16 +020027 soc@01c00000 {
Maxime Ripardd5cf89c2014-02-22 22:35:59 +010028 spi1: spi@01c06000 {
29 pinctrl-names = "default";
30 pinctrl-0 = <&spi1_pins_a>;
31 status = "okay";
32 };
33
Hans de Goedec6211832014-05-02 17:57:28 +020034 mmc0: mmc@01c0f000 {
35 pinctrl-names = "default";
36 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
Hans de Goede0ed9eab2014-05-11 09:46:57 +020037 vmmc-supply = <&reg_vcc3v3>;
Hans de Goedec6211832014-05-02 17:57:28 +020038 bus-width = <4>;
39 cd-gpios = <&pio 7 1 0>; /* PH1 */
40 cd-inverted;
41 status = "okay";
42 };
43
44 mmc3: mmc@01c12000 {
45 pinctrl-names = "default";
46 pinctrl-0 = <&mmc3_pins_a>, <&mmc3_cd_pin_olinuxinom>;
Hans de Goede0ed9eab2014-05-11 09:46:57 +020047 vmmc-supply = <&reg_vcc3v3>;
Hans de Goedec6211832014-05-02 17:57:28 +020048 bus-width = <4>;
49 cd-gpios = <&pio 7 11 0>; /* PH11 */
50 cd-inverted;
51 status = "okay";
52 };
53
Zalan Blenessye2f02652014-03-01 20:26:36 +010054 usbphy: phy@01c13400 {
55 usb1_vbus-supply = <&reg_usb1_vbus>;
56 usb2_vbus-supply = <&reg_usb2_vbus>;
57 status = "okay";
58 };
59
60 ehci0: usb@01c14000 {
61 status = "okay";
62 };
63
64 ohci0: usb@01c14400 {
65 status = "okay";
66 };
67
Maxime Ripardd5cf89c2014-02-22 22:35:59 +010068 spi2: spi@01c17000 {
69 pinctrl-names = "default";
70 pinctrl-0 = <&spi2_pins_a>;
71 status = "okay";
72 };
73
Hans de Goede902febf2014-03-01 20:26:22 +010074 ahci: sata@01c18000 {
75 target-supply = <&reg_ahci_5v>;
76 status = "okay";
77 };
78
Zalan Blenessye2f02652014-03-01 20:26:36 +010079 ehci1: usb@01c1c000 {
80 status = "okay";
81 };
82
83 ohci1: usb@01c1c400 {
84 status = "okay";
85 };
86
Maxime Ripard6e487da2013-07-25 00:12:45 +020087 pinctrl@01c20800 {
Hans de Goedec6211832014-05-02 17:57:28 +020088 mmc3_cd_pin_olinuxinom: mmc3_cd_pin@0 {
89 allwinner,pins = "PH11";
90 allwinner,function = "gpio_in";
91 allwinner,drive = <0>;
92 allwinner,pull = <1>;
93 };
94
Maxime Ripard6e487da2013-07-25 00:12:45 +020095 led_pins_olinuxino: led_pins@0 {
96 allwinner,pins = "PH2";
97 allwinner,function = "gpio_out";
98 allwinner,drive = <1>;
99 allwinner,pull = <0>;
100 };
101 };
102
Maxime Riparde476ac82013-07-17 10:12:16 +0200103 uart0: serial@01c28000 {
Maxime Ripard2fff6ac2013-07-25 00:10:53 +0200104 pinctrl-names = "default";
105 pinctrl-0 = <&uart0_pins_a>;
Maxime Riparde476ac82013-07-17 10:12:16 +0200106 status = "okay";
107 };
108
109 uart6: serial@01c29800 {
Maxime Ripard2fff6ac2013-07-25 00:10:53 +0200110 pinctrl-names = "default";
111 pinctrl-0 = <&uart6_pins_a>;
Maxime Riparde476ac82013-07-17 10:12:16 +0200112 status = "okay";
113 };
114
115 uart7: serial@01c29c00 {
Maxime Ripard2fff6ac2013-07-25 00:10:53 +0200116 pinctrl-names = "default";
117 pinctrl-0 = <&uart7_pins_a>;
Maxime Riparde476ac82013-07-17 10:12:16 +0200118 status = "okay";
119 };
Maxime Ripardd6d3f9e2013-08-31 23:14:19 +0200120
121 i2c0: i2c@01c2ac00 {
122 pinctrl-names = "default";
123 pinctrl-0 = <&i2c0_pins_a>;
124 status = "okay";
Carlo Caioneec0c9332014-06-30 23:57:53 +0200125
126 axp209: pmic@34 {
127 compatible = "x-powers,axp209";
128 reg = <0x34>;
129 interrupt-parent = <&nmi_intc>;
130 interrupts = <0 8>;
131
132 interrupt-controller;
133 #interrupt-cells = <1>;
134 };
Maxime Ripardd6d3f9e2013-08-31 23:14:19 +0200135 };
136
137 i2c1: i2c@01c2b000 {
138 pinctrl-names = "default";
139 pinctrl-0 = <&i2c1_pins_a>;
140 status = "okay";
141 };
142
143 i2c2: i2c@01c2b400 {
144 pinctrl-names = "default";
145 pinctrl-0 = <&i2c2_pins_a>;
146 status = "okay";
147 };
Chen-Yu Tsai71643182014-02-10 18:35:53 +0800148
149 gmac: ethernet@01c50000 {
150 pinctrl-names = "default";
151 pinctrl-0 = <&gmac_pins_mii_a>;
152 phy = <&phy1>;
153 phy-mode = "mii";
154 status = "okay";
155
156 phy1: ethernet-phy@1 {
157 reg = <1>;
158 };
159 };
Maxime Riparde476ac82013-07-17 10:12:16 +0200160 };
Maxime Ripard6e487da2013-07-25 00:12:45 +0200161
162 leds {
163 compatible = "gpio-leds";
164 pinctrl-names = "default";
165 pinctrl-0 = <&led_pins_olinuxino>;
166
167 green {
168 label = "a20-olinuxino-micro:green:usr";
169 gpios = <&pio 7 2 0>;
170 default-state = "on";
171 };
172 };
Hans de Goede902febf2014-03-01 20:26:22 +0100173
174 reg_ahci_5v: ahci-5v {
175 status = "okay";
176 };
Zalan Blenessye2f02652014-03-01 20:26:36 +0100177
178 reg_usb1_vbus: usb1-vbus {
179 status = "okay";
180 };
181
182 reg_usb2_vbus: usb2-vbus {
183 status = "okay";
184 };
Maxime Riparde476ac82013-07-17 10:12:16 +0200185};