OpenWrt – Blame information for rev 2
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 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 | }; |
||
198 | |||
199 | &pcie0 { |
||
200 | status = "okay"; |
||
201 | perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>; |
||
202 | wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>; |
||
203 | |||
204 | bridge@0,0 { |
||
205 | reg = <0x00000000 0 0 0 0>; |
||
206 | #address-cells = <3>; |
||
207 | #size-cells = <2>; |
||
208 | ranges; |
||
209 | |||
210 | wifi2: wifi@1,0 { |
||
211 | compatible = "qcom,ath10k"; |
||
212 | status = "okay"; |
||
213 | reg = <0x00010000 0 0 0 0>; |
||
214 | qcom,ath10k-calibration-variant = "ASUS-MAP-AC2200"; |
||
215 | }; |
||
216 | }; |
||
217 | }; |
||
218 | |||
219 | &usb2_hs_phy { |
||
220 | /* Bluetooth module attached via USB */ |
||
221 | status = "okay"; |
||
222 | }; |
||
223 | |||
224 | &blsp1_i2c3 { |
||
225 | pinctrl-0 = <&i2c_0_pins>; |
||
226 | pinctrl-names = "default"; |
||
227 | status = "okay"; |
||
228 | |||
229 | led-controller@32 { |
||
230 | /* 9-channel RGB LED controller */ |
||
231 | compatible = "national,lp5523"; |
||
232 | reg = <0x32>; |
||
233 | clock-mode = [01]; |
||
234 | |||
235 | led_blue0: blue0 { |
||
236 | chan-name = "blue0"; |
||
237 | label = "map-ac2200:blue:chan0"; |
||
238 | led-cur = [fa]; |
||
239 | max-cur = [ff]; |
||
240 | }; |
||
241 | |||
242 | blue1 { |
||
243 | chan-name = "blue1"; |
||
244 | label = "map-ac2200:blue:chan1"; |
||
245 | led-cur = [fa]; |
||
246 | max-cur = [ff]; |
||
247 | }; |
||
248 | |||
249 | blue2 { |
||
250 | chan-name = "blue2"; |
||
251 | label = "map-ac2200:blue:chan2"; |
||
252 | led-cur = [fa]; |
||
253 | max-cur = [ff]; |
||
254 | }; |
||
255 | |||
256 | led_green0: green0 { |
||
257 | chan-name = "green0"; |
||
258 | label = "map-ac2200:green:chan0"; |
||
259 | led-cur = [fa]; |
||
260 | max-cur = [ff]; |
||
261 | }; |
||
262 | |||
263 | green1 { |
||
264 | chan-name = "green1"; |
||
265 | label = "map-ac2200:green:chan1"; |
||
266 | led-cur = [fa]; |
||
267 | max-cur = [ff]; |
||
268 | }; |
||
269 | |||
270 | green2 { |
||
271 | chan-name = "green2"; |
||
272 | label = "map-ac2200:green:chan2"; |
||
273 | led-cur = [fa]; |
||
274 | max-cur = [ff]; |
||
275 | }; |
||
276 | |||
277 | led_red0: red0 { |
||
278 | chan-name = "red0"; |
||
279 | label = "map-ac2200:red:chan0"; |
||
280 | led-cur = [fa]; |
||
281 | max-cur = [ff]; |
||
282 | }; |
||
283 | |||
284 | red1 { |
||
285 | chan-name = "red1"; |
||
286 | label = "map-ac2200:red:chan1"; |
||
287 | led-cur = [fa]; |
||
288 | max-cur = [ff]; |
||
289 | }; |
||
290 | |||
291 | red2 { |
||
292 | chan-name = "red2"; |
||
293 | label = "map-ac2200:red:chan2"; |
||
294 | led-cur = [fa]; |
||
295 | max-cur = [ff]; |
||
296 | }; |
||
297 | }; |
||
298 | }; |
||
299 | |||
300 | &blsp1_uart1 { |
||
301 | pinctrl-0 = <&serial_pins>; |
||
302 | pinctrl-names = "default"; |
||
303 | status = "okay"; |
||
304 | }; |