Merge commit 'v3.17' into next
[linux-drm-fsl-dcu.git] / arch / arm / boot / dts / sun7i-a20-olinuxino-micro.dts
1 /*
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"
16 /include/ "sunxi-common-regulators.dtsi"
17
18 / {
19         model = "Olimex A20-Olinuxino Micro";
20         compatible = "olimex,a20-olinuxino-micro", "allwinner,sun7i-a20";
21
22         aliases {
23                 spi0 = &spi1;
24                 spi1 = &spi2;
25         };
26
27         soc@01c00000 {
28                 spi1: spi@01c06000 {
29                         pinctrl-names = "default";
30                         pinctrl-0 = <&spi1_pins_a>;
31                         status = "okay";
32                 };
33
34                 mmc0: mmc@01c0f000 {
35                         pinctrl-names = "default";
36                         pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
37                         vmmc-supply = <&reg_vcc3v3>;
38                         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>;
47                         vmmc-supply = <&reg_vcc3v3>;
48                         bus-width = <4>;
49                         cd-gpios = <&pio 7 11 0>; /* PH11 */
50                         cd-inverted;
51                         status = "okay";
52                 };
53
54                 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
68                 spi2: spi@01c17000 {
69                         pinctrl-names = "default";
70                         pinctrl-0 = <&spi2_pins_a>;
71                         status = "okay";
72                 };
73
74                 ahci: sata@01c18000 {
75                         target-supply = <&reg_ahci_5v>;
76                         status = "okay";
77                 };
78
79                 ehci1: usb@01c1c000 {
80                         status = "okay";
81                 };
82
83                 ohci1: usb@01c1c400 {
84                         status = "okay";
85                 };
86
87                 pinctrl@01c20800 {
88                         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
95                         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
103                 uart0: serial@01c28000 {
104                         pinctrl-names = "default";
105                         pinctrl-0 = <&uart0_pins_a>;
106                         status = "okay";
107                 };
108
109                 uart6: serial@01c29800 {
110                         pinctrl-names = "default";
111                         pinctrl-0 = <&uart6_pins_a>;
112                         status = "okay";
113                 };
114
115                 uart7: serial@01c29c00 {
116                         pinctrl-names = "default";
117                         pinctrl-0 = <&uart7_pins_a>;
118                         status = "okay";
119                 };
120
121                 i2c0: i2c@01c2ac00 {
122                         pinctrl-names = "default";
123                         pinctrl-0 = <&i2c0_pins_a>;
124                         status = "okay";
125
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                         };
135                 };
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                 };
148
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                 };
160         };
161
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         };
173
174         reg_ahci_5v: ahci-5v {
175                 status = "okay";
176         };
177
178         reg_usb1_vbus: usb1-vbus {
179                 status = "okay";
180         };
181
182         reg_usb2_vbus: usb2-vbus {
183                 status = "okay";
184         };
185 };