hostapd: Fix compile against mbedtsl 3.6
[openwrt/staging/nbd.git] / target / linux / ipq40xx / files-6.1 / arch / arm / boot / dts / qcom-ipq4019-map-ac2200.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later 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 #include <dt-bindings/leds/common.h>
8
9 / {
10 model = "ASUS Lyra MAP-AC2200";
11 compatible = "asus,map-ac2200";
12
13 aliases {
14 led-boot = &led_blue0;
15 led-failsafe = &led_red0;
16 led-running = &led_blue0;
17 led-upgrade = &led_red0;
18 ethernet1 = &swport4;
19 };
20
21 soc {
22 rng@22000 {
23 status = "okay";
24 };
25
26 mdio@90000 {
27 status = "okay";
28 };
29
30 tcsr@1949000 {
31 compatible = "qcom,tcsr";
32 reg = <0x1949000 0x100>;
33 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
34 };
35
36 ess_tcsr@1953000 {
37 compatible = "qcom,tcsr";
38 reg = <0x1953000 0x1000>;
39 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
40 };
41
42 tcsr@1957000 {
43 compatible = "qcom,tcsr";
44 reg = <0x1957000 0x100>;
45 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
46 };
47
48 usb2@60f8800 {
49 status = "okay";
50 };
51
52 crypto@8e3a000 {
53 status = "okay";
54 };
55
56 watchdog@b017000 {
57 status = "okay";
58 };
59 };
60
61 keys {
62 compatible = "gpio-keys";
63
64 reset {
65 label = "reset";
66 gpios = <&tlmm 34 GPIO_ACTIVE_LOW>;
67 linux,code = <KEY_RESTART>;
68 };
69
70 wps {
71 label = "wps";
72 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
73 linux,code = <KEY_WPS_BUTTON>;
74 };
75 };
76 };
77
78 &nand {
79 pinctrl-0 = <&nand_pins>;
80 pinctrl-names = "default";
81 status = "okay";
82
83 nand@0 {
84 partitions {
85 compatible = "fixed-partitions";
86 #address-cells = <1>;
87 #size-cells = <1>;
88
89 partition@0 {
90 label = "SBL1";
91 reg = <0x0 0x80000>;
92 read-only;
93 };
94
95 partition@80000 {
96 label = "MIBIB";
97 reg = <0x80000 0x80000>;
98 read-only;
99 };
100
101 partition@100000 {
102 label = "QSEE";
103 reg = <0x100000 0x100000>;
104 read-only;
105 };
106
107 partition@200000 {
108 label = "CDT";
109 reg = <0x200000 0x80000>;
110 read-only;
111 };
112
113 partition@280000 {
114 label = "APPSBL";
115 reg = <0x280000 0x140000>;
116 read-only;
117 };
118
119 partition@3c0000 {
120 label = "APPSBLENV";
121 reg = <0x3c0000 0x40000>;
122 read-only;
123 };
124
125 partition@400000 {
126 label = "ubi";
127 reg = <0x400000 0x7c00000>;
128 };
129 };
130 };
131 };
132
133 &tlmm {
134 i2c_0_pins: i2c_0_pinmux {
135 pinmux {
136 function = "blsp_i2c0";
137 pins = "gpio20", "gpio21";
138 drive-strength = <16>;
139 bias-disable;
140 };
141 };
142
143 serial_pins: serial_pinmux {
144 mux {
145 pins = "gpio16", "gpio17";
146 function = "blsp_uart0";
147 bias-disable;
148 };
149 };
150
151 nand_pins: nand_pins {
152 pullups {
153 pins = "gpio52", "gpio53", "gpio58",
154 "gpio59";
155 function = "qpic";
156 bias-pull-up;
157 };
158
159 pulldowns {
160 pins = "gpio54", "gpio55", "gpio56",
161 "gpio57", "gpio60", "gpio61",
162 "gpio62", "gpio63", "gpio64",
163 "gpio65", "gpio66", "gpio67",
164 "gpio68", "gpio69";
165 function = "qpic";
166 bias-pull-down;
167 };
168 };
169 enable_ext_pa_high {
170 gpio-hog;
171 gpios = <44 GPIO_ACTIVE_HIGH>,
172 <46 GPIO_ACTIVE_HIGH>;
173 output-high;
174 bias-pull-down;
175 line-name = "enable external PA output-high";
176 };
177 enable_ext_pa_low {
178 gpio-hog;
179 gpios = <45 GPIO_ACTIVE_HIGH>,
180 <47 GPIO_ACTIVE_HIGH>;
181 output-low;
182 bias-pull-down;
183 line-name = "enable external PA output-low";
184 };
185 };
186
187 &cryptobam {
188 status = "okay";
189 };
190
191 &blsp_dma {
192 status = "okay";
193 };
194
195 &qpic_bam {
196 status = "okay";
197 };
198
199 &wifi0 {
200 status = "okay";
201 qcom,ath10k-calibration-variant = "ASUS-MAP-AC2200";
202 };
203
204 &wifi1 {
205 status = "okay";
206 qcom,ath10k-calibration-variant = "ASUS-MAP-AC2200";
207 ieee80211-freq-limit = <5470000 5875000>;
208 };
209
210 &pcie0 {
211 status = "okay";
212 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
213 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
214
215 bridge@0,0 {
216 reg = <0x00000000 0 0 0 0>;
217 #address-cells = <3>;
218 #size-cells = <2>;
219 ranges;
220
221 wifi2: wifi@1,0 {
222 compatible = "qcom,ath10k";
223 status = "okay";
224 reg = <0x00010000 0 0 0 0>;
225 qcom,ath10k-calibration-variant = "ASUS-MAP-AC2200";
226 ieee80211-freq-limit = <5170000 5350000>;
227 };
228 };
229 };
230
231 &usb2_hs_phy {
232 /* Bluetooth module attached via USB */
233 status = "okay";
234 };
235
236 &blsp1_i2c3 {
237 pinctrl-0 = <&i2c_0_pins>;
238 pinctrl-names = "default";
239 status = "okay";
240
241 led-controller@32 {
242 /* 9-channel RGB LED controller */
243 compatible = "national,lp5523";
244 reg = <0x32>;
245 clock-mode = /bits/ 8 <1>;
246 #address-cells = <1>;
247 #size-cells = <0>;
248
249 /*
250 * There is only one single extremely bright RGB-LED.
251 * The RGB-color channels are running in parallel to
252 * increase the current delivery capabilities beyond
253 * what a single PWM-output of the controller can do.
254 */
255
256 led_blue0: led@0 {
257 chan-name = "blue-0";
258 led-cur = /bits/ 8 <0xfa>;
259 max-cur = /bits/ 8 <0xff>;
260 reg = <0>;
261 color = <LED_COLOR_ID_BLUE>;
262 function-enumerator = <0>;
263 };
264
265 led@1 {
266 chan-name = "blue-1";
267 led-cur = /bits/ 8 <0xfa>;
268 max-cur = /bits/ 8 <0xff>;
269 reg = <1>;
270 color = <LED_COLOR_ID_BLUE>;
271 function-enumerator = <1>;
272 };
273
274 led@2 {
275 chan-name = "blue-2";
276 led-cur = /bits/ 8 <0xfa>;
277 max-cur = /bits/ 8 <0xff>;
278 reg = <2>;
279 color = <LED_COLOR_ID_BLUE>;
280 function-enumerator = <2>;
281 };
282
283 led_green0: led@3 {
284 chan-name = "green-0";
285 led-cur = /bits/ 8 <0xfa>;
286 max-cur = /bits/ 8 <0xff>;
287 reg = <3>;
288 color = <LED_COLOR_ID_GREEN>;
289 function-enumerator = <0>;
290 };
291
292 led@4 {
293 chan-name = "green-1";
294 led-cur = /bits/ 8 <0xfa>;
295 max-cur = /bits/ 8 <0xff>;
296 reg = <4>;
297 color = <LED_COLOR_ID_GREEN>;
298 function-enumerator = <1>;
299 };
300
301 led@5 {
302 chan-name = "green-2";
303 led-cur = /bits/ 8 <0xfa>;
304 max-cur = /bits/ 8 <0xff>;
305 reg = <5>;
306 color = <LED_COLOR_ID_GREEN>;
307 function-enumerator = <2>;
308 };
309
310 led_red0: led@6 {
311 chan-name = "red-0";
312 led-cur = /bits/ 8 <0xfa>;
313 max-cur = /bits/ 8 <0xff>;
314 reg = <6>;
315 color = <LED_COLOR_ID_RED>;
316 function-enumerator = <0>;
317 };
318
319 led@7 {
320 chan-name = "red-1";
321 led-cur = /bits/ 8 <0xfa>;
322 max-cur = /bits/ 8 <0xff>;
323 reg = <7>;
324 color = <LED_COLOR_ID_RED>;
325 function-enumerator = <1>;
326 };
327
328 led@8 {
329 chan-name = "red-2";
330 led-cur = /bits/ 8 <0xfa>;
331 max-cur = /bits/ 8 <0xff>;
332 reg = <8>;
333 color = <LED_COLOR_ID_RED>;
334 function-enumerator = <2>;
335 };
336 };
337 };
338
339 &blsp1_uart1 {
340 pinctrl-0 = <&serial_pins>;
341 pinctrl-names = "default";
342 status = "okay";
343 };
344
345 &gmac {
346 status = "okay";
347 };
348
349 &switch {
350 status = "okay";
351 };
352
353 &swport4 {
354 status = "okay";
355
356 label = "wan";
357 };
358
359 &swport5 {
360 status = "okay";
361
362 label = "lan";
363 };