30b08eee3219f2ae86d4ba9f79b132747b6d20ba
[openwrt/staging/jow.git] / target / linux / qualcommax / files / arch / arm64 / boot / dts / qcom / ipq8074-rax120v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 /dts-v1/;
4
5 #include "ipq8074.dtsi"
6 #include "ipq8074-ess.dtsi"
7 #include "ipq8074-hk-cpu.dtsi"
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/leds/common.h>
11
12 / {
13 model = "Netgear RAX120v2";
14 compatible = "netgear,rax120v2", "qcom,ipq8074";
15
16 aliases {
17 serial0 = &blsp1_uart5;
18
19 led-running = &led_system_white;
20 led-upgrade = &led_system_white;
21 led-internet = &led_wan_white;
22 label-mac-device = &dp1;
23 };
24
25 chosen {
26 stdout-path = "serial0:115200n8";
27 bootargs-append = " ubi.mtd=rootfs root=/dev/ubiblock0_0";
28 };
29
30 keys {
31 compatible = "gpio-keys";
32
33 rfkill {
34 label = "rfkill";
35 gpios = <&tlmm 25 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RFKILL>;
37 };
38
39 wps {
40 label = "wps";
41 gpios = <&tlmm 57 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_WPS_BUTTON>;
43 };
44
45 reset {
46 label = "reset";
47 gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_RESTART>;
49 };
50 };
51
52 led_spi {
53 compatible = "spi-gpio";
54 #address-cells = <1>;
55 #size-cells = <0>;
56
57 sck-gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>;
58 mosi-gpios = <&tlmm 19 GPIO_ACTIVE_HIGH>;
59
60 led_gpio: led_gpio@0 {
61 compatible = "fairchild,74hc595";
62 reg = <0>;
63 gpio-controller;
64 #gpio-cells = <2>;
65 registers-number = <2>;
66 enable-gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>;
67 spi-max-frequency = <1000000>;
68 };
69 };
70
71 leds {
72 compatible = "gpio-leds";
73
74 led_system_white: system-white {
75 label = "white:system";
76 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
77 color = <LED_COLOR_ID_WHITE>;
78 };
79
80 led_24g_white {
81 label = "white:24g";
82 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
83 color = <LED_COLOR_ID_WHITE>;
84 linux,default-trigger = "phy1radio";
85 };
86
87 led_5g_white {
88 label = "white:5g";
89 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
90 color = <LED_COLOR_ID_WHITE>;
91 linux,default-trigger = "phy0radio";
92 };
93
94 led_usb1_white {
95 label = "white:usb1";
96 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
97 color = <LED_COLOR_ID_WHITE>;
98 };
99
100 led_usb2_white {
101 label = "white:usb2";
102 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
103 color = <LED_COLOR_ID_WHITE>;
104 };
105
106 led_wan_white: wan-white {
107 label = "white:wan";
108 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
109 color = <LED_COLOR_ID_WHITE>;
110 };
111
112 led_aqr_green {
113 label = "green:aqr";
114 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
115 color = <LED_COLOR_ID_GREEN>;
116 };
117
118 led_aqr_red {
119 label = "red:aqr";
120 gpios = <&led_gpio 10 GPIO_ACTIVE_LOW>;
121 color = <LED_COLOR_ID_RED>;
122 };
123
124 led_aqr_white {
125 label = "white:aqr";
126 gpios = <&led_gpio 11 GPIO_ACTIVE_LOW>;
127 color = <LED_COLOR_ID_WHITE>;
128 };
129
130 led_wps_white {
131 label = "white:wps";
132 gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
133 color = <LED_COLOR_ID_WHITE>;
134 };
135 };
136 };
137
138 &tlmm {
139 mdio_pins: mdio-pins {
140 mdc {
141 pins = "gpio68";
142 function = "mdc";
143 drive-strength = <8>;
144 bias-pull-up;
145 };
146
147 mdio {
148 pins = "gpio69";
149 function = "mdio";
150 drive-strength = <8>;
151 bias-pull-up;
152 };
153 };
154 };
155
156 &mdio {
157 status = "okay";
158
159 pinctrl-0 = <&mdio_pins>;
160 pinctrl-names = "default";
161 reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
162
163 qca8075_0: ethernet-phy@0 {
164 compatible = "ethernet-phy-ieee802.3-c22";
165 reg = <0>;
166 };
167
168 qca8075_1: ethernet-phy@1 {
169 compatible = "ethernet-phy-ieee802.3-c22";
170 reg = <1>;
171 };
172
173 qca8075_2: ethernet-phy@2 {
174 compatible = "ethernet-phy-ieee802.3-c22";
175 reg = <2>;
176 };
177
178 qca8075_3: ethernet-phy@3 {
179 compatible = "ethernet-phy-ieee802.3-c22";
180 reg = <3>;
181 };
182
183 qca8075_4: ethernet-phy@4 {
184 compatible = "ethernet-phy-ieee802.3-c22";
185 reg = <4>;
186 };
187
188 aqr111b0: ethernet-phy@7 {
189 compatible ="ethernet-phy-ieee802.3-c45";
190 reg = <7>;
191 reset-gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
192 };
193 };
194
195 &switch {
196 status = "okay";
197
198 switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4 | ESS_PORT5)>; /* lan port bitmap */
199 switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
200 switch_mac_mode = <MAC_MODE_PSGMII>; /* mac mode for uniphy instance0*/
201 switch_mac_mode2 = <MAC_MODE_USXGMII>; /* mac mode for uniphy instance2*/
202 bm_tick_mode = <0>; /* bm tick mode */
203 tm_tick_mode = <0>; /* tm tick mode */
204
205 qcom,port_phyinfo {
206 port@1 {
207 port_id = <1>;
208 phy_address = <0>;
209 };
210 port@2 {
211 port_id = <2>;
212 phy_address = <1>;
213 };
214 port@3 {
215 port_id = <3>;
216 phy_address = <2>;
217 };
218 port@4 {
219 port_id = <4>;
220 phy_address = <3>;
221 };
222 port@5 {
223 port_id = <5>;
224 phy_address = <4>;
225 };
226 port@6 {
227 port_id = <6>;
228 phy_address = <7>;
229 compatible = "ethernet-phy-ieee802.3-c45";
230 ethernet-phy-ieee802.3-c45;
231 };
232 };
233 };
234
235 &edma {
236 status = "okay";
237 };
238
239 &dp1 {
240 status = "okay";
241 phy-handle = <&qca8075_0>;
242 label = "lan4";
243 nvmem-cells = <&macaddr_dp1>;
244 nvmem-cell-names = "mac-address";
245 };
246
247 &dp2 {
248 status = "okay";
249 phy-handle = <&qca8075_1>;
250 label = "lan3";
251 nvmem-cells = <&macaddr_dp2>;
252 nvmem-cell-names = "mac-address";
253 };
254
255 &dp3 {
256 status = "okay";
257 phy-handle = <&qca8075_2>;
258 label = "lan2";
259 nvmem-cells = <&macaddr_dp3>;
260 nvmem-cell-names = "mac-address";
261 };
262
263 &dp4 {
264 status = "okay";
265 phy-handle = <&qca8075_3>;
266 label = "lan1";
267 nvmem-cells = <&macaddr_dp4>;
268 nvmem-cell-names = "mac-address";
269 };
270
271 &dp5 {
272 status = "okay";
273 phy-handle = <&qca8075_4>;
274 label = "wan";
275 nvmem-cells = <&macaddr_dp5>;
276 nvmem-cell-names = "mac-address";
277 };
278
279 &dp6_syn {
280 status = "okay";
281 phy-handle = <&aqr111b0>;
282 label = "lan5";
283 nvmem-cells = <&macaddr_dp6_syn>;
284 nvmem-cell-names = "mac-address";
285 };
286
287 &blsp1_uart5 {
288 status = "okay";
289 };
290
291 &blsp1_i2c2 {
292 status = "okay";
293
294 g761@3e {
295 compatible = "gmt,g763";
296 reg = <0x3e>;
297 clocks =<&sleep_clk>;
298 fan_gear_mode = <0>;
299 fan_start = <1>;
300 pwm_polarity = <0>;
301 };
302 };
303
304 &qpic_bam {
305 status = "okay";
306 };
307
308 &qpic_nand {
309 status = "okay";
310
311 nand@0 {
312 reg = <0>;
313 nand-ecc-strength = <4>;
314 nand-ecc-step-size = <512>;
315 nand-bus-width = <8>;
316
317 partitions {
318 compatible = "fixed-partitions";
319 #address-cells = <1>;
320 #size-cells = <1>;
321
322 partition@0 {
323 label = "0:sbl1";
324 reg = <0x00 0x100000>;
325 read-only;
326 };
327
328 partition@100000 {
329 label = "0:mibib";
330 reg = <0x100000 0x100000>;
331 read-only;
332 };
333
334 partition@200000 {
335 label = "0:bootconfig";
336 reg = <0x200000 0x80000>;
337 read-only;
338 };
339
340 partition@280000 {
341 label = "0:bootconfig_1";
342 reg = <0x280000 0x80000>;
343 read-only;
344 };
345
346 partition@300000 {
347 label = "0:qsee";
348 reg = <0x300000 0x300000>;
349 read-only;
350 };
351
352 partition@600000 {
353 label = "0:qsee_1";
354 reg = <0x600000 0x300000>;
355 read-only;
356 };
357
358 partition@900000 {
359 label = "0:devcfg";
360 reg = <0x900000 0x80000>;
361 read-only;
362 };
363
364 partition@980000 {
365 label = "0:devcfg_1";
366 reg = <0x980000 0x80000>;
367 read-only;
368 };
369
370 partition@a00000 {
371 label = "0:apdp";
372 reg = <0xa00000 0x80000>;
373 read-only;
374 };
375
376 partition@a80000 {
377 label = "0:apdp_1";
378 reg = <0xa80000 0x80000>;
379 read-only;
380 };
381
382 partition@b00000 {
383 label = "0:rpm";
384 reg = <0xb00000 0x80000>;
385 read-only;
386 };
387
388 partition@b80000 {
389 label = "0:rpm_1";
390 reg = <0xb80000 0x80000>;
391 read-only;
392 };
393
394 partition@c00000 {
395 label = "0:cdt";
396 reg = <0xc00000 0x80000>;
397 read-only;
398 };
399
400 partition@c80000 {
401 label = "0:cdt_1";
402 reg = <0xc80000 0x80000>;
403 read-only;
404 };
405
406 partition@d00000 {
407 label = "0:appsblenv";
408 reg = <0xd00000 0x80000>;
409 };
410
411 partition@d80000 {
412 label = "0:appsbl";
413 reg = <0xd80000 0x100000>;
414 read-only;
415 };
416
417 partition@e80000 {
418 label = "0:appsbl_1";
419 reg = <0xe80000 0x100000>;
420 read-only;
421 };
422
423 partition@f80000 {
424 label = "0:art";
425 reg = <0xf80000 0x80000>;
426 read-only;
427 };
428
429 partition@1000000 {
430 label = "0:art.bak";
431 reg = <0x1000000 0x0080000>;
432 read-only;
433 };
434
435 partition@1080000 {
436 label = "config";
437 reg = <0x1080000 0x0100000>;
438 read-only;
439 };
440
441 partition@1180000 {
442 label = "boarddata1";
443 reg = <0x1180000 0x0100000>;
444 read-only;
445
446 compatible = "nvmem-cells";
447 #address-cells = <1>;
448 #size-cells = <1>;
449
450 macaddr_dp1: macaddr@0 {
451 reg = <0x0 0x6>;
452 };
453
454 macaddr_dp2: macaddr@1 {
455 reg = <0x6 0x6>;
456 };
457
458 macaddr_dp3: macaddr@2 {
459 reg = <0xc 0x6>;
460 };
461
462 macaddr_dp4: macaddr@3 {
463 reg = <0x12 0x6>;
464 };
465
466 macaddr_dp5: macaddr@4 {
467 reg = <0x18 0x6>;
468 };
469
470 macaddr_dp6_syn: macaddr@5 {
471 reg = <0x1e 0x6>;
472 };
473
474 };
475
476 partition@1280000 {
477 label = "boarddata2";
478 reg = <0x1280000 0x0100000>;
479 read-only;
480 };
481
482 partition@1380000 {
483 label = "pot";
484 reg = <0x1380000 0x0100000>;
485 read-only;
486 };
487
488 partition@1480000 {
489 label = "dnidata";
490 reg = <0x1480000 0x0500000>;
491 read-only;
492 };
493
494 partition@1980000 {
495 label = "kernel";
496 reg = <0x1980000 0x1d00000>;
497 };
498
499 partition@7e00000 {
500 label = "ethphyfw";
501 reg = <0x7e00000 0x80000>;
502 };
503
504 partition@e8800000 {
505 label = "rootfs";
506 reg = <0xe880000 0x11780000>;
507 };
508 };
509 };
510 };
511
512 &qusb_phy_0 {
513 status = "okay";
514 };
515
516 &qusb_phy_1 {
517 status = "okay";
518 };
519
520 &ssphy_0 {
521 status = "okay";
522 };
523
524 &ssphy_1 {
525 status = "okay";
526 };
527
528 &usb_0 {
529 status = "okay";
530 };
531
532 &usb_1 {
533 status = "okay";
534 };
535
536 &wifi{
537 status = "okay";
538
539 qcom,ath11k-calibration-variant = "Netgear-RAX120v2";
540 };
541
542 &cryptobam {
543 status = "okay";
544 };
545
546 &crypto {
547 status = "okay";
548 };
549
550 &prng {
551 status = "okay";
552 };