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