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