1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
7 #include "qca956x.dtsi"
10 model = "NEC Aterm WG800HP";
11 compatible = "nec,wg800hp", "qca,qca9563";
14 bootargs = "console=ttyS0,115200n8";
18 led-boot = &power_green;
19 led-failsafe = &power_red;
20 led-running = &power_green;
21 led-upgrade = &power_green;
25 compatible = "gpio-leds";
26 pinctrl-names = "default";
27 pinctrl-0 = <&jtag_disable_pins>;
30 label = "wg800hp:red:wlan2g";
31 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
35 label = "wg800hp:red:active";
36 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
40 label = "wg800hp:green:active";
41 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
44 power_red: power_red {
45 label = "wg800hp:red:power";
46 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
49 power_green: power_green {
50 label = "wg800hp:green:power";
51 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
56 label = "wg800hp:red:wlan5g";
57 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
61 label = "wg800hp:green:wlan5g";
62 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
63 linux,default-trigger = "phy0tpt";
67 label = "wg800hp:green:wlan2g";
68 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
69 linux,default-trigger = "phy1tpt";
74 compatible = "gpio-keys";
78 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
80 linux,input-type = <EV_SW>;
81 debounce-interval = <60>;
86 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_RESTART>;
88 debounce-interval = <60>;
93 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
94 linux,code = <KEY_WPS_BUTTON>;
95 debounce-interval = <60>;
105 compatible = "jedec,spi-nor";
107 spi-max-frequency = <25000000>;
110 compatible = "fixed-partitions";
111 #address-cells = <1>;
116 reg = <0x000000 0x040000>;
121 label = "u-boot-env";
122 reg = <0x040000 0x010000>;
127 compatible = "denx,uimage";
129 reg = <0x050000 0x6f0000>;
134 reg = <0x740000 0x0a0000>;
139 label = "board_data";
140 reg = <0x7e0000 0x010000>;
144 art: partition@7f0000 {
146 reg = <0x7f0000 0x010000>;
156 phy0: ethernet-phy@0 {
159 qca,ar8327-initvals = <
160 0x04 0x00000080 /* PORT0 PAD MODE CTRL */
161 0x50 0xcc35cc35 /* LED_CTRL0 */
162 0x54 0xca35ca35 /* LED_CTRL1 */
163 0x58 0xc935c935 /* LED_CTRL2 */
164 0x5c 0x03ffff00 /* LED_CTRL3 */
165 0x7c 0x0000007e /* PORT0_STATUS */
174 phy-handle = <&phy0>;