ipq806x: increase kernel partition size for the Netgear r7800
[openwrt/openwrt.git] / target / linux / ipq806x / files-4.9 / arch / arm / boot / dts / qcom-ipq8065-r7800.dts
1 #include "qcom-ipq8065-v1.0.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 model = "Netgear Nighthawk X4S R7800";
7 compatible = "netgear,r7800", "qcom,ipq8065", "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 rsvd@5fe00000 {
24 reg = <0x5fe00000 0x200000>;
25 reusable;
26 };
27 };
28
29 aliases {
30 serial0 = &gsbi4_serial;
31 mdio-gpio0 = &mdio0;
32
33 led-boot = &power_white;
34 led-failsafe = &power_amber;
35 led-running = &power_white;
36 led-upgrade = &power_amber;
37 };
38
39 chosen {
40 linux,stdout-path = "serial0:115200n8";
41 };
42
43 soc {
44 pinmux@800000 {
45 button_pins: button_pins {
46 mux {
47 pins = "gpio6", "gpio54", "gpio65";
48 function = "gpio";
49 drive-strength = <2>;
50 bias-pull-up;
51 };
52 };
53
54 i2c4_pins: i2c4_pinmux {
55 mux {
56 pins = "gpio12", "gpio13";
57 function = "gsbi4";
58 drive-strength = <12>;
59 bias-disable;
60 };
61 };
62
63 led_pins: led_pins {
64 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
65 "gpio24","gpio26", "gpio53", "gpio64";
66 function = "gpio";
67 drive-strength = <2>;
68 bias-pull-down;
69 };
70
71 nand_pins: nand_pins {
72 mux {
73 pins = "gpio34", "gpio35", "gpio36",
74 "gpio37", "gpio38", "gpio39",
75 "gpio40", "gpio41", "gpio42",
76 "gpio43", "gpio44", "gpio45",
77 "gpio46", "gpio47";
78 function = "nand";
79 drive-strength = <10>;
80 bias-disable;
81 };
82 pullups {
83 pins = "gpio39";
84 bias-pull-up;
85 };
86 hold {
87 pins = "gpio40", "gpio41", "gpio42",
88 "gpio43", "gpio44", "gpio45",
89 "gpio46", "gpio47";
90 bias-bus-hold;
91 };
92 };
93
94 mdio0_pins: mdio0_pins {
95 mux {
96 pins = "gpio0", "gpio1";
97 function = "gpio";
98 drive-strength = <8>;
99 bias-disable;
100 };
101
102 clk {
103 pins = "gpio1";
104 input-disable;
105 };
106 };
107
108 rgmii2_pins: rgmii2_pins {
109 mux {
110 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
111 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
112 function = "rgmii2";
113 drive-strength = <8>;
114 bias-disable;
115 };
116
117 tx {
118 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32" ;
119 input-disable;
120 };
121 };
122
123 spi_pins: spi_pins {
124 mux {
125 pins = "gpio18", "gpio19", "gpio21";
126 function = "gsbi5";
127 bias-pull-down;
128 };
129
130 data {
131 pins = "gpio18", "gpio19";
132 drive-strength = <10>;
133 };
134
135 cs {
136 pins = "gpio20";
137 drive-strength = <10>;
138 bias-pull-up;
139 };
140
141 clk {
142 pins = "gpio21";
143 drive-strength = <12>;
144 };
145 };
146
147 spi6_pins: spi6_pins {
148 mux {
149 pins = "gpio55", "gpio56", "gpio58";
150 function = "gsbi6";
151 bias-pull-down;
152 };
153
154 mosi {
155 pins = "gpio55";
156 drive-strength = <12>;
157 };
158
159 miso {
160 pins = "gpio56";
161 drive-strength = <14>;
162 };
163
164 cs {
165 pins = "gpio57";
166 drive-strength = <12>;
167 bias-pull-up;
168 };
169
170 clk {
171 pins = "gpio58";
172 drive-strength = <12>;
173 };
174
175 reset {
176 pins = "gpio33";
177 drive-strength = <10>;
178 bias-pull-down;
179 output-high;
180 };
181 };
182
183 usb0_pwr_en_pins: usb0_pwr_en_pins {
184 mux {
185 pins = "gpio15";
186 function = "gpio";
187 drive-strength = <12>;
188 bias-pull-down;
189 output-high;
190 };
191 };
192
193 usb1_pwr_en_pins: usb1_pwr_en_pins {
194 mux {
195 pins = "gpio16", "gpio68";
196 function = "gpio";
197 drive-strength = <12>;
198 bias-pull-down;
199 output-high;
200 };
201 };
202 };
203
204 gsbi@16300000 {
205 qcom,mode = <GSBI_PROT_I2C_UART>;
206 status = "ok";
207 serial@16340000 {
208 status = "ok";
209 };
210 /*
211 * The i2c device on gsbi4 should not be enabled.
212 * On ipq806x designs gsbi4 i2c is meant for exclusive
213 * RPM usage. Turning this on in kernel manifests as
214 * i2c failure for the RPM.
215 */
216 };
217
218 gsbi5: gsbi@1a200000 {
219 qcom,mode = <GSBI_PROT_SPI>;
220 status = "ok";
221
222 spi5: spi@1a280000 {
223 status = "ok";
224
225 pinctrl-0 = <&spi_pins>;
226 pinctrl-names = "default";
227
228 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
229
230 flash: m25p80@0 {
231 compatible = "jedec,spi-nor";
232 #address-cells = <1>;
233 #size-cells = <1>;
234 spi-max-frequency = <50000000>;
235 reg = <0>;
236
237 partitions {
238 compatible = "qcom,smem";
239 };
240 };
241 };
242 };
243
244 gsbi6: gsbi@16500000 {
245 qcom,mode = <GSBI_PROT_SPI>;
246 status = "ok";
247 spi6: spi@16580000 {
248 status = "ok";
249
250 pinctrl-0 = <&spi6_pins>;
251 pinctrl-names = "default";
252
253 cs-gpios = <&qcom_pinmux 57 GPIO_ACTIVE_HIGH>;
254
255 spi-nor@0 {
256 compatible = "jedec,spi-nor";
257 reg = <0>;
258 spi-max-frequency = <6000000>;
259 };
260 };
261 };
262
263 sata-phy@1b400000 {
264 status = "ok";
265 };
266
267 sata@29000000 {
268 ports-implemented = <0x1>;
269 status = "ok";
270 };
271
272 phy@100f8800 { /* USB3 port 1 HS phy */
273 status = "ok";
274 };
275
276 phy@100f8830 { /* USB3 port 1 SS phy */
277 status = "ok";
278 };
279
280 phy@110f8800 { /* USB3 port 0 HS phy */
281 status = "ok";
282 };
283
284 phy@110f8830 { /* USB3 port 0 SS phy */
285 status = "ok";
286 };
287
288 usb30@0 {
289 status = "ok";
290
291 pinctrl-0 = <&usb0_pwr_en_pins>;
292 pinctrl-names = "default";
293 };
294
295 usb30@1 {
296 status = "ok";
297
298 pinctrl-0 = <&usb1_pwr_en_pins>;
299 pinctrl-names = "default";
300 };
301
302 pcie0: pci@1b500000 {
303 status = "ok";
304 };
305
306 pcie1: pci@1b700000 {
307 status = "ok";
308 force_gen1 = <1>;
309 };
310
311 nand@1ac00000 {
312 status = "ok";
313
314 pinctrl-0 = <&nand_pins>;
315 pinctrl-names = "default";
316
317 cs0 {
318 reg = <0>;
319 compatible = "qcom,nandcs";
320
321 nand-ecc-strength = <4>;
322 nand-bus-width = <8>;
323 nand-ecc-step-size = <512>;
324
325 partitions {
326 compatible = "fixed-partitions";
327 #address-cells = <1>;
328 #size-cells = <1>;
329
330 qcadata@0 {
331 label = "qcadata";
332 reg = <0x0000000 0x0c80000>;
333 read-only;
334 };
335
336 APPSBL@c80000 {
337 label = "APPSBL";
338 reg = <0x0c80000 0x0500000>;
339 read-only;
340 };
341
342 APPSBLENV@1180000 {
343 label = "APPSBLENV";
344 reg = <0x1180000 0x0080000>;
345 read-only;
346 };
347
348 art: art@1200000 {
349 label = "art";
350 reg = <0x1200000 0x0140000>;
351 read-only;
352 };
353
354 artbak: art@1340000 {
355 label = "artbak";
356 reg = <0x1340000 0x0140000>;
357 read-only;
358 };
359
360 kernel@1480000 {
361 label = "kernel";
362 reg = <0x1480000 0x0400000>;
363 };
364
365 ubi@1880000 {
366 label = "ubi";
367 reg = <0x1880000 0x1C00000>;
368 };
369
370 netgear@3480000 {
371 label = "netgear";
372 reg = <0x3480000 0x4480000>;
373 read-only;
374 };
375
376 reserve@7900000 {
377 label = "reserve";
378 reg = <0x7900000 0x0700000>;
379 read-only;
380 };
381
382 firmware@1480000 {
383 label = "firmware";
384 reg = <0x1480000 0x2000000>;
385 };
386 };
387 };
388 };
389
390 mdio0: mdio {
391 compatible = "virtual,mdio-gpio";
392 #address-cells = <1>;
393 #size-cells = <0>;
394 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
395 pinctrl-0 = <&mdio0_pins>;
396 pinctrl-names = "default";
397
398
399 phy0: ethernet-phy@0 {
400 device_type = "ethernet-phy";
401 reg = <0>;
402 qca,ar8327-initvals = <
403 0x00004 0x7600000 /* PAD0_MODE */
404 0x00008 0x1000000 /* PAD5_MODE */
405 0x0000c 0x80 /* PAD6_MODE */
406 0x000e4 0xaa545 /* MAC_POWER_SEL */
407 0x000e0 0xc74164de /* SGMII_CTRL */
408 0x0007c 0x4e /* PORT0_STATUS */
409 0x00094 0x4e /* PORT6_STATUS */
410 0x00970 0x1e864443 /* QM_PORT0_CTRL0 */
411 0x00974 0x000001c6 /* QM_PORT0_CTRL1 */
412 0x00978 0x19008643 /* QM_PORT1_CTRL0 */
413 0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */
414 0x00980 0x19008643 /* QM_PORT2_CTRL0 */
415 0x00984 0x000001c6 /* QM_PORT2_CTRL1 */
416 0x00988 0x19008643 /* QM_PORT3_CTRL0 */
417 0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */
418 0x00990 0x19008643 /* QM_PORT4_CTRL0 */
419 0x00994 0x000001c6 /* QM_PORT4_CTRL1 */
420 0x00998 0x1e864443 /* QM_PORT5_CTRL0 */
421 0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */
422 0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */
423 0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */
424 >;
425 qca,ar8327-vlans = <
426 0x1 0x5e /* VLAN1 Ports 1/2/3/4/6 */
427 0x2 0x21 /* VLAN2 Ports 0/5 */
428 >;
429 };
430
431 phy4: ethernet-phy@4 {
432 device_type = "ethernet-phy";
433 reg = <4>;
434 qca,ar8327-initvals = <
435 0x000e4 0x6a545 /* MAC_POWER_SEL */
436 0x0000c 0x80 /* PAD6_MODE */
437 >;
438 };
439 };
440
441 gmac1: ethernet@37200000 {
442 status = "ok";
443 phy-mode = "rgmii";
444 qcom,id = <1>;
445 qcom,phy_mdio_addr = <4>;
446 qcom,poll_required = <0>;
447 qcom,rgmii_delay = <1>;
448 qcom,phy_mii_type = <0>;
449 qcom,emulation = <0>;
450 qcom,irq = <255>;
451 mdiobus = <&mdio0>;
452
453 pinctrl-0 = <&rgmii2_pins>;
454 pinctrl-names = "default";
455
456 mtd-mac-address = <&art 6>;
457
458 fixed-link {
459 speed = <1000>;
460 full-duplex;
461 };
462 };
463
464 gmac2: ethernet@37400000 {
465 status = "ok";
466 phy-mode = "sgmii";
467 qcom,id = <2>;
468 qcom,phy_mdio_addr = <0>; /* none */
469 qcom,poll_required = <0>; /* no polling */
470 qcom,rgmii_delay = <0>;
471 qcom,phy_mii_type = <1>;
472 qcom,emulation = <0>;
473 qcom,irq = <258>;
474 mdiobus = <&mdio0>;
475
476 mtd-mac-address = <&art 0>;
477
478 fixed-link {
479 speed = <1000>;
480 full-duplex;
481 };
482 };
483
484 rpm@108000 {
485 pinctrl-0 = <&i2c4_pins>;
486 pinctrl-names = "default";
487 };
488 };
489
490 gpio-keys {
491 compatible = "gpio-keys";
492 pinctrl-0 = <&button_pins>;
493 pinctrl-names = "default";
494
495 wifi {
496 label = "wifi";
497 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
498 linux,code = <KEY_RFKILL>;
499 debounce-interval = <60>;
500 wakeup-source;
501 };
502
503 reset {
504 label = "reset";
505 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
506 linux,code = <KEY_RESTART>;
507 debounce-interval = <60>;
508 wakeup-source;
509 };
510
511 wps {
512 label = "wps";
513 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
514 linux,code = <KEY_WPS_BUTTON>;
515 debounce-interval = <60>;
516 wakeup-source;
517 };
518 };
519
520 gpio-leds {
521 compatible = "gpio-leds";
522 pinctrl-0 = <&led_pins>;
523 pinctrl-names = "default";
524
525 power_white: power_white {
526 label = "r7800:white:power";
527 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
528 default-state = "keep";
529 };
530
531 power_amber: power_amber {
532 label = "r7800:amber:power";
533 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
534 };
535
536 wan_white {
537 label = "r7800:white:wan";
538 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
539 };
540
541 wan_amber {
542 label = "r7800:amber:wan";
543 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
544 };
545
546 usb1 {
547 label = "r7800:white:usb1";
548 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
549 };
550
551 usb2 {
552 label = "r7800:white:usb2";
553 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
554 };
555
556 esata {
557 label = "r7800:white:esata";
558 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
559 };
560
561 wifi {
562 label = "r7800:white:wifi";
563 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
564 };
565
566 wps {
567 label = "r7800:white:wps";
568 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
569 };
570 };
571 };
572
573 &adm_dma {
574 status = "ok";
575 };