60fd8bb918b00aa92115c00f7cc237da7398470b
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-4.19 / arch / mips / boot / dts / lantiq / danube_arcadyan_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 keys {
32 compatible = "gpio-keys-polled";
33 poll-interval = <100>;
34
35 wps {
36 label = "wps";
37 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_WPS_BUTTON>;
39 };
40 restart {
41 label = "restart";
42 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_POWER>;
44 };
45 dsl {
46 label = "dsl";
47 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
48 linux,code = <BTN_0>;
49 };
50 reset {
51 label = "reset";
52 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART>;
54 };
55 };
56
57 leds {
58 compatible = "gpio-leds";
59 power_blue: power1 {
60 label = "arv752dpw22:blue:power";
61 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
62 };
63 internet_red: internet {
64 label = "arv752dpw22:red:internet";
65 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
66 };
67 message {
68 label = "arv752dpw22:red:message";
69 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
70 };
71 power_red: power {
72 label = "arv752dpw22:red:power";
73 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
74 default-state = "keep";
75 };
76 voice1 {
77 label = "arv752dpw22:red:voice";
78 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
79 };
80 umts: umts {
81 label = "arv752dpw22:red:umts";
82 gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
83 };
84 wifi: wifi {
85 label = "arv752dpw22:red:wifi";
86 gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
87 };
88 fxs1 {
89 label = "arv752dpw22:green:tae-n";
90 gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
91 };
92 fxs2 {
93 label = "arv752dpw22:green:tae-u";
94 gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
95 };
96 fxo {
97 label = "arv752dpw22:green:isdn";
98 gpios = <&gpiomm 7 GPIO_ACTIVE_LOW>;
99 };
100 internet2 {
101 label = "arv752dpw22:blue:internet";
102 gpios = <&gpiomm 8 GPIO_ACTIVE_LOW>;
103 };
104 voice2 {
105 label = "arv752dpw22:blue:voice";
106 gpios = <&gpiomm 9 GPIO_ACTIVE_LOW>;
107 };
108 eth1 {
109 label = "arv752dpw22:green:lan1";
110 gpios = <&gpiomm 11 GPIO_ACTIVE_LOW>;
111 };
112 eth2 {
113 label = "arv752dpw22:green:lan2";
114 gpios = <&gpiomm 12 GPIO_ACTIVE_LOW>;
115 };
116 eth3 {
117 label = "arv752dpw22:green:lan3";
118 gpios = <&gpiomm 13 GPIO_ACTIVE_LOW>;
119 };
120 eth4 {
121 label = "arv752dpw22: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
249 &usb_phy {
250 status = "okay";
251 };
252
253 &usb {
254 status = "okay";
255 vbus-supply = <&usb_vbus>;
256 };
257
258 &vmmc {
259 status = "okay";
260 gpios = <&gpiomm 1 GPIO_ACTIVE_HIGH>;
261 };