ipq40xx: tidy up dts-v1 statements
[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 };
180
181 &cryptobam {
182 status = "okay";
183 };
184
185 &blsp_dma {
186 status = "okay";
187 };
188
189 &qpic_bam {
190 status = "okay";
191 };
192
193 &wifi0 {
194 status = "okay";
195 qcom,ath10k-calibration-variant = "ASUS-MAP-AC2200";
196 };
197
198 &wifi1 {
199 status = "okay";
200 qcom,ath10k-calibration-variant = "ASUS-MAP-AC2200";
201 ieee80211-freq-limit = <5470000 5875000>;
202 };
203
204 &pcie0 {
205 status = "okay";
206 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
207 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
208
209 bridge@0,0 {
210 reg = <0x00000000 0 0 0 0>;
211 #address-cells = <3>;
212 #size-cells = <2>;
213 ranges;
214
215 wifi2: wifi@1,0 {
216 compatible = "qcom,ath10k";
217 status = "okay";
218 reg = <0x00010000 0 0 0 0>;
219 qcom,ath10k-calibration-variant = "ASUS-MAP-AC2200";
220 ieee80211-freq-limit = <5170000 5350000>;
221 };
222 };
223 };
224
225 &usb2_hs_phy {
226 /* Bluetooth module attached via USB */
227 status = "okay";
228 };
229
230 &blsp1_i2c3 {
231 pinctrl-0 = <&i2c_0_pins>;
232 pinctrl-names = "default";
233 status = "okay";
234
235 led-controller@32 {
236 /* 9-channel RGB LED controller */
237 compatible = "national,lp5523";
238 reg = <0x32>;
239 clock-mode = [01];
240
241 led_blue0: blue0 {
242 chan-name = "blue0";
243 label = "map-ac2200:blue:chan0";
244 led-cur = [fa];
245 max-cur = [ff];
246 };
247
248 blue1 {
249 chan-name = "blue1";
250 label = "map-ac2200:blue:chan1";
251 led-cur = [fa];
252 max-cur = [ff];
253 };
254
255 blue2 {
256 chan-name = "blue2";
257 label = "map-ac2200:blue:chan2";
258 led-cur = [fa];
259 max-cur = [ff];
260 };
261
262 led_green0: green0 {
263 chan-name = "green0";
264 label = "map-ac2200:green:chan0";
265 led-cur = [fa];
266 max-cur = [ff];
267 };
268
269 green1 {
270 chan-name = "green1";
271 label = "map-ac2200:green:chan1";
272 led-cur = [fa];
273 max-cur = [ff];
274 };
275
276 green2 {
277 chan-name = "green2";
278 label = "map-ac2200:green:chan2";
279 led-cur = [fa];
280 max-cur = [ff];
281 };
282
283 led_red0: red0 {
284 chan-name = "red0";
285 label = "map-ac2200:red:chan0";
286 led-cur = [fa];
287 max-cur = [ff];
288 };
289
290 red1 {
291 chan-name = "red1";
292 label = "map-ac2200:red:chan1";
293 led-cur = [fa];
294 max-cur = [ff];
295 };
296
297 red2 {
298 chan-name = "red2";
299 label = "map-ac2200:red:chan2";
300 led-cur = [fa];
301 max-cur = [ff];
302 };
303 };
304 };
305
306 &blsp1_uart1 {
307 pinctrl-0 = <&serial_pins>;
308 pinctrl-names = "default";
309 status = "okay";
310 };