Merge tag 'v3.19-rc7' into x86/asm, to refresh the branch before pulling in new changes
[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                 serial0 = &uart0;
24                 serial1 = &uart6;
25                 serial2 = &uart7;
26                 spi0 = &spi1;
27                 spi1 = &spi2;
28         };
29
30         soc@01c00000 {
31                 spi1: spi@01c06000 {
32                         pinctrl-names = "default";
33                         pinctrl-0 = <&spi1_pins_a>;
34                         status = "okay";
35                 };
36
37                 mmc0: mmc@01c0f000 {
38                         pinctrl-names = "default";
39                         pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
40                         vmmc-supply = <&reg_vcc3v3>;
41                         bus-width = <4>;
42                         cd-gpios = <&pio 7 1 0>; /* PH1 */
43                         cd-inverted;
44                         status = "okay";
45                 };
46
47                 mmc3: mmc@01c12000 {
48                         pinctrl-names = "default";
49                         pinctrl-0 = <&mmc3_pins_a>, <&mmc3_cd_pin_olinuxinom>;
50                         vmmc-supply = <&reg_vcc3v3>;
51                         bus-width = <4>;
52                         cd-gpios = <&pio 7 11 0>; /* PH11 */
53                         cd-inverted;
54                         status = "okay";
55                 };
56
57                 usbphy: phy@01c13400 {
58                         usb1_vbus-supply = <&reg_usb1_vbus>;
59                         usb2_vbus-supply = <&reg_usb2_vbus>;
60                         status = "okay";
61                 };
62
63                 ehci0: usb@01c14000 {
64                         status = "okay";
65                 };
66
67                 ohci0: usb@01c14400 {
68                         status = "okay";
69                 };
70
71                 spi2: spi@01c17000 {
72                         pinctrl-names = "default";
73                         pinctrl-0 = <&spi2_pins_a>;
74                         status = "okay";
75                 };
76
77                 ahci: sata@01c18000 {
78                         target-supply = <&reg_ahci_5v>;
79                         status = "okay";
80                 };
81
82                 ehci1: usb@01c1c000 {
83                         status = "okay";
84                 };
85
86                 ohci1: usb@01c1c400 {
87                         status = "okay";
88                 };
89
90                 pinctrl@01c20800 {
91                         mmc3_cd_pin_olinuxinom: mmc3_cd_pin@0 {
92                                 allwinner,pins = "PH11";
93                                 allwinner,function = "gpio_in";
94                                 allwinner,drive = <0>;
95                                 allwinner,pull = <1>;
96                         };
97
98                         led_pins_olinuxino: led_pins@0 {
99                                 allwinner,pins = "PH2";
100                                 allwinner,function = "gpio_out";
101                                 allwinner,drive = <1>;
102                                 allwinner,pull = <0>;
103                         };
104                 };
105
106                 uart0: serial@01c28000 {
107                         pinctrl-names = "default";
108                         pinctrl-0 = <&uart0_pins_a>;
109                         status = "okay";
110                 };
111
112                 uart6: serial@01c29800 {
113                         pinctrl-names = "default";
114                         pinctrl-0 = <&uart6_pins_a>;
115                         status = "okay";
116                 };
117
118                 uart7: serial@01c29c00 {
119                         pinctrl-names = "default";
120                         pinctrl-0 = <&uart7_pins_a>;
121                         status = "okay";
122                 };
123
124                 i2c0: i2c@01c2ac00 {
125                         pinctrl-names = "default";
126                         pinctrl-0 = <&i2c0_pins_a>;
127                         status = "okay";
128
129                         axp209: pmic@34 {
130                                 compatible = "x-powers,axp209";
131                                 reg = <0x34>;
132                                 interrupt-parent = <&nmi_intc>;
133                                 interrupts = <0 8>;
134
135                                 interrupt-controller;
136                                 #interrupt-cells = <1>;
137                         };
138                 };
139
140                 i2c1: i2c@01c2b000 {
141                         pinctrl-names = "default";
142                         pinctrl-0 = <&i2c1_pins_a>;
143                         status = "okay";
144                 };
145
146                 i2c2: i2c@01c2b400 {
147                         pinctrl-names = "default";
148                         pinctrl-0 = <&i2c2_pins_a>;
149                         status = "okay";
150                 };
151
152                 gmac: ethernet@01c50000 {
153                         pinctrl-names = "default";
154                         pinctrl-0 = <&gmac_pins_mii_a>;
155                         phy = <&phy1>;
156                         phy-mode = "mii";
157                         status = "okay";
158
159                         phy1: ethernet-phy@1 {
160                                 reg = <1>;
161                         };
162                 };
163         };
164
165         leds {
166                 compatible = "gpio-leds";
167                 pinctrl-names = "default";
168                 pinctrl-0 = <&led_pins_olinuxino>;
169
170                 green {
171                         label = "a20-olinuxino-micro:green:usr";
172                         gpios = <&pio 7 2 0>;
173                         default-state = "on";
174                 };
175         };
176
177         reg_ahci_5v: ahci-5v {
178                 status = "okay";
179         };
180
181         reg_usb1_vbus: usb1-vbus {
182                 status = "okay";
183         };
184
185         reg_usb2_vbus: usb2-vbus {
186                 status = "okay";
187         };
188 };