18bae40cc894dd6a0b337678d3e3a4c859dc8c44
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / ARV752DPW.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "arcadyan,arv752dpw", "lantiq,xway", "lantiq,danube";
9 model = "Arcor 802";
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 30 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_RESTART>;
56 };
57 };
58
59 gpio-leds {
60 compatible = "gpio-leds";
61 power_blue: power1 {
62 label = "arv752dpw:blue:power";
63 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
64 };
65 internet_red: internet {
66 label = "arv752dpw:red:internet";
67 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
68 };
69 message {
70 label = "arv752dpw:red:message";
71 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
72 };
73 power_red: power {
74 label = "arv752dpw:red:power";
75 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
76 default-state = "keep";
77 };
78 voice1 {
79 label = "arv752dpw:red:voice";
80 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
81 };
82 umts: umts {
83 label = "arv752dpw:red:umts";
84 gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
85 };
86 wifi: wifi {
87 label = "arv752dpw:red:wifi";
88 gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
89 };
90 fxs1 {
91 label = "arv752dpw:green:tae-n";
92 gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
93 };
94 fxs2 {
95 label = "arv752dpw:green:tae-u";
96 gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
97 };
98 fxo {
99 label = "arv752dpw:green:isdn";
100 gpios = <&gpiomm 7 GPIO_ACTIVE_LOW>;
101 };
102 internet2 {
103 label = "arv752dpw:blue:internet";
104 gpios = <&gpiomm 8 GPIO_ACTIVE_LOW>;
105 };
106 voice2 {
107 label = "arv752dpw:blue:voice";
108 gpios = <&gpiomm 9 GPIO_ACTIVE_LOW>;
109 };
110 };
111 };
112
113 &gpio {
114 pinctrl-names = "default";
115 pinctrl-0 = <&state_default>;
116
117 state_default: pinmux {
118 ebu {
119 lantiq,groups = "ebu cs1";
120 lantiq,function = "ebu";
121 };
122 exin {
123 lantiq,groups = "exin1";
124 lantiq,function = "exin";
125 lantiq,pull = <2>;
126 lantiq,output = <0>;
127 };
128 pci_in {
129 lantiq,groups = "req2", "req1";
130 lantiq,function = "pci";
131 lantiq,open-drain = <1>;
132 lantiq,pull = <2>;
133 lantiq,output = <0>;
134 };
135 pci_out {
136 lantiq,groups = "gnt1";
137 lantiq,function = "pci";
138 lantiq,output = <1>;
139 };
140 pci_rst {
141 lantiq,pins = "io21";
142 lantiq,pull = <2>;
143 lantiq,output = <1>;
144 };
145 leds {
146 lantiq,pins = "io3", "io5", "io6", "io8";
147 lantiq,output = <1>;
148 lantiq,pull = <0>;
149 };
150 keys {
151 lantiq,pins = "io11", "io12", "io13", "io28";
152 lantiq,output = <0>;
153 lantiq,pull = <2>;
154 lantiq,open-drain = <1>;
155 };
156 };
157
158 usb_vbus: regulator-usb-vbus {
159 compatible = "regulator-fixed";
160
161 regulator-name = "USB_VBUS";
162
163 regulator-min-microvolt = <5000000>;
164 regulator-max-microvolt = <5000000>;
165
166 gpio = <&gpiomm 0 GPIO_ACTIVE_HIGH>;
167 enable-active-high;
168 };
169 };
170
171 &gpiomm {
172 status = "okay";
173 lantiq,shadow = <0x3>;
174 };
175
176 &gsw {
177 phy-mode = "rmii";
178 mtd-mac-address = <&boardconfig 0x16>;
179 };
180
181 &localbus {
182 nor@0 {
183 compatible = "lantiq,nor";
184 bank-width = <2>;
185 reg = <0 0x0 0x800000>;
186 #address-cells = <1>;
187 #size-cells = <1>;
188
189 partitions {
190 compatible = "fixed-partitions";
191 #address-cells = <1>;
192 #size-cells = <1>;
193
194 partition@0 {
195 label = "uboot";
196 reg = <0x00000 0x10000>;
197 read-only;
198 };
199
200 partition@10000 {
201 label = "uboot_env";
202 reg = <0x10000 0x10000>;
203 read-only;
204 };
205
206 partition@20000 {
207 label = "firmware";
208 reg = <0x20000 0x7d0000>;
209 };
210
211 boardconfig: partition@7f0000 {
212 label = "board_config";
213 reg = <0x7f0000 0x10000>;
214 read-only;
215 };
216 };
217 };
218 };
219
220 &pci0 {
221 status = "okay";
222 lantiq,external-clock;
223 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
224 interrupt-map = <0x7000 0 0 1 &icu0 135>;
225 req-mask = <0x3>;
226
227 wifi@1814,0601 {
228 compatible = "pci1814,0601";
229 reg = <0x7000 0 0 0 0>;
230 ralink,mtd-eeprom = <&boardconfig 0x410>;
231 ralink,mtd-eeprom-swap;
232 };
233 };
234
235 &usb_phy {
236 status = "okay";
237 };
238
239 &usb {
240 status = "okay";
241 vbus-supply = <&usb_vbus>;
242 };
243
244 &vmmc {
245 status = "okay";
246 gpios = <&gpiomm 1 GPIO_ACTIVE_HIGH>;
247 };