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