]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
ARM: sunxi: dt: Fix aliases
[mirror_ubuntu-bionic-kernel.git] / arch / arm / boot / dts / sun7i-a20-olinuxino-micro.dts
CommitLineData
e476ac8b
MR
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"
902febf9 16/include/ "sunxi-common-regulators.dtsi"
e476ac8b
MR
17
18/ {
19 model = "Olimex A20-Olinuxino Micro";
20 compatible = "olimex,a20-olinuxino-micro", "allwinner,sun7i-a20";
21
d5cf89c9 22 aliases {
117a2cc3
MR
23 serial0 = &uart0;
24 serial1 = &uart6;
25 serial2 = &uart7;
d5cf89c9
MR
26 spi0 = &spi1;
27 spi1 = &spi2;
28 };
29
e476ac8b 30 soc@01c00000 {
d5cf89c9
MR
31 spi1: spi@01c06000 {
32 pinctrl-names = "default";
33 pinctrl-0 = <&spi1_pins_a>;
34 status = "okay";
35 };
36
c621183c
HG
37 mmc0: mmc@01c0f000 {
38 pinctrl-names = "default";
39 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
0ed9eab3 40 vmmc-supply = <&reg_vcc3v3>;
c621183c
HG
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>;
0ed9eab3 50 vmmc-supply = <&reg_vcc3v3>;
c621183c
HG
51 bus-width = <4>;
52 cd-gpios = <&pio 7 11 0>; /* PH11 */
53 cd-inverted;
54 status = "okay";
55 };
56
e2f02651
ZB
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
d5cf89c9
MR
71 spi2: spi@01c17000 {
72 pinctrl-names = "default";
73 pinctrl-0 = <&spi2_pins_a>;
74 status = "okay";
75 };
76
902febf9
HG
77 ahci: sata@01c18000 {
78 target-supply = <&reg_ahci_5v>;
79 status = "okay";
80 };
81
e2f02651
ZB
82 ehci1: usb@01c1c000 {
83 status = "okay";
84 };
85
86 ohci1: usb@01c1c400 {
87 status = "okay";
88 };
89
6e487da7 90 pinctrl@01c20800 {
c621183c
HG
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
6e487da7
MR
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
e476ac8b 106 uart0: serial@01c28000 {
2fff6ac0
MR
107 pinctrl-names = "default";
108 pinctrl-0 = <&uart0_pins_a>;
e476ac8b
MR
109 status = "okay";
110 };
111
112 uart6: serial@01c29800 {
2fff6ac0
MR
113 pinctrl-names = "default";
114 pinctrl-0 = <&uart6_pins_a>;
e476ac8b
MR
115 status = "okay";
116 };
117
118 uart7: serial@01c29c00 {
2fff6ac0
MR
119 pinctrl-names = "default";
120 pinctrl-0 = <&uart7_pins_a>;
e476ac8b
MR
121 status = "okay";
122 };
d6d3f9e6
MR
123
124 i2c0: i2c@01c2ac00 {
125 pinctrl-names = "default";
126 pinctrl-0 = <&i2c0_pins_a>;
127 status = "okay";
ec0c933d
CC
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 };
d6d3f9e6
MR
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 };
71643182
CYT
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 };
e476ac8b 163 };
6e487da7
MR
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 };
902febf9
HG
176
177 reg_ahci_5v: ahci-5v {
178 status = "okay";
179 };
e2f02651
ZB
180
181 reg_usb1_vbus: usb1-vbus {
182 status = "okay";
183 };
184
185 reg_usb2_vbus: usb2-vbus {
186 status = "okay";
187 };
e476ac8b 188};