1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qcom-ipq8062.dtsi"
4 #include <dt-bindings/input/input.h>
6 /delete-node/ &nand_pins;
9 model = "NEC Platforms Aterm WG2600HP3";
10 compatible = "nec,wg2600hp3", "qcom,ipq8062", "qcom,ipq8064";
13 device_type = "memory";
14 reg = <0x42000000 0x1e000000>;
18 label-mac-device = &gmac2;
20 led-boot = &led_power_green;
21 led-failsafe = &led_power_red;
22 led-running = &led_power_green;
23 led-upgrade = &led_power_red;
27 compatible = "gpio-keys";
29 pinctrl-0 = <&buttons_pins>;
30 pinctrl-names = "default";
34 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_RESTART>;
40 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_WPS_BUTTON>;
46 gpios = <&qcom_pinmux 40 GPIO_ACTIVE_LOW>;
48 linux,input-type = <EV_SW>;
53 gpios = <&qcom_pinmux 41 GPIO_ACTIVE_LOW>;
55 linux,input-type = <EV_SW>;
60 compatible = "gpio-leds";
62 pinctrl-0 = <&leds_pins>;
63 pinctrl-names = "default";
65 led_power_green: power_green {
66 label = "green:power";
67 gpios = <&qcom_pinmux 14 GPIO_ACTIVE_HIGH>;
70 led_power_red: power_red {
72 gpios = <&qcom_pinmux 35 GPIO_ACTIVE_HIGH>;
76 label = "green:active";
77 gpios = <&qcom_pinmux 42 GPIO_ACTIVE_HIGH>;
82 gpios = <&qcom_pinmux 38 GPIO_ACTIVE_HIGH>;
86 label = "green:wlan2g";
87 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_HIGH>;
88 linux,default-trigger = "phy1tpt";
93 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
97 label = "green:wlan5g";
98 gpios = <&qcom_pinmux 57 GPIO_ACTIVE_HIGH>;
99 linux,default-trigger = "phy0tpt";
103 label = "red:wlan5g";
104 gpios = <&qcom_pinmux 58 GPIO_ACTIVE_HIGH>;
109 gpios = <&qcom_pinmux 46 GPIO_ACTIVE_HIGH>;
114 gpios = <&qcom_pinmux 36 GPIO_ACTIVE_HIGH>;
118 label = "green:converter";
119 gpios = <&qcom_pinmux 43 GPIO_ACTIVE_HIGH>;
123 label = "red:converter";
124 gpios = <&qcom_pinmux 15 GPIO_ACTIVE_HIGH>;
130 pinctrl-0 = <&akro_pins>;
131 pinctrl-names = "default";
135 pins = "gpio18", "gpio19", "gpio21";
141 pins = "gpio18", "gpio19";
142 drive-strength = <10>;
147 drive-strength = <10>;
152 drive-strength = <12>;
156 buttons_pins: buttons_pins {
158 pins = "gpio22", "gpio24", "gpio40",
161 drive-strength = <2>;
166 leds_pins: leds_pins {
168 pins = "gpio14", "gpio15", "gpio35",
169 "gpio36", "gpio38", "gpio42",
170 "gpio43", "gpio46", "gpio55",
171 "gpio56", "gpio57", "gpio58";
177 pins = "gpio15", "gpio35", "gpio38",
178 "gpio42", "gpio43", "gpio46",
179 "gpio55", "gpio56", "gpio57",
181 drive-strength = <2>;
185 pins = "gpio14", "gpio36";
186 drive-strength = <4>;
191 * Stock firmware has the following settings, so let's do the same.
192 * I don't sure why these are required.
194 akro_pins: akro_pinmux {
196 pins = "gpio17", "gpio26", "gpio47";
198 drive-strength = <2>;
205 drive-strength = <2>;
213 drive-strength = <8>;
221 qcom,mode = <GSBI_PROT_SPI>;
226 pinctrl-0 = <&spi_pins>;
227 pinctrl-names = "default";
229 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
232 compatible = "jedec,spi-nor";
234 spi-max-frequency = <50000000>;
238 compatible = "fixed-partitions";
239 #address-cells = <1>;
244 reg = <0x0000000 0x0020000>;
250 reg = <0x0020000 0x0020000>;
256 reg = <0x0040000 0x0040000>;
262 reg = <0x0080000 0x0080000>;
268 reg = <0x0100000 0x0010000>;
274 reg = <0x0110000 0x0010000>;
280 reg = <0x0120000 0x0080000>;
286 reg = <0x01a0000 0x0080000>;
292 reg = <0x0220000 0x0080000>;
298 reg = <0x02a0000 0x0010000>;
302 factory: partition@2b0000 {
303 label = "PRODUCTDATA";
304 reg = <0x02b0000 0x0030000>;
310 reg = <0x02e0000 0x0040000>;
316 reg = <0x0320000 0x0040000>;
322 reg = <0x0360000 0x0500000>;
327 compatible = "denx,uimage";
329 reg = <0x0860000 0x17a0000>;
344 reg = <0x00000000 0 0 0 0>;
345 #address-cells = <3>;
350 compatible = "qcom,ath10k";
351 reg = <0x00010000 0 0 0 0>;
353 qcom,ath10k-calibration-variant = "NEC-Platforms-WG2600HP3";
363 reg = <0x00000000 0 0 0 0>;
364 #address-cells = <3>;
369 compatible = "qcom,ath10k";
370 reg = <0x00010000 0 0 0 0>;
372 ieee80211-freq-limit = <2400000 2483000>;
373 qcom,ath10k-calibration-variant = "NEC-Platforms-WG2600HP3";
381 pinctrl-0 = <&mdio0_pins>;
382 pinctrl-names = "default";
384 phy0: ethernet-phy@0 {
386 qca,ar8327-initvals = <
387 0x04 0x80080080 /* PAD0_MODE */
388 0x0c 0x06000000 /* PAD6_MODE */
389 0x10 0x002613a0 /* PWS_REG */
390 0x50 0xcc36cc36 /* LED_CTRL0 */
391 0x54 0xca36ca36 /* LED_CTRL1 */
392 0x58 0xc936c936 /* LED_CTRL2 */
393 0x5c 0x03ffff00 /* LED_CTRL3 */
394 0x7c 0x0000004e /* PORT0_STATUS */
395 0x94 0x0000004e /* PORT6_STATUS */
396 0xe0 0xc74164de /* SGMII_CTRL */
397 0xe4 0x0006a545 /* MAC_PWR_SEL */
405 pinctrl-0 = <&rgmii2_pins>;
406 pinctrl-names = "default";
411 mtd-mac-address = <&factory 0x0>;
424 mtd-mac-address = <&factory 0x6>;