00ac016a42628883a31fb6af90cbe1f98d0e1713
[openwrt/openwrt.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / danube_arcadyan_arv752dpw22.dts
1 #include "danube.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 compatible = "arcadyan,arv752dpw22", "lantiq,xway", "lantiq,danube";
7 model = "Arcor 803";
8
9 chosen {
10 bootargs = "console=ttyLTQ0,115200";
11 };
12
13 aliases {
14 led-boot = &power_red;
15 led-failsafe = &power_blue;
16 led-running = &power_red;
17 led-upgrade = &power_red;
18
19 led-dsl = &internet_red;
20 led-wifi = &wifi;
21 };
22
23 memory@0 {
24 device_type = "memory";
25 reg = <0x0 0x4000000>;
26 };
27
28 keys {
29 compatible = "gpio-keys-polled";
30 poll-interval = <100>;
31
32 wps {
33 label = "wps";
34 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_WPS_BUTTON>;
36 };
37 restart {
38 label = "restart";
39 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_POWER>;
41 };
42 dsl {
43 label = "dsl";
44 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
45 linux,code = <BTN_0>;
46 };
47 reset {
48 label = "reset";
49 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_RESTART>;
51 };
52 };
53
54 leds {
55 compatible = "gpio-leds";
56 power_blue: power1 {
57 label = "blue:power";
58 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
59 };
60 internet_red: internet {
61 label = "red:internet";
62 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
63 };
64 message {
65 label = "red:message";
66 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
67 };
68 power_red: power {
69 label = "red:power";
70 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
71 default-state = "keep";
72 };
73 voice1 {
74 label = "red:voice";
75 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
76 };
77 umts: umts {
78 label = "red:umts";
79 gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
80 trigger-sources = <&ehci_port1>,
81 <&ehci_port2>, <&uhci_port2>;
82 linux,default-trigger = "usbport";
83 };
84 wifi: wifi {
85 label = "red:wifi";
86 gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
87 };
88 fxs1 {
89 label = "green:tae-n";
90 gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
91 };
92 fxs2 {
93 label = "green:tae-u";
94 gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
95 };
96 fxo {
97 label = "green:isdn";
98 gpios = <&gpiomm 7 GPIO_ACTIVE_LOW>;
99 };
100 internet2 {
101 label = "blue:internet";
102 gpios = <&gpiomm 8 GPIO_ACTIVE_LOW>;
103 };
104 voice2 {
105 label = "blue:voice";
106 gpios = <&gpiomm 9 GPIO_ACTIVE_LOW>;
107 };
108 eth1 {
109 label = "green:lan1";
110 gpios = <&gpiomm 11 GPIO_ACTIVE_LOW>;
111 };
112 eth2 {
113 label = "green:lan2";
114 gpios = <&gpiomm 12 GPIO_ACTIVE_LOW>;
115 };
116 eth3 {
117 label = "green:lan3";
118 gpios = <&gpiomm 13 GPIO_ACTIVE_LOW>;
119 };
120 eth4 {
121 label = "green:lan4";
122 gpios = <&gpiomm 14 GPIO_ACTIVE_LOW>;
123 };
124 };
125
126 usb_vbus: regulator-usb-vbus {
127 compatible = "regulator-fixed";
128
129 regulator-name = "USB_VBUS";
130
131 regulator-min-microvolt = <5000000>;
132 regulator-max-microvolt = <5000000>;
133
134 gpio = <&gpiomm 0 GPIO_ACTIVE_HIGH>;
135 enable-active-high;
136 };
137 };
138
139 &gpio {
140 pinctrl-names = "default";
141 pinctrl-0 = <&state_default>;
142
143 state_default: pinmux {
144 ebu {
145 lantiq,groups = "ebu cs1";
146 lantiq,function = "ebu";
147 };
148 exin {
149 lantiq,groups = "exin1";
150 lantiq,function = "exin";
151 lantiq,pull = <2>;
152 lantiq,output = <0>;
153 };
154 pci_rst {
155 lantiq,pins = "io21";
156 lantiq,open-drain = <1>;
157 lantiq,output = <1>;
158 };
159 leds {
160 lantiq,pins = "io3", "io5", "io6", "io8";
161 lantiq,open-drain = <1>;
162 lantiq,output = <1>;
163 };
164 buttons {
165 lantiq,pins = "io11", "io12", "io13", "io28";
166 lantiq,pull = <2>;
167 lantiq,output = <0>;
168 };
169 };
170 };
171
172 &gsw {
173 phy-mode = "mii";
174 mtd-mac-address = <&boardconfig 0x16>;
175 };
176
177 &localbus {
178 flash@0 {
179 compatible = "lantiq,nor";
180 bank-width = <2>;
181 reg = <0 0x0 0x800000>;
182
183 partitions {
184 compatible = "fixed-partitions";
185 #address-cells = <1>;
186 #size-cells = <1>;
187
188 partition@0 {
189 label = "uboot";
190 reg = <0x00000 0x30000>;
191 read-only;
192 };
193
194 partition@10000 {
195 label = "u-boot-env";
196 reg = <0x30000 0x10000>;
197 read-only;
198 };
199
200 partition@20000 {
201 label = "firmware";
202 reg = <0x40000 0x7b0000>;
203 };
204
205 boardconfig: partition@7f0000 {
206 label = "board_config";
207 reg = <0x7f0000 0x10000>;
208 read-only;
209 };
210 };
211 };
212
213 gpiomm: gpio@1 {
214 compatible = "lantiq,gpio-mm";
215 reg = <1 0x0 0x10 >;
216 #address-cells = <1>;
217 #size-cells = <1>;
218 #gpio-cells = <2>;
219 gpio-controller;
220 lantiq,shadow = <3>;
221 };
222 };
223
224 &pci0 {
225 status = "okay";
226
227 pinctrl-0 = <&pci_gnt1_pins>, <&pci_req1_pins>;
228 pinctrl-names = "default";
229
230 lantiq,external-clock;
231 interrupt-map = <
232 0x7000 0 0 1 &icu0 30
233 0x7800 0 0 1 &icu0 135
234 0x7800 0 0 2 &icu0 135
235 0x7800 0 0 3 &icu0 135
236 >;
237 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
238 req-mask = <0x3>;
239
240 wifi@1814,3592 {
241 compatible = "pci1814,3592";
242 reg = <0x7000 0 0 0 0>;
243 ralink,mtd-eeprom = <&boardconfig 0x410>;
244 ralink,mtd-eeprom-swap;
245 mtd-mac-address = <&boardconfig 0x16>;
246 };
247
248 usb@0f,0 {
249 #address-cells = <1>;
250 #size-cells = <0>;
251 compatible = "pci1106,3038";
252 reg = <0x7800 0 0 0 0>; /* 0000:00:0f.0: UHCI Host Controller */
253
254 uhci_port2: port@2 {
255 reg = <2>;
256 #trigger-source-cells = <0>;
257 };
258 };
259
260 usb@0f,2 {
261 #address-cells = <1>;
262 #size-cells = <0>;
263 compatible = "pci1106,3038";
264 reg = <0x7a00 0 0 0 0>; /* 0000:00:0f.2: EHCI Host Controller*/
265
266 ehci_port2: port@2 {
267 reg = <2>;
268 #trigger-source-cells = <0>;
269 };
270 };
271 };
272
273 &usb_phy {
274 status = "okay";
275 };
276
277 &usb {
278 status = "okay";
279 vbus-supply = <&usb_vbus>;
280 };
281
282 &vmmc {
283 status = "okay";
284 gpios = <&gpiomm 1 GPIO_ACTIVE_HIGH>;
285 };