lantiq: kernel 4.14: cleanup dts files
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / 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
20 led-dsl = &internet_red;
21 led-usb = &umts;
22 led-wifi = &wifi;
23 };
24
25 memory@0 {
26 reg = <0x0 0x4000000>;
27 };
28
29 gpio-keys-polled {
30 compatible = "gpio-keys-polled";
31 #address-cells = <1>;
32 #size-cells = <0>;
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 gpio-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
127 &gpio {
128 pinctrl-names = "default";
129 pinctrl-0 = <&state_default>;
130
131 state_default: pinmux {
132 ebu {
133 lantiq,groups = "ebu cs1";
134 lantiq,function = "ebu";
135 };
136 exin {
137 lantiq,groups = "exin1";
138 lantiq,function = "exin";
139 lantiq,pull = <2>;
140 lantiq,output = <0>;
141 };
142 pci_in {
143 lantiq,groups = "req1";
144 lantiq,function = "pci";
145 lantiq,pull = <2>;
146 lantiq,output = <0>;
147 };
148 pci_out {
149 lantiq,groups = "gnt1";
150 lantiq,function = "pci";
151 lantiq,open-drain = <1>;
152 lantiq,output = <1>;
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
173 &gpiomm {
174 status = "okay";
175 lantiq,shadow = <3>;
176 };
177
178 &gsw {
179 phy-mode = "mii";
180 mtd-mac-address = <&boardconfig 0x16>;
181 };
182
183 &localbus {
184 nor@0 {
185 compatible = "lantiq,nor";
186 bank-width = <2>;
187 reg = <0 0x0 0x800000>;
188 #address-cells = <1>;
189 #size-cells = <1>;
190
191 partitions {
192 compatible = "fixed-partitions";
193 #address-cells = <1>;
194 #size-cells = <1>;
195
196 partition@0 {
197 label = "uboot";
198 reg = <0x00000 0x30000>;
199 read-only;
200 };
201
202 partition@10000 {
203 label = "uboot_env";
204 reg = <0x30000 0x10000>;
205 read-only;
206 };
207
208 partition@20000 {
209 label = "firmware";
210 reg = <0x40000 0x7b0000>;
211 };
212
213 boardconfig: partition@7f0000 {
214 label = "board_config";
215 reg = <0x7f0000 0x10000>;
216 read-only;
217 };
218 };
219 };
220 };
221
222 &pci0 {
223 status = "okay";
224 lantiq,external-clock;
225 interrupt-map = <
226 0x7000 0 0 1 &icu0 30
227 0x7800 0 0 1 &icu0 135
228 0x7800 0 0 2 &icu0 135
229 0x7800 0 0 3 &icu0 135
230 >;
231 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
232 req-mask = <0x3>;
233
234 wifi@1814,3592 {
235 compatible = "pci1814,3592";
236 reg = <0x7000 0 0 0 0>;
237 ralink,mtd-eeprom = <&boardconfig 0x410>;
238 ralink,mtd-eeprom-swap;
239 mtd-mac-address = <&boardconfig 0x16>;
240 };
241 };
242
243 &usb {
244 status = "okay";
245 gpios = <&gpiomm 0 GPIO_ACTIVE_HIGH>;
246 };
247
248 &vmmc {
249 status = "okay";
250 gpios = <&gpiomm 1 GPIO_ACTIVE_HIGH>;
251 };