6598a60f58f08963683a6e7a5d22f4faca55c00c
[openwrt/staging/blogic.git] / target / linux / lantiq / files / arch / mips / boot / dts / ARV4510PW.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "arcadyan,arv4510pw", "lantiq,xway", "lantiq,danube";
9 model = "Wippies, Elisa";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 aliases {
16 led-boot = &power;
17 led-failsafe = &power2;
18 led-running = &power;
19 led-upgrade = &power;
20
21 led-dsl = &adsl;
22 led-internet = &internet;
23 led-usb = &led_usb;
24 led-usb2 = &led_usb2;
25 led-wifi = &wifi;
26 };
27
28 memory@0 {
29 reg = <0x0 0x2000000>;
30 };
31
32 gpio-keys-polled {
33 compatible = "gpio-keys-polled";
34 #address-cells = <1>;
35 #size-cells = <0>;
36 poll-interval = <100>;
37
38 wps {
39 label = "wps";
40 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_WPS_BUTTON>;
42 };
43 reset {
44 label = "reset";
45 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_RESTART>;
47 };
48 };
49
50 gpio-leds {
51 compatible = "gpio-leds";
52 power: power {
53 label = "power";
54 gpios = <&gpios 21 GPIO_ACTIVE_HIGH>;
55 default-state = "keep";
56 };
57 power2: power2 {
58 label = "power2";
59 gpios = <&gpios 20 GPIO_ACTIVE_HIGH>;
60 };
61 lan1 {
62 label = "lan1";
63 gpios = <&gpios 19 GPIO_ACTIVE_HIGH>;
64 };
65 lan2 {
66 label = "lan2";
67 gpios = <&gpios 18 GPIO_ACTIVE_HIGH>;
68 };
69 lan3 {
70 label = "lan3";
71 gpios = <&gpios 17 GPIO_ACTIVE_HIGH>;
72 };
73 lan4 {
74 label = "lan4";
75 gpios = <&gpios 16 GPIO_ACTIVE_HIGH>;
76 };
77 wifi: wifi {
78 label = "wifi";
79 gpios = <&gpios 15 GPIO_ACTIVE_HIGH>;
80 };
81 adsl: adsl {
82 label = "adsl";
83 gpios = <&gpios 14 GPIO_ACTIVE_HIGH>;
84 };
85 internet: internet {
86 label = "internet";
87 gpios = <&gpios 13 GPIO_ACTIVE_HIGH>;
88 };
89 internet2 {
90 label = "internet2";
91 gpios = <&gpios 12 GPIO_ACTIVE_HIGH>;
92 };
93 voip {
94 label = "voip";
95 gpios = <&gpios 11 GPIO_ACTIVE_HIGH>;
96 };
97 phone {
98 label = "phone";
99 gpios = <&gpios 10 GPIO_ACTIVE_HIGH>;
100 };
101 phone2 {
102 label = "phone2";
103 gpios = <&gpios 9 GPIO_ACTIVE_HIGH>;
104 };
105 led_usb: usb {
106 label = "usb";
107 gpios = <&gpios 8 GPIO_ACTIVE_HIGH>;
108 };
109 led_usb2: usb2 {
110 label = "usb2";
111 gpios = <&gpios 7 GPIO_ACTIVE_HIGH>;
112 };
113 usb3 {
114 label = "usb3";
115 gpios = <&gpios 6 GPIO_ACTIVE_HIGH>;
116 };
117 unlabeled {
118 label = "unlabeled";
119 gpios = <&gpios 5 GPIO_ACTIVE_HIGH>;
120 };
121 };
122 };
123
124 &gpio {
125 pinctrl-names = "default";
126 pinctrl-0 = <&state_default>;
127
128 state_default: pinmux {
129 ebu {
130 lantiq,groups = "ebu a23";
131 lantiq,function = "ebu";
132 lantiq,open-drain = <0>;
133 lantiq,output = <1>;
134 };
135 stp {
136 lantiq,groups = "stp";
137 lantiq,function = "stp";
138 lantiq,open-drain = <0>;
139 lantiq,output = <1>;
140 };
141 exin {
142 lantiq,groups = "exin1", "exin2";
143 lantiq,function = "exin";
144 lantiq,output = <0>;
145 };
146 pci_in {
147 lantiq,groups = "req1", "req2";
148 lantiq,function = "pci";
149 lantiq,output = <0>;
150 };
151 pci_out {
152 lantiq,groups = "gnt1", "gnt2";
153 lantiq,function = "pci";
154 lantiq,open-drain = <0>;
155 lantiq,pull = <0>;
156 lantiq,output = <1>;
157 };
158 pci_rst {
159 lantiq,pins = "io21";
160 lantiq,open-drain = <0>;
161 lantiq,output = <1>;
162 };
163 buttons {
164 lantiq,pins = "io3", "io14";
165 lantiq,pull = <2>;
166 lantiq,output = <0>;
167 };
168 };
169 };
170
171 &gpios {
172 status = "okay";
173 lantiq,groups = <0x7>;
174 };
175
176 &gsw {
177 phy-mode = "rmii";
178 };
179
180 &localbus {
181 nor@0 {
182 compatible = "lantiq,nor";
183 bank-width = <2>;
184 reg = <0 0x0 0x1000000>;
185 #address-cells = <1>;
186 #size-cells = <1>;
187
188 lantiq,noxip;
189
190 partitions {
191 compatible = "fixed-partitions";
192 #address-cells = <1>;
193 #size-cells = <1>;
194
195 partition@0 {
196 label = "uboot";
197 reg = <0x00000 0x40000>;
198 read-only;
199 };
200
201 partition@40000 {
202 label = "uboot_env";
203 reg = <0x40000 0x20000>;
204 read-only;
205 };
206
207 partition@60000 {
208 label = "firmware";
209 reg = <0x60000 0xfa0000>;
210 };
211 };
212 };
213 };
214
215 &pci0 {
216 status = "okay";
217 lantiq,external-clock;
218 interrupt-map = <
219 0x6000 0 0 1 &icu0 135
220 0x7800 0 0 1 &icu0 66
221 0x7800 0 0 2 &icu0 66
222 0x7800 0 0 3 &icu0 66
223 >;
224 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
225 req-mask = <0x7>;
226 };
227
228 &vmmc {
229 status = "okay";
230 };