]>
Commit | Line | Data |
---|---|---|
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 MR |
22 | aliases { |
23 | spi0 = &spi1; | |
24 | spi1 = &spi2; | |
25 | }; | |
26 | ||
e476ac8b | 27 | soc@01c00000 { |
d5cf89c9 MR |
28 | spi1: spi@01c06000 { |
29 | pinctrl-names = "default"; | |
30 | pinctrl-0 = <&spi1_pins_a>; | |
31 | status = "okay"; | |
32 | }; | |
33 | ||
c621183c HG |
34 | mmc0: mmc@01c0f000 { |
35 | pinctrl-names = "default"; | |
36 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; | |
37 | bus-width = <4>; | |
38 | cd-gpios = <&pio 7 1 0>; /* PH1 */ | |
39 | cd-inverted; | |
40 | status = "okay"; | |
41 | }; | |
42 | ||
43 | mmc3: mmc@01c12000 { | |
44 | pinctrl-names = "default"; | |
45 | pinctrl-0 = <&mmc3_pins_a>, <&mmc3_cd_pin_olinuxinom>; | |
46 | bus-width = <4>; | |
47 | cd-gpios = <&pio 7 11 0>; /* PH11 */ | |
48 | cd-inverted; | |
49 | status = "okay"; | |
50 | }; | |
51 | ||
e2f02651 ZB |
52 | usbphy: phy@01c13400 { |
53 | usb1_vbus-supply = <®_usb1_vbus>; | |
54 | usb2_vbus-supply = <®_usb2_vbus>; | |
55 | status = "okay"; | |
56 | }; | |
57 | ||
58 | ehci0: usb@01c14000 { | |
59 | status = "okay"; | |
60 | }; | |
61 | ||
62 | ohci0: usb@01c14400 { | |
63 | status = "okay"; | |
64 | }; | |
65 | ||
d5cf89c9 MR |
66 | spi2: spi@01c17000 { |
67 | pinctrl-names = "default"; | |
68 | pinctrl-0 = <&spi2_pins_a>; | |
69 | status = "okay"; | |
70 | }; | |
71 | ||
902febf9 HG |
72 | ahci: sata@01c18000 { |
73 | target-supply = <®_ahci_5v>; | |
74 | status = "okay"; | |
75 | }; | |
76 | ||
e2f02651 ZB |
77 | ehci1: usb@01c1c000 { |
78 | status = "okay"; | |
79 | }; | |
80 | ||
81 | ohci1: usb@01c1c400 { | |
82 | status = "okay"; | |
83 | }; | |
84 | ||
6e487da7 | 85 | pinctrl@01c20800 { |
c621183c HG |
86 | mmc3_cd_pin_olinuxinom: mmc3_cd_pin@0 { |
87 | allwinner,pins = "PH11"; | |
88 | allwinner,function = "gpio_in"; | |
89 | allwinner,drive = <0>; | |
90 | allwinner,pull = <1>; | |
91 | }; | |
92 | ||
6e487da7 MR |
93 | led_pins_olinuxino: led_pins@0 { |
94 | allwinner,pins = "PH2"; | |
95 | allwinner,function = "gpio_out"; | |
96 | allwinner,drive = <1>; | |
97 | allwinner,pull = <0>; | |
98 | }; | |
99 | }; | |
100 | ||
e476ac8b | 101 | uart0: serial@01c28000 { |
2fff6ac0 MR |
102 | pinctrl-names = "default"; |
103 | pinctrl-0 = <&uart0_pins_a>; | |
e476ac8b MR |
104 | status = "okay"; |
105 | }; | |
106 | ||
107 | uart6: serial@01c29800 { | |
2fff6ac0 MR |
108 | pinctrl-names = "default"; |
109 | pinctrl-0 = <&uart6_pins_a>; | |
e476ac8b MR |
110 | status = "okay"; |
111 | }; | |
112 | ||
113 | uart7: serial@01c29c00 { | |
2fff6ac0 MR |
114 | pinctrl-names = "default"; |
115 | pinctrl-0 = <&uart7_pins_a>; | |
e476ac8b MR |
116 | status = "okay"; |
117 | }; | |
d6d3f9e6 MR |
118 | |
119 | i2c0: i2c@01c2ac00 { | |
120 | pinctrl-names = "default"; | |
121 | pinctrl-0 = <&i2c0_pins_a>; | |
122 | status = "okay"; | |
123 | }; | |
124 | ||
125 | i2c1: i2c@01c2b000 { | |
126 | pinctrl-names = "default"; | |
127 | pinctrl-0 = <&i2c1_pins_a>; | |
128 | status = "okay"; | |
129 | }; | |
130 | ||
131 | i2c2: i2c@01c2b400 { | |
132 | pinctrl-names = "default"; | |
133 | pinctrl-0 = <&i2c2_pins_a>; | |
134 | status = "okay"; | |
135 | }; | |
71643182 CYT |
136 | |
137 | gmac: ethernet@01c50000 { | |
138 | pinctrl-names = "default"; | |
139 | pinctrl-0 = <&gmac_pins_mii_a>; | |
140 | phy = <&phy1>; | |
141 | phy-mode = "mii"; | |
142 | status = "okay"; | |
143 | ||
144 | phy1: ethernet-phy@1 { | |
145 | reg = <1>; | |
146 | }; | |
147 | }; | |
e476ac8b | 148 | }; |
6e487da7 MR |
149 | |
150 | leds { | |
151 | compatible = "gpio-leds"; | |
152 | pinctrl-names = "default"; | |
153 | pinctrl-0 = <&led_pins_olinuxino>; | |
154 | ||
155 | green { | |
156 | label = "a20-olinuxino-micro:green:usr"; | |
157 | gpios = <&pio 7 2 0>; | |
158 | default-state = "on"; | |
159 | }; | |
160 | }; | |
902febf9 HG |
161 | |
162 | reg_ahci_5v: ahci-5v { | |
163 | status = "okay"; | |
164 | }; | |
e2f02651 ZB |
165 | |
166 | reg_usb1_vbus: usb1-vbus { | |
167 | status = "okay"; | |
168 | }; | |
169 | ||
170 | reg_usb2_vbus: usb2-vbus { | |
171 | status = "okay"; | |
172 | }; | |
e476ac8b | 173 | }; |