1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca956x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
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>;
27 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
32 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
36 label = "green:active";
37 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
40 led_power_red: power_red {
41 function = LED_FUNCTION_POWER;
42 color = <LED_COLOR_ID_RED>;
43 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
46 led_power_green: power_green {
47 function = LED_FUNCTION_POWER;
48 color = <LED_COLOR_ID_GREEN>;
49 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
55 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
59 label = "green:wlan5g";
60 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
61 linux,default-trigger = "phy0tpt";
65 label = "green:wlan2g";
66 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
67 linux,default-trigger = "phy1tpt";
72 compatible = "gpio-keys";
76 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
78 linux,input-type = <EV_SW>;
79 debounce-interval = <60>;
84 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
85 linux,code = <KEY_RESTART>;
86 debounce-interval = <60>;
91 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_WPS_BUTTON>;
93 debounce-interval = <60>;
102 compatible = "jedec,spi-nor";
104 spi-max-frequency = <25000000>;
107 compatible = "fixed-partitions";
108 #address-cells = <1>;
113 reg = <0x000000 0x040000>;
118 label = "u-boot-env";
119 reg = <0x040000 0x010000>;
124 compatible = "denx,uimage";
126 reg = <0x050000 0x6f0000>;
131 reg = <0x740000 0x0a0000>;
136 label = "board_data";
137 reg = <0x7e0000 0x010000>;
141 compatible = "fixed-layout";
142 #address-cells = <1>;
145 macaddr_board_data_880: macaddr@880 {
146 compatible = "mac-base";
148 #nvmem-cell-cells = <1>;
153 art: partition@7f0000 {
155 reg = <0x7f0000 0x010000>;
159 compatible = "fixed-layout";
160 #address-cells = <1>;
163 cal_art_5000: calibration@5000 {
164 reg = <0x5000 0x844>;
175 phy0: ethernet-phy@0 {
178 qca,ar8327-initvals = <
179 0x04 0x00000080 /* PORT0 PAD MODE CTRL */
180 0x50 0xcc35cc35 /* LED_CTRL0 */
181 0x54 0xca35ca35 /* LED_CTRL1 */
182 0x58 0xc935c935 /* LED_CTRL2 */
183 0x5c 0x03ffff00 /* LED_CTRL3 */
184 0x7c 0x0000007e /* PORT0_STATUS */
193 phy-handle = <&phy0>;
200 compatible = "qcom,ath10k";
201 reg = <0x0000 0 0 0 0>;
202 nvmem-cells = <&cal_art_5000>, <&macaddr_board_data_880 0>;
203 nvmem-cell-names = "calibration", "mac-address";