Merge remote-tracking branches 'asoc/topic/adau1977', 'asoc/topic/ak4642', 'asoc...
[sfrench/cifs-2.6.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
127                 i2c1: i2c@01c2b000 {
128                         pinctrl-names = "default";
129                         pinctrl-0 = <&i2c1_pins_a>;
130                         status = "okay";
131                 };
132
133                 i2c2: i2c@01c2b400 {
134                         pinctrl-names = "default";
135                         pinctrl-0 = <&i2c2_pins_a>;
136                         status = "okay";
137                 };
138
139                 gmac: ethernet@01c50000 {
140                         pinctrl-names = "default";
141                         pinctrl-0 = <&gmac_pins_mii_a>;
142                         phy = <&phy1>;
143                         phy-mode = "mii";
144                         status = "okay";
145
146                         phy1: ethernet-phy@1 {
147                                 reg = <1>;
148                         };
149                 };
150         };
151
152         leds {
153                 compatible = "gpio-leds";
154                 pinctrl-names = "default";
155                 pinctrl-0 = <&led_pins_olinuxino>;
156
157                 green {
158                         label = "a20-olinuxino-micro:green:usr";
159                         gpios = <&pio 7 2 0>;
160                         default-state = "on";
161                 };
162         };
163
164         reg_ahci_5v: ahci-5v {
165                 status = "okay";
166         };
167
168         reg_usb1_vbus: usb1-vbus {
169                 status = "okay";
170         };
171
172         reg_usb2_vbus: usb2-vbus {
173                 status = "okay";
174         };
175 };