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