47f653ac76377ebd504b7eaae9ee1a7d1f518ab3
[openwrt/staging/stintel.git] / target / linux / ipq806x / files / arch / arm / boot / dts / qcom-ipq8064-r7500v2.dts
1 #include "qcom-ipq8064-v2.0-smb208.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 model = "Netgear Nighthawk X4 R7500v2";
7 compatible = "netgear,r7500v2", "qcom,ipq8064";
8
9 memory@0 {
10 reg = <0x42000000 0x1e000000>;
11 device_type = "memory";
12 };
13
14 reserved-memory {
15 rsvd@5fe00000 {
16 reg = <0x5fe00000 0x200000>;
17 reusable;
18 };
19 };
20
21 aliases {
22 mdio-gpio0 = &mdio0;
23
24 led-boot = &power;
25 led-failsafe = &power;
26 led-running = &power;
27 led-upgrade = &power;
28 };
29
30 chosen {
31 bootargs = "rootfstype=squashfs noinitrd";
32 };
33
34 keys {
35 compatible = "gpio-keys";
36 pinctrl-0 = <&button_pins>;
37 pinctrl-names = "default";
38
39 wifi {
40 label = "wifi";
41 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RFKILL>;
43 debounce-interval = <60>;
44 wakeup-source;
45 };
46
47 reset {
48 label = "reset";
49 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_RESTART>;
51 debounce-interval = <60>;
52 wakeup-source;
53 };
54
55 wps {
56 label = "wps";
57 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_WPS_BUTTON>;
59 debounce-interval = <60>;
60 wakeup-source;
61 };
62 };
63
64 leds {
65 compatible = "gpio-leds";
66 pinctrl-0 = <&led_pins>;
67 pinctrl-names = "default";
68
69 usb1 {
70 label = "amber:usb1";
71 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
72 };
73
74 usb3 {
75 label = "amber:usb3";
76 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
77 };
78
79 status {
80 label = "amber:status";
81 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
82 };
83
84 internet {
85 label = "white:internet";
86 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
87 };
88
89 wan {
90 label = "white:wan";
91 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
92 };
93
94 wps {
95 label = "white:wps";
96 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
97 };
98
99 esata {
100 label = "white:esata";
101 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
102 };
103
104 power: power {
105 label = "white:power";
106 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
107 default-state = "keep";
108 };
109
110 wifi {
111 label = "white:wifi";
112 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
113 };
114 };
115 };
116
117 &adm_dma {
118 status = "okay";
119 };
120
121 &qcom_pinmux {
122 button_pins: button_pins {
123 mux {
124 pins = "gpio6", "gpio54", "gpio65";
125 function = "gpio";
126 drive-strength = <2>;
127 bias-pull-up;
128 };
129 };
130
131 led_pins: led_pins {
132 mux {
133 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
134 "gpio24","gpio26", "gpio53", "gpio64";
135 function = "gpio";
136 drive-strength = <2>;
137 bias-pull-up;
138 };
139 };
140
141 usb0_pwr_en_pins: usb0_pwr_en_pins {
142 mux {
143 pins = "gpio15";
144 function = "gpio";
145 drive-strength = <12>;
146 bias-pull-down;
147 output-high;
148 };
149 };
150
151 usb1_pwr_en_pins: usb1_pwr_en_pins {
152 mux {
153 pins = "gpio16", "gpio68";
154 function = "gpio";
155 drive-strength = <12>;
156 bias-pull-down;
157 output-high;
158 };
159 };
160 };
161
162 &sata_phy {
163 status = "okay";
164 };
165
166 &sata {
167 status = "okay";
168 };
169
170 &hs_phy_0 {
171 status = "okay";
172 };
173
174 &ss_phy_0 {
175 status = "okay";
176 };
177
178 &usb3_0 {
179 status = "okay";
180
181 pinctrl-0 = <&usb0_pwr_en_pins>;
182 pinctrl-names = "default";
183 };
184
185 &hs_phy_1 {
186 status = "okay";
187 };
188
189 &ss_phy_1 {
190 status = "okay";
191 };
192
193 &usb3_1 {
194 status = "okay";
195
196 pinctrl-0 = <&usb1_pwr_en_pins>;
197 pinctrl-names = "default";
198 };
199
200 &pcie0 {
201 status = "okay";
202 reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
203 pinctrl-0 = <&pcie0_pins>;
204 pinctrl-names = "default";
205
206 bridge@0,0 {
207 reg = <0x00000000 0 0 0 0>;
208 #address-cells = <3>;
209 #size-cells = <2>;
210 ranges;
211
212 wifi@1,0 {
213 compatible = "pci168c,0040";
214 reg = <0x00010000 0 0 0 0>;
215
216 nvmem-cells = <&macaddr_art_6 1>, <&precal_art_1000>;
217 nvmem-cell-names = "mac-address", "pre-calibration";
218 };
219 };
220 };
221
222 &pcie1 {
223 status = "okay";
224 reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
225 pinctrl-0 = <&pcie1_pins>;
226 pinctrl-names = "default";
227 max-link-speed = <1>;
228
229 bridge@0,0 {
230 reg = <0x00000000 0 0 0 0>;
231 #address-cells = <3>;
232 #size-cells = <2>;
233 ranges;
234
235 wifi@1,0 {
236 compatible = "pci168c,0040";
237 reg = <0x00010000 0 0 0 0>;
238
239 nvmem-cells = <&macaddr_art_6 2>, <&precal_art_5000>;
240 nvmem-cell-names = "mac-address", "pre-calibration";
241 };
242 };
243 };
244
245 &nand {
246 status = "okay";
247
248 nand@0 {
249 reg = <0>;
250 compatible = "qcom,nandcs";
251
252 nand-ecc-strength = <4>;
253 nand-bus-width = <8>;
254 nand-ecc-step-size = <512>;
255
256 nand-is-boot-medium;
257 qcom,boot-partitions = <0x0 0x1180000>;
258
259 partitions {
260 compatible = "fixed-partitions";
261 #address-cells = <1>;
262 #size-cells = <1>;
263
264 qcadata@0 {
265 label = "qcadata";
266 reg = <0x0000000 0x0c80000>;
267 read-only;
268 };
269
270 APPSBL@c80000 {
271 label = "APPSBL";
272 reg = <0x0c80000 0x0500000>;
273 read-only;
274 };
275
276 APPSBLENV@1180000 {
277 label = "APPSBLENV";
278 reg = <0x1180000 0x0080000>;
279 read-only;
280 };
281
282 art@1200000 {
283 label = "art";
284 reg = <0x1200000 0x0140000>;
285 read-only;
286
287 nvmem-layout {
288 compatible = "fixed-layout";
289 #address-cells = <1>;
290 #size-cells = <1>;
291
292 macaddr_art_0: macaddr@0 {
293 reg = <0x0 0x6>;
294 };
295
296 macaddr_art_6: macaddr@6 {
297 compatible = "mac-base";
298 reg = <0x6 0x6>;
299 #nvmem-cell-cells = <1>;
300 };
301
302 precal_art_1000: precal@1000 {
303 reg = <0x1000 0x2f20>;
304 };
305
306 precal_art_5000: precal@5000 {
307 reg = <0x5000 0x2f20>;
308 };
309 };
310 };
311
312 artbak: art@1340000 {
313 label = "artbak";
314 reg = <0x1340000 0x0140000>;
315 read-only;
316 };
317
318 kernel@1480000 {
319 label = "kernel";
320 reg = <0x1480000 0x0400000>;
321 };
322
323 ubi@1880000 {
324 label = "ubi";
325 reg = <0x1880000 0x6080000>;
326 };
327
328 reserve@7900000 {
329 label = "reserve";
330 reg = <0x7900000 0x0700000>;
331 read-only;
332 };
333 };
334 };
335 };
336
337 &mdio0 {
338 status = "okay";
339
340 pinctrl-0 = <&mdio0_pins>;
341 pinctrl-names = "default";
342
343 switch@10 {
344 compatible = "qca,qca8337";
345 #address-cells = <1>;
346 #size-cells = <0>;
347 reg = <0x10>;
348
349 ports {
350 #address-cells = <1>;
351 #size-cells = <0>;
352
353 port@0 {
354 reg = <0>;
355 label = "cpu";
356 ethernet = <&gmac1>;
357 phy-mode = "rgmii";
358 tx-internal-delay-ps = <1000>;
359 rx-internal-delay-ps = <1000>;
360
361 fixed-link {
362 speed = <1000>;
363 full-duplex;
364 };
365 };
366
367 port@1 {
368 reg = <1>;
369 label = "lan1";
370 phy-mode = "internal";
371 phy-handle = <&phy_port1>;
372 };
373
374 port@2 {
375 reg = <2>;
376 label = "lan2";
377 phy-mode = "internal";
378 phy-handle = <&phy_port2>;
379 };
380
381 port@3 {
382 reg = <3>;
383 label = "lan3";
384 phy-mode = "internal";
385 phy-handle = <&phy_port3>;
386 };
387
388 port@4 {
389 reg = <4>;
390 label = "lan4";
391 phy-mode = "internal";
392 phy-handle = <&phy_port4>;
393 };
394
395 port@5 {
396 reg = <5>;
397 label = "wan";
398 phy-mode = "internal";
399 phy-handle = <&phy_port5>;
400 };
401
402 port@6 {
403 reg = <6>;
404 label = "cpu";
405 ethernet = <&gmac2>;
406 phy-mode = "sgmii";
407 qca,sgmii-enable-pll;
408
409 fixed-link {
410 speed = <1000>;
411 full-duplex;
412 };
413 };
414 };
415
416 mdio {
417 #address-cells = <1>;
418 #size-cells = <0>;
419
420 phy_port1: phy@0 {
421 reg = <0>;
422 };
423
424 phy_port2: phy@1 {
425 reg = <1>;
426 };
427
428 phy_port3: phy@2 {
429 reg = <2>;
430 };
431
432 phy_port4: phy@3 {
433 reg = <3>;
434 };
435
436 phy_port5: phy@4 {
437 reg = <4>;
438 };
439 };
440 };
441 };
442
443 &gmac1 {
444 status = "okay";
445 phy-mode = "rgmii";
446 qcom,id = <1>;
447
448 pinctrl-0 = <&rgmii2_pins>;
449 pinctrl-names = "default";
450
451 nvmem-cells = <&macaddr_art_6 0>;
452 nvmem-cell-names = "mac-address";
453
454 fixed-link {
455 speed = <1000>;
456 full-duplex;
457 };
458 };
459
460 &gmac2 {
461 status = "okay";
462 phy-mode = "sgmii";
463 qcom,id = <2>;
464
465 nvmem-cells = <&macaddr_art_0>;
466 nvmem-cell-names = "mac-address";
467
468 fixed-link {
469 speed = <1000>;
470 full-duplex;
471 };
472 };