ipq40xx: switch default to 6.6
[openwrt/openwrt.git] / target / linux / ipq40xx / files-6.1 / arch / arm / boot / dts / qcom-ipq4029-ws-ap391x.dts
1 // SPDX-License-Identifier: GPL-2.0-only OR MIT
2
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/soc/qcom,tcsr.h>
7
8 / {
9 model = "Extreme Networks WS-AP391x";
10 compatible = "extreme-networks,ws-ap391x";
11
12 aliases {
13 led-boot = &led_system_green;
14 led-failsafe = &led_system_red;
15 led-running = &led_system_green;
16 led-upgrade = &led_system_red;
17 };
18
19 soc {
20
21 tcsr@1949000 {
22 compatible = "qcom,tcsr";
23 reg = <0x1949000 0x100>;
24 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
25 };
26
27 ess_tcsr@1953000 {
28 compatible = "qcom,tcsr";
29 reg = <0x1953000 0x1000>;
30 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
31 };
32
33 tcsr@1957000 {
34 compatible = "qcom,tcsr";
35 reg = <0x1957000 0x100>;
36 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
37 };
38
39 };
40
41 leds {
42 compatible = "gpio-leds";
43
44 led_system_green: system_green {
45 label = "system:green";
46 gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
47 };
48
49 /*
50 * system:amber ==> AP3917
51 * system:red ==> AP3916
52 * */
53 led_system_red: system_red {
54 label = "system:red_or_system:amber";
55 gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
56 };
57
58 led_wlan24_green: wlan24_green {
59 label = "wlan24:green";
60 gpios = <&tlmm 23 GPIO_ACTIVE_LOW>;
61 linux,default-trigger = "phy0tpt";
62 };
63
64 /*
65 * wlan24:amber ==> AP3915/AP3917
66 * pse:green ==> AP3912
67 * */
68 led_wlan24_amber: wlan24_amber {
69 label = "wlan24:amber_or_pse:green";
70 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
71 };
72
73 led_wlan5_green: wlan5_green {
74 label = "wlan5:green";
75 gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
76 linux,default-trigger = "phy1tpt";
77 };
78
79 /* iot:blue ==> AP3917 */
80 led_iot_green: iot_green {
81 label = "iot:green_or_iot:blue";
82 gpios = <&tlmm 10 GPIO_ACTIVE_LOW>;
83 };
84
85 /* eth:green ==> only AP3912/AP3916 */
86 led_eth_green: eth_green {
87 label = "eth:green";
88 gpios = <&tlmm 41 GPIO_ACTIVE_LOW>;
89 };
90
91 /*
92 * eth:amber ==> only AP3912/AP3916
93 * usb_enable ==> only AP3915e
94 */
95 led_eth_amber: eth_amber {
96 label = "eth:amber_or_usb_enable";
97 gpios = <&tlmm 52 GPIO_ACTIVE_LOW>;
98 };
99
100 /*
101 * wlan5:amber ==> AP3915/AP3917
102 * cam:green ==> only AP3916
103 */
104 led_wlan5_amber: wlan5_amber {
105 label = "wlan5:amber_or_cam:green";
106 gpios = <&tlmm 26 GPIO_ACTIVE_LOW>;
107 };
108
109 };
110
111 keys {
112 compatible = "gpio-keys";
113
114 reset {
115 label = "reset";
116 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
117 linux,code = <KEY_RESTART >;
118 };
119 };
120 };
121
122 &prng {
123 status = "okay";
124 };
125
126 &mdio {
127 status = "okay";
128 pinctrl-0 = <&mdio_pins>;
129 pinctrl-names = "default";
130 };
131
132 &crypto {
133 status = "okay";
134 };
135
136 &watchdog {
137 status = "okay";
138 };
139
140 &usb3_ss_phy {
141 status = "okay";
142 };
143
144 &usb3_hs_phy {
145 status = "okay";
146 };
147
148 &usb3 {
149 status = "okay";
150 };
151
152 &usb2_hs_phy {
153 status = "okay";
154 };
155
156 &usb2 {
157 status = "okay";
158 };
159
160 &blsp_dma {
161 status = "okay";
162 };
163
164 &blsp1_uart1 {
165 pinctrl-0 = <&serial_pins>;
166 pinctrl-names = "default";
167 status = "okay";
168 };
169
170 &cryptobam {
171 status = "okay";
172 };
173
174 &qpic_bam {
175 status = "okay";
176 };
177
178 &gmac {
179 status = "okay";
180 };
181
182 &switch {
183 status = "okay";
184 };
185
186 &swport1 {
187 status = "okay";
188 label = "sw-eth1";
189 };
190
191 &swport2 {
192 status = "okay";
193 label = "sw-eth2";
194 };
195
196 &swport3 {
197 status = "okay";
198 label = "sw-eth3";
199 };
200
201 /* "GE2" on AP3917/AP3916/WiNG-AP7662 */
202 &swport4 {
203 status = "okay";
204 label = "sw-eth4";
205 };
206
207 /*
208 * "GE1" on AP3917/AP3916/AP3915/AP7662
209 * "LAN1" on EXTR-AP3912
210 */
211 &swport5 {
212 status = "okay";
213 label = "sw-eth5";
214 };
215
216 &tlmm {
217 mdio_pins: mdio_pinmux {
218 mux_1 {
219 pins = "gpio6";
220 function = "mdio";
221 bias-pull-up;
222 };
223 mux_2 {
224 pins = "gpio7";
225 function = "mdc";
226 bias-pull-up;
227 };
228 };
229
230 spi_0_pins: spi_0_pinmux {
231 pin {
232 function = "blsp_spi0";
233 pins = "gpio13", "gpio14", "gpio15";
234 drive-strength = <12>;
235 bias-disable;
236 };
237 pin_cs {
238 function = "gpio";
239 pins = "gpio12";
240 drive-strength = <2>;
241 bias-disable;
242 output-high;
243 };
244 };
245
246 serial_pins: serial_0_pinmux {
247 mux {
248 pins = "gpio16", "gpio17";
249 function = "blsp_uart0";
250 bias-disable;
251 };
252 };
253 };
254
255 &wifi0 {
256 status = "okay";
257 qcom,ath10k-calibration-variant = "Extreme-Networks-WS-AP3915i";
258 };
259
260 &wifi1 {
261 status = "okay";
262 qcom,ath10k-calibration-variant = "Extreme-Networks-WS-AP3915i";
263 };
264
265 &blsp1_spi1 {
266 pinctrl-0 = <&spi_0_pins>;
267 pinctrl-names = "default";
268 status = "okay";
269 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
270
271 flash@0 {
272 compatible = "jedec,spi-nor";
273 reg = <0>;
274 spi-max-frequency = <24000000>;
275
276 partitions {
277 compatible = "fixed-partitions";
278 #address-cells = <1>;
279 #size-cells = <1>;
280
281 /* Layout for 0x0 - 0xe0000 unknown */
282
283 partition@e0000 {
284 label = "CFG1";
285 compatible = "u-boot,env-redundant-bool";
286 reg = <0xe0000 0x10000>;
287 read-only;
288 };
289
290 partition@f0000 {
291 label = "BootBAK";
292 reg = <0xf0000 0x70000>;
293 read-only;
294 };
295
296 partition@160000 {
297 label = "WINGCFG1";
298 reg = <0x160000 0x10000>;
299 read-only;
300 };
301
302 partition@170000 {
303 label = "ART";
304 reg = <0x170000 0x10000>;
305 read-only;
306 };
307
308 partition@180000 {
309 label = "BootPRI";
310 reg = <0x180000 0x70000>;
311 read-only;
312 };
313
314 partition@1f0000 {
315 label = "WINGCFG2";
316 reg = <0x1f0000 0x10000>;
317 read-only;
318 };
319
320 partition@200000 {
321 label = "FS";
322 reg = <0x200000 0x80000>;
323 read-only;
324 };
325
326 partition@280000 {
327 label = "firmware";
328 reg = <0x280000 0xeb0000>;
329 };
330
331 partition@1130000 {
332 label = "firmware2";
333 reg = <0x1130000 0xeb0000>;
334 };
335
336 partition@1fe0000 {
337 label = "CFG2";
338 compatible = "u-boot,env-redundant-bool";
339 reg = <0x1fe0000 0x10000>;
340 read-only;
341 };
342 };
343 };
344 };