ipq806x: convert to using qca8k
[openwrt/staging/blogic.git] / target / linux / ipq806x / files-4.9 / arch / arm / boot / dts / qcom-ipq8064-vr2600v.dts
1 #include "qcom-ipq8064-v1.0.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 model = "TP-Link Archer VR2600v";
7 compatible = "tplink,vr2600v", "qcom,ipq8064";
8
9 memory@0 {
10 reg = <0x42000000 0x1e000000>;
11 device_type = "memory";
12 };
13
14 reserved-memory {
15 #address-cells = <1>;
16 #size-cells = <1>;
17 ranges;
18 rsvd@41200000 {
19 reg = <0x41200000 0x300000>;
20 no-map;
21 };
22 };
23
24 aliases {
25 serial0 = &gsbi4_serial;
26 mdio-gpio0 = &mdio0;
27
28 led-boot = &power;
29 led-failsafe = &general;
30 led-running = &power;
31 led-upgrade = &general;
32 };
33
34 chosen {
35 linux,stdout-path = "serial0:115200n8";
36 };
37
38 soc {
39 pinmux@800000 {
40 led_pins: led_pins {
41 mux {
42 pins = "gpio7", "gpio8", "gpio9", "gpio16", "gpio17",
43 "gpio26", "gpio53", "gpio56", "gpio66";
44 function = "gpio";
45 drive-strength = <2>;
46 bias-pull-up;
47 };
48 };
49
50 i2c4_pins: i2c4_pinmux {
51 mux {
52 pins = "gpio12", "gpio13";
53 function = "gsbi4";
54 drive-strength = <12>;
55 bias-disable;
56 };
57 };
58
59 button_pins: button_pins {
60 mux {
61 pins = "gpio54", "gpio64", "gpio65", "gpio67", "gpio68";
62 function = "gpio";
63 drive-strength = <2>;
64 bias-pull-up;
65 };
66 };
67
68 spi_pins: spi_pins {
69 mux {
70 pins = "gpio18", "gpio19", "gpio21";
71 function = "gsbi5";
72 bias-pull-down;
73 };
74
75 data {
76 pins = "gpio18", "gpio19";
77 drive-strength = <10>;
78 };
79
80 cs {
81 pins = "gpio20";
82 drive-strength = <10>;
83 bias-pull-up;
84 };
85
86 clk {
87 pins = "gpio21";
88 drive-strength = <12>;
89 };
90 };
91
92 mdio0_pins: mdio0_pins {
93 mux {
94 pins = "gpio0", "gpio1";
95 function = "gpio";
96 drive-strength = <8>;
97 bias-disable;
98 };
99 };
100
101 rgmii2_pins: rgmii2_pins {
102 mux {
103 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
104 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
105 function = "rgmii2";
106 drive-strength = <8>;
107 bias-disable;
108 };
109 };
110 };
111
112 gsbi@16300000 {
113 qcom,mode = <GSBI_PROT_I2C_UART>;
114 status = "ok";
115 serial@16340000 {
116 status = "ok";
117 };
118 /*
119 * The i2c device on gsbi4 should not be enabled.
120 * On ipq806x designs gsbi4 i2c is meant for exclusive
121 * RPM usage. Turning this on in kernel manifests as
122 * i2c failure for the RPM.
123 */
124 };
125
126 gsbi5: gsbi@1a200000 {
127 qcom,mode = <GSBI_PROT_SPI>;
128 status = "ok";
129
130 spi4: spi@1a280000 {
131 status = "ok";
132
133 pinctrl-0 = <&spi_pins>;
134 pinctrl-names = "default";
135
136 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
137
138 flash: W25Q128@0 {
139 compatible = "jedec,spi-nor";
140 #address-cells = <1>;
141 #size-cells = <1>;
142 spi-max-frequency = <50000000>;
143 reg = <0>;
144
145 SBL1@0 {
146 label = "SBL1";
147 reg = <0x0 0x20000>;
148 read-only;
149 };
150
151 MIBIB@20000 {
152 label = "MIBIB";
153 reg = <0x20000 0x20000>;
154 read-only;
155 };
156
157 SBL2@40000 {
158 label = "SBL2";
159 reg = <0x40000 0x40000>;
160 read-only;
161 };
162
163 SBL3@80000 {
164 label = "SBL3";
165 reg = <0x80000 0x80000>;
166 read-only;
167 };
168
169 DDRCONFIG@100000 {
170 label = "DDRCONFIG";
171 reg = <0x100000 0x10000>;
172 read-only;
173 };
174
175 SSD@110000 {
176 label = "SSD";
177 reg = <0x110000 0x10000>;
178 read-only;
179 };
180
181 TZ@120000 {
182 label = "TZ";
183 reg = <0x120000 0x80000>;
184 read-only;
185 };
186
187 RPM@1a0000 {
188 label = "RPM";
189 reg = <0x1a0000 0x80000>;
190 read-only;
191 };
192
193 APPSBL@220000 {
194 label = "APPSBL";
195 reg = <0x220000 0x80000>;
196 read-only;
197 };
198
199 APPSBLENV@2a0000 {
200 label = "APPSBLENV";
201 reg = <0x2a0000 0x40000>;
202 read-only;
203 };
204
205 OLDART@2e0000 {
206 label = "OLDART";
207 reg = <0x2e0000 0x40000>;
208 read-only;
209 };
210
211 kernel@320000 {
212 label = "kernel";
213 reg = <0x320000 0x200000>;
214 };
215
216 rootfs@520000 {
217 label = "rootfs";
218 reg = <0x520000 0xa60000>;
219 };
220
221 defaultmac: default-mac@0xfaf100 {
222 label = "default-mac";
223 reg = <0xfaf100 0x00200>;
224 read-only;
225 };
226
227 ART@fc0000 {
228 label = "ART";
229 reg = <0xfc0000 0x40000>;
230 read-only;
231 };
232 };
233 };
234 };
235
236 phy@100f8800 { /* USB3 port 1 HS phy */
237 status = "ok";
238 };
239
240 phy@100f8830 { /* USB3 port 1 SS phy */
241 status = "ok";
242 };
243
244 phy@110f8800 { /* USB3 port 0 HS phy */
245 status = "ok";
246 };
247
248 phy@110f8830 { /* USB3 port 0 SS phy */
249 status = "ok";
250 };
251
252 usb30@0 {
253 status = "ok";
254 };
255
256 usb30@1 {
257 status = "ok";
258 };
259
260 pcie0: pci@1b500000 {
261 status = "ok";
262 phy-tx0-term-offset = <7>;
263 };
264
265 pcie1: pci@1b700000 {
266 status = "ok";
267 phy-tx0-term-offset = <7>;
268 };
269
270 mdio0: mdio {
271 compatible = "virtual,mdio-gpio";
272 #address-cells = <1>;
273 #size-cells = <0>;
274 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
275 pinctrl-0 = <&mdio0_pins>;
276 pinctrl-names = "default";
277
278 phy_port1: phy@0 {
279 reg = <0>;
280 };
281
282 phy_port2: phy@1 {
283 reg = <1>;
284 };
285
286 phy_port3: phy@2 {
287 reg = <2>;
288 };
289
290 phy_port4: phy@3 {
291 reg = <3>;
292 };
293
294 phy_port5: phy@4 {
295 reg = <4>;
296 };
297
298 switch0@16 {
299 compatible = "qca,qca8337";
300 #address-cells = <1>;
301 #size-cells = <0>;
302
303 reg = <16>;
304
305 ports {
306 #address-cells = <1>;
307 #size-cells = <0>;
308 port@0 {
309 reg = <0>;
310 label = "cpu";
311 ethernet = <&gmac1>;
312 phy-mode = "rgmii";
313
314 fixed-link {
315 speed = <1000>;
316 full-duplex;
317 };
318 };
319
320 port@1 {
321 reg = <1>;
322 label = "lan4";
323 phy-handle = <&phy_port1>;
324 };
325
326 port@2 {
327 reg = <2>;
328 label = "lan3";
329 phy-handle = <&phy_port2>;
330 };
331
332 port@3 {
333 reg = <3>;
334 label = "lan2";
335 phy-handle = <&phy_port3>;
336 };
337
338 port@4 {
339 reg = <4>;
340 label = "lan1";
341 phy-handle = <&phy_port4>;
342 };
343
344 port@5 {
345 reg = <5>;
346 label = "wan";
347 phy-handle = <&phy_port5>;
348 };
349
350 /*
351 * Disabled until DSA supports multiple CPUs,
352 * otherwise it causes undefined behavior.
353 *
354 * port@6 {
355 * reg = <6>;
356 * label = "cpu";
357 * ethernet = <&gmac2>;
358 * phy-mode = "sgmii";
359 *
360 * fixed-link {
361 * speed = <1000>;
362 * full-duplex;
363 * };
364 * };
365 */
366 };
367 };
368 };
369
370 gmac1: ethernet@37200000 {
371 status = "ok";
372 phy-mode = "rgmii";
373 qcom,id = <1>;
374
375 pinctrl-0 = <&rgmii2_pins>;
376 pinctrl-names = "default";
377
378 mtd-mac-address = <&defaultmac 0>;
379 mtd-mac-address-increment = <1>;
380
381 fixed-link {
382 speed = <1000>;
383 full-duplex;
384 };
385 };
386
387 gmac2: ethernet@37400000 {
388 status = "ok";
389 phy-mode = "sgmii";
390 qcom,id = <2>;
391
392 mtd-mac-address = <&defaultmac 0>;
393
394 fixed-link {
395 speed = <1000>;
396 full-duplex;
397 };
398 };
399
400 rpm@108000 {
401 pinctrl-0 = <&i2c4_pins>;
402 pinctrl-names = "default";
403 };
404 };
405
406 gpio-keys {
407 compatible = "gpio-keys";
408 pinctrl-0 = <&button_pins>;
409 pinctrl-names = "default";
410
411 wifi {
412 label = "wifi";
413 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
414 linux,code = <KEY_RFKILL>;
415 };
416
417 reset {
418 label = "reset";
419 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
420 linux,code = <KEY_RESTART>;
421 };
422
423 wps {
424 label = "wps";
425 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
426 linux,code = <KEY_WPS_BUTTON>;
427 };
428
429 dect {
430 label = "dect";
431 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
432 linux,code = <KEY_PHONE>;
433 };
434
435 ledswitch {
436 label = "ledswitch";
437 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
438 linux,code = <KEY_LIGHTS_TOGGLE>;
439 };
440 };
441
442 gpio-leds {
443 compatible = "gpio-leds";
444 pinctrl-0 = <&led_pins>;
445 pinctrl-names = "default";
446
447 dsl {
448 label = "vr2600v:white:dsl";
449 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
450 };
451
452 usb {
453 label = "vr2600v:white:usb";
454 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
455 };
456
457 lan {
458 label = "vr2600v:white:lan";
459 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
460 };
461
462 wlan2g {
463 label = "vr2600v:white:wlan2g";
464 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
465 };
466
467 wlan5g {
468 label = "vr2600v:white:wlan5g";
469 gpios = <&qcom_pinmux 17 GPIO_ACTIVE_HIGH>;
470 };
471
472 power: power {
473 label = "vr2600v:white:power";
474 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
475 default-state = "keep";
476 };
477
478 phone {
479 label = "vr2600v:white:phone";
480 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
481 };
482
483 wan {
484 label = "vr2600v:white:wan";
485 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
486 };
487
488 general: general {
489 label = "vr2600v:white:general";
490 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
491 };
492 };
493 };
494
495 &adm_dma {
496 status = "ok";
497 };