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