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