ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qcn5502_netgear_ex7300-v2.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 = "Netgear EX7300 v2";
11 compatible = "netgear,ex7300-v2", "qca,qcn5500", "qca,qca9560";
12
13 aliases {
14 led-boot = &led_power_green;
15 led-failsafe = &led_power_amber;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_amber;
18 label-mac-device = &eth0;
19 };
20
21 led_spi {
22 compatible = "spi-gpio";
23 #address-cells = <1>;
24 #size-cells = <0>;
25
26 sck-gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
27 mosi-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
28 num-chipselects = <0>;
29
30 led_gpio: led_gpio@0 {
31 compatible = "fairchild,74hc595";
32 reg = <0>;
33 gpio-controller;
34 #gpio-cells = <2>;
35 registers-number = <1>;
36 spi-max-frequency = <500000>;
37 };
38 };
39
40 leds {
41 compatible = "gpio-leds";
42
43 led_power_green: power_green {
44 function = LED_FUNCTION_POWER;
45 color = <LED_COLOR_ID_GREEN>;
46 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
47 };
48
49 led_power_amber: power_amber {
50 function = LED_FUNCTION_POWER;
51 color = <LED_COLOR_ID_AMBER>;
52 gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
53 };
54
55 wps_green {
56 function = LED_FUNCTION_WPS;
57 color = <LED_COLOR_ID_GREEN>;
58 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
59 };
60
61 router_red {
62 label = "red:router";
63 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
64 };
65
66 router_green {
67 label = "green:router";
68 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
69 };
70
71 client_red {
72 label = "red:client";
73 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
74 };
75
76 client_green {
77 label = "green:client";
78 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
79 };
80
81 left_blue {
82 label = "blue:left";
83 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
84 };
85
86 right_blue {
87 label = "blue:right";
88 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
89 };
90 };
91
92 keys {
93 compatible = "gpio-keys";
94
95 reset {
96 label = "Reset button";
97 linux,code = <KEY_RESTART>;
98 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
99 debounce-interval = <60>;
100 };
101
102 wps {
103 label = "WPS button";
104 linux,code = <KEY_WPS_BUTTON>;
105 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
106 debounce-interval = <60>;
107 };
108
109 extender_apmode {
110 label = "EXTENDER/APMODE switch";
111 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
112 linux,code = <BTN_0>;
113 linux,input-type = <EV_SW>;
114 debounce-interval = <60>;
115 };
116 };
117 };
118
119 &pcie {
120 status = "okay";
121
122 wifi@0,0 {
123 compatible = "qcom,ath10k";
124 reg = <0 0 0 0 0>;
125
126 nvmem-cells = <&macaddr_artmtd_c>, <&precal_art_5000>;
127 nvmem-cell-names = "mac-address", "pre-calibration";
128 };
129 };
130
131 &spi {
132 status = "okay";
133
134 flash@0 {
135 compatible = "jedec,spi-nor";
136 reg = <0>;
137 spi-max-frequency = <25000000>;
138
139 partitions {
140 compatible = "fixed-partitions";
141 #address-cells = <1>;
142 #size-cells = <1>;
143
144 partition@0 {
145 label = "u-boot";
146 reg = <0x000000 0x040000>;
147 read-only;
148 };
149
150 partition@40000 {
151 label = "u-boot-env";
152 reg = <0x040000 0x010000>;
153 read-only;
154 };
155
156 partition@50000 {
157 label = "config";
158 reg = <0x050000 0x010000>;
159 };
160
161 partition@60000 {
162 label = "pot";
163 reg = <0x060000 0x010000>;
164 read-only;
165 };
166
167 partition@70000 {
168 label = "firmware";
169 reg = <0x70000 0xe30000>;
170 compatible = "denx,uimage";
171 };
172
173 partition@ea0000 {
174 label = "rae";
175 reg = <0xea0000 0x100000>;
176 read-only;
177 };
178
179 partition@fa0000 {
180 label = "oopsdump";
181 reg = <0xfa0000 0x40000>;
182 read-only;
183 };
184
185 partition@fe0000 {
186 label = "artmtd";
187 reg = <0xfe0000 0x10000>;
188
189 nvmem-layout {
190 compatible = "fixed-layout";
191 #address-cells = <1>;
192 #size-cells = <1>;
193
194 macaddr_artmtd_0: macaddr@0 {
195 reg = <0x0 0x6>;
196 };
197
198 macaddr_artmtd_6: macaddr@6 {
199 reg = <0x6 0x6>;
200 };
201
202 macaddr_artmtd_c: macaddr@c {
203 reg = <0xc 0x6>;
204 };
205 };
206 };
207
208 partition@ff0000 {
209 label = "art";
210 reg = <0xff0000 0x10000>;
211 read-only;
212
213 nvmem-layout {
214 compatible = "fixed-layout";
215 #address-cells = <1>;
216 #size-cells = <1>;
217
218 cal_art_1000: cal@1000 {
219 reg = <0x1000 0x440>;
220 };
221
222 precal_art_5000: precal@5000 {
223 reg = <0x5000 0x2f20>;
224 };
225 };
226 };
227 };
228 };
229 };
230
231
232 &wmac {
233 /* Does not work due to lack of QCN5502 support in ath9k. */
234 status = "disabled";
235
236 nvmem-cells = <&macaddr_artmtd_6>, <&cal_art_1000>;
237 nvmem-cell-names = "mac-address", "calibration";
238 };
239
240 &mdio0 {
241 status = "okay";
242
243 phy5: ethernet-phy@5 {
244 reg = <5>;
245 phy-mode = "sgmii";
246 };
247 };
248
249 &eth0 {
250 status = "okay";
251
252 nvmem-cells = <&macaddr_artmtd_0>;
253 nvmem-cell-names = "mac-address";
254
255 phy-handle = <&phy5>;
256 phy-mode = "sgmii";
257
258 pll-data = <0x03000000 0x00000101 0x00001313>;
259 };