ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_nec_wg800hp.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 model = "NEC Aterm WG800HP";
11 compatible = "nec,wg800hp", "qca,qca9563";
12
13 aliases {
14 led-boot = &led_power_green;
15 led-failsafe = &led_power_red;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_green;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22 pinctrl-names = "default";
23 pinctrl-0 = <&jtag_disable_pins>;
24
25 wlan2g_red {
26 label = "red:wlan2g";
27 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
28 };
29
30 active_red {
31 label = "red:active";
32 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
33 };
34
35 active_green {
36 label = "green:active";
37 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
38 };
39
40 led_power_red: power_red {
41 function = LED_FUNCTION_POWER;
42 color = <LED_COLOR_ID_RED>;
43 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
44 };
45
46 led_power_green: power_green {
47 function = LED_FUNCTION_POWER;
48 color = <LED_COLOR_ID_GREEN>;
49 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
50 default-state = "on";
51 };
52
53 wlan5g_red {
54 label = "red:wlan5g";
55 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
56 };
57
58 wlan5g_green {
59 label = "green:wlan5g";
60 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
61 linux,default-trigger = "phy0tpt";
62 };
63
64 wlan2g_green {
65 label = "green:wlan2g";
66 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
67 linux,default-trigger = "phy1tpt";
68 };
69 };
70
71 keys {
72 compatible = "gpio-keys";
73
74 br {
75 label = "br";
76 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
77 linux,code = <BTN_0>;
78 linux,input-type = <EV_SW>;
79 debounce-interval = <60>;
80 };
81
82 reset {
83 label = "reset";
84 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
85 linux,code = <KEY_RESTART>;
86 debounce-interval = <60>;
87 };
88
89 wps {
90 label = "wps";
91 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_WPS_BUTTON>;
93 debounce-interval = <60>;
94 };
95 };
96 };
97
98 &spi {
99 status = "okay";
100
101 flash@0 {
102 compatible = "jedec,spi-nor";
103 reg = <0>;
104 spi-max-frequency = <25000000>;
105
106 partitions {
107 compatible = "fixed-partitions";
108 #address-cells = <1>;
109 #size-cells = <1>;
110
111 partition@0 {
112 label = "u-boot";
113 reg = <0x000000 0x040000>;
114 read-only;
115 };
116
117 partition@40000 {
118 label = "u-boot-env";
119 reg = <0x040000 0x010000>;
120 read-only;
121 };
122
123 partition@50000 {
124 compatible = "denx,uimage";
125 label = "firmware";
126 reg = <0x050000 0x6f0000>;
127 };
128
129 partition@740000 {
130 label = "user_data";
131 reg = <0x740000 0x0a0000>;
132 read-only;
133 };
134
135 partition@7e0000 {
136 label = "board_data";
137 reg = <0x7e0000 0x010000>;
138 read-only;
139
140 nvmem-layout {
141 compatible = "fixed-layout";
142 #address-cells = <1>;
143 #size-cells = <1>;
144
145 macaddr_board_data_880: macaddr@880 {
146 compatible = "mac-base";
147 reg = <0x880 0x11>;
148 #nvmem-cell-cells = <1>;
149 };
150 };
151 };
152
153 art: partition@7f0000 {
154 label = "art";
155 reg = <0x7f0000 0x010000>;
156 read-only;
157
158 nvmem-layout {
159 compatible = "fixed-layout";
160 #address-cells = <1>;
161 #size-cells = <1>;
162
163 cal_art_5000: calibration@5000 {
164 reg = <0x5000 0x844>;
165 };
166 };
167 };
168 };
169 };
170 };
171
172 &mdio0 {
173 status = "okay";
174
175 phy0: ethernet-phy@0 {
176 reg = <0>;
177
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 */
185 >;
186 };
187 };
188
189 &eth0 {
190 status = "okay";
191
192 phy-mode = "sgmii";
193 phy-handle = <&phy0>;
194 };
195
196 &pcie {
197 status = "okay";
198
199 wifi@0,0 {
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";
204 };
205 };
206
207 &wmac {
208 status = "okay";
209 qca,no-eeprom;
210 };