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 led-boot = &led_power_green;
15 led-failsafe = &led_power_red;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_green;
21 compatible = "gpio-leds";
22 pinctrl-names = "default";
23 pinctrl-0 = <&jtag_disable_pins>;
26 label = "wg800hp:red:wlan2g";
27 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
31 label = "wg800hp:red:active";
32 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
36 label = "wg800hp:green:active";
37 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
40 led_power_red: power_red {
41 label = "wg800hp:red:power";
42 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
45 led_power_green: power_green {
46 label = "wg800hp:green:power";
47 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
52 label = "wg800hp:red:wlan5g";
53 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
57 label = "wg800hp:green:wlan5g";
58 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
59 linux,default-trigger = "phy0tpt";
63 label = "wg800hp:green:wlan2g";
64 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
65 linux,default-trigger = "phy1tpt";
70 compatible = "gpio-keys";
74 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
76 linux,input-type = <EV_SW>;
77 debounce-interval = <60>;
82 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
83 linux,code = <KEY_RESTART>;
84 debounce-interval = <60>;
89 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
90 linux,code = <KEY_WPS_BUTTON>;
91 debounce-interval = <60>;
101 compatible = "jedec,spi-nor";
103 spi-max-frequency = <25000000>;
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
112 reg = <0x000000 0x040000>;
117 label = "u-boot-env";
118 reg = <0x040000 0x010000>;
123 compatible = "denx,uimage";
125 reg = <0x050000 0x6f0000>;
130 reg = <0x740000 0x0a0000>;
135 label = "board_data";
136 reg = <0x7e0000 0x010000>;
140 art: partition@7f0000 {
142 reg = <0x7f0000 0x010000>;
152 phy0: ethernet-phy@0 {
155 qca,ar8327-initvals = <
156 0x04 0x00000080 /* PORT0 PAD MODE CTRL */
157 0x50 0xcc35cc35 /* LED_CTRL0 */
158 0x54 0xca35ca35 /* LED_CTRL1 */
159 0x58 0xc935c935 /* LED_CTRL2 */
160 0x5c 0x03ffff00 /* LED_CTRL3 */
161 0x7c 0x0000007e /* PORT0_STATUS */
170 phy-handle = <&phy0>;