1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qcom-ipq8062-smb208.dtsi"
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 model = "NEC Platforms Aterm WG2600HP3";
9 compatible = "nec,wg2600hp3", "qcom,ipq8062", "qcom,ipq8064";
12 device_type = "memory";
13 reg = <0x42000000 0x1e000000>;
17 label-mac-device = &gmac2;
19 led-boot = &led_power_green;
20 led-failsafe = &led_power_red;
21 led-running = &led_power_green;
22 led-upgrade = &led_power_red;
26 compatible = "gpio-keys";
28 pinctrl-0 = <&buttons_pins>;
29 pinctrl-names = "default";
33 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_RESTART>;
35 debounce-interval = <60>;
41 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_WPS_BUTTON>;
43 debounce-interval = <60>;
49 gpios = <&qcom_pinmux 40 GPIO_ACTIVE_LOW>;
51 linux,input-type = <EV_SW>;
52 debounce-interval = <60>;
58 gpios = <&qcom_pinmux 41 GPIO_ACTIVE_LOW>;
60 linux,input-type = <EV_SW>;
61 debounce-interval = <60>;
67 compatible = "gpio-leds";
69 pinctrl-0 = <&leds_pins>;
70 pinctrl-names = "default";
72 led_power_green: power_green {
73 function = LED_FUNCTION_POWER;
74 color = <LED_COLOR_ID_GREEN>;
75 gpios = <&qcom_pinmux 14 GPIO_ACTIVE_HIGH>;
78 led_power_red: power_red {
79 function = LED_FUNCTION_POWER;
80 color = <LED_COLOR_ID_RED>;
81 gpios = <&qcom_pinmux 35 GPIO_ACTIVE_HIGH>;
85 label = "green:active";
86 gpios = <&qcom_pinmux 42 GPIO_ACTIVE_HIGH>;
91 gpios = <&qcom_pinmux 38 GPIO_ACTIVE_HIGH>;
95 label = "green:wlan2g";
96 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_HIGH>;
97 linux,default-trigger = "phy1tpt";
101 label = "red:wlan2g";
102 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
106 label = "green:wlan5g";
107 gpios = <&qcom_pinmux 57 GPIO_ACTIVE_HIGH>;
108 linux,default-trigger = "phy0tpt";
112 label = "red:wlan5g";
113 gpios = <&qcom_pinmux 58 GPIO_ACTIVE_HIGH>;
118 gpios = <&qcom_pinmux 46 GPIO_ACTIVE_HIGH>;
123 gpios = <&qcom_pinmux 36 GPIO_ACTIVE_HIGH>;
127 label = "green:converter";
128 gpios = <&qcom_pinmux 43 GPIO_ACTIVE_HIGH>;
132 label = "red:converter";
133 gpios = <&qcom_pinmux 15 GPIO_ACTIVE_HIGH>;
138 /* nand_pins are used for leds_pins, empty the node
142 /delete-property/ disable;
143 /delete-property/ pullups;
144 /delete-property/ hold;
148 pinctrl-0 = <&akro_pins>;
149 pinctrl-names = "default";
153 pins = "gpio18", "gpio19", "gpio21";
159 pins = "gpio18", "gpio19";
160 drive-strength = <10>;
165 drive-strength = <10>;
170 drive-strength = <12>;
174 buttons_pins: buttons_pins {
176 pins = "gpio22", "gpio24", "gpio40",
179 drive-strength = <2>;
184 leds_pins: leds_pins {
186 pins = "gpio14", "gpio15", "gpio35",
187 "gpio36", "gpio38", "gpio42",
188 "gpio43", "gpio46", "gpio55",
189 "gpio56", "gpio57", "gpio58";
195 pins = "gpio15", "gpio35", "gpio38",
196 "gpio42", "gpio43", "gpio46",
197 "gpio55", "gpio56", "gpio57",
199 drive-strength = <2>;
203 pins = "gpio14", "gpio36";
204 drive-strength = <4>;
209 * Stock firmware has the following settings, so let's do the same.
210 * I don't sure why these are required.
212 akro_pins: akro_pinmux {
214 pins = "gpio17", "gpio26", "gpio47";
216 drive-strength = <2>;
223 drive-strength = <2>;
231 drive-strength = <8>;
239 qcom,mode = <GSBI_PROT_SPI>;
244 pinctrl-0 = <&spi_pins>;
245 pinctrl-names = "default";
247 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
250 compatible = "jedec,spi-nor";
252 spi-max-frequency = <50000000>;
256 compatible = "fixed-partitions";
257 #address-cells = <1>;
262 reg = <0x0000000 0x0020000>;
268 reg = <0x0020000 0x0020000>;
274 reg = <0x0040000 0x0040000>;
280 reg = <0x0080000 0x0080000>;
286 reg = <0x0100000 0x0010000>;
292 reg = <0x0110000 0x0010000>;
298 reg = <0x0120000 0x0080000>;
304 reg = <0x01a0000 0x0080000>;
310 reg = <0x0220000 0x0080000>;
316 reg = <0x02a0000 0x0010000>;
320 factory: partition@2b0000 {
321 label = "PRODUCTDATA";
322 reg = <0x02b0000 0x0030000>;
326 compatible = "fixed-layout";
327 #address-cells = <1>;
330 macaddr_factory_0: macaddr@0 {
334 macaddr_factory_6: macaddr@6 {
338 macaddr_PRODUCTDATA_c: macaddr@c {
342 macaddr_PRODUCTDATA_12: macaddr@12 {
350 reg = <0x02e0000 0x0040000>;
354 compatible = "fixed-layout";
355 #address-cells = <1>;
358 precal_ART_1000: precal@1000 {
359 reg = <0x1000 0x2f20>;
362 precal_ART_5000: precal@5000 {
363 reg = <0x5000 0x2f20>;
370 reg = <0x0320000 0x0040000>;
376 reg = <0x0360000 0x0500000>;
381 compatible = "denx,uimage";
383 reg = <0x0860000 0x17a0000>;
398 reg = <0x00000000 0 0 0 0>;
399 #address-cells = <3>;
404 compatible = "qcom,ath10k";
405 reg = <0x00010000 0 0 0 0>;
407 qcom,ath10k-calibration-variant = "NEC-Platforms-WG2600HP3";
409 nvmem-cells = <&macaddr_PRODUCTDATA_12>, <&precal_ART_1000>;
410 nvmem-cell-names = "mac-address", "pre-calibration";
420 reg = <0x00000000 0 0 0 0>;
421 #address-cells = <3>;
426 compatible = "qcom,ath10k";
427 reg = <0x00010000 0 0 0 0>;
429 ieee80211-freq-limit = <2400000 2483000>;
430 qcom,ath10k-calibration-variant = "NEC-Platforms-WG2600HP3";
432 nvmem-cells = <&macaddr_PRODUCTDATA_c>, <&precal_ART_5000>;
433 nvmem-cell-names = "mac-address", "pre-calibration";
441 pinctrl-0 = <&mdio0_pins>;
442 pinctrl-names = "default";
445 compatible = "qca,qca8337";
446 #address-cells = <1>;
451 #address-cells = <1>;
459 tx-internal-delay-ps = <1000>;
470 phy-mode = "internal";
471 phy-handle = <&phy_port1>;
474 #address-cells = <1>;
479 color = <LED_COLOR_ID_GREEN>;
480 function = LED_FUNCTION_WAN;
481 function-enumerator = <1>;
482 default-state = "keep";
487 color = <LED_COLOR_ID_GREEN>;
488 function = LED_FUNCTION_WAN;
489 function-enumerator = <2>;
490 default-state = "keep";
495 color = <LED_COLOR_ID_GREEN>;
496 function = LED_FUNCTION_WAN;
497 function-enumerator = <3>;
498 default-state = "keep";
506 phy-mode = "internal";
507 phy-handle = <&phy_port2>;
510 #address-cells = <1>;
515 color = <LED_COLOR_ID_GREEN>;
516 function = LED_FUNCTION_LAN;
517 function-enumerator = <1>;
518 default-state = "keep";
523 color = <LED_COLOR_ID_GREEN>;
524 function = LED_FUNCTION_LAN;
525 function-enumerator = <2>;
526 default-state = "keep";
531 color = <LED_COLOR_ID_GREEN>;
532 function = LED_FUNCTION_LAN;
533 function-enumerator = <3>;
534 default-state = "keep";
542 phy-mode = "internal";
543 phy-handle = <&phy_port3>;
546 #address-cells = <1>;
551 color = <LED_COLOR_ID_GREEN>;
552 function = LED_FUNCTION_LAN;
553 function-enumerator = <1>;
554 default-state = "keep";
559 color = <LED_COLOR_ID_GREEN>;
560 function = LED_FUNCTION_LAN;
561 function-enumerator = <2>;
562 default-state = "keep";
567 color = <LED_COLOR_ID_GREEN>;
568 function = LED_FUNCTION_LAN;
569 function-enumerator = <3>;
570 default-state = "keep";
578 phy-mode = "internal";
579 phy-handle = <&phy_port4>;
582 #address-cells = <1>;
587 color = <LED_COLOR_ID_GREEN>;
588 function = LED_FUNCTION_LAN;
589 function-enumerator = <1>;
590 default-state = "keep";
595 color = <LED_COLOR_ID_GREEN>;
596 function = LED_FUNCTION_LAN;
597 function-enumerator = <2>;
598 default-state = "keep";
603 color = <LED_COLOR_ID_GREEN>;
604 function = LED_FUNCTION_LAN;
605 function-enumerator = <3>;
606 default-state = "keep";
614 phy-mode = "internal";
615 phy-handle = <&phy_port5>;
618 #address-cells = <1>;
623 color = <LED_COLOR_ID_GREEN>;
624 function = LED_FUNCTION_LAN;
625 function-enumerator = <1>;
626 default-state = "keep";
631 color = <LED_COLOR_ID_GREEN>;
632 function = LED_FUNCTION_LAN;
633 function-enumerator = <2>;
634 default-state = "keep";
639 color = <LED_COLOR_ID_GREEN>;
640 function = LED_FUNCTION_LAN;
641 function-enumerator = <3>;
642 default-state = "keep";
652 qca,sgmii-enable-pll;
653 qca,sgmii-rxclk-falling-edge;
663 #address-cells = <1>;
692 pinctrl-0 = <&rgmii2_pins>;
693 pinctrl-names = "default";
698 nvmem-cells = <&macaddr_factory_0>;
699 nvmem-cell-names = "mac-address";
712 nvmem-cells = <&macaddr_factory_6>;
713 nvmem-cell-names = "mac-address";