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