ipq40xx: switch default to 6.6
[openwrt/openwrt.git] / target / linux / ipq40xx / files-6.1 / arch / arm / boot / dts / qcom-ipq4019-rt-ac42u.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/leds/common.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
8
9 / {
10 model = "ASUS RT-AC42U";
11 compatible = "asus,rt-ac42u";
12
13 memory {
14 device_type = "memory";
15 reg = <0x80000000 0x10000000>; /* 256MB */
16 };
17
18 aliases {
19 led-boot = &led_power;
20 led-failsafe = &led_power;
21 led-running = &led_power;
22 led-upgrade = &led_power;
23 };
24
25 soc {
26 rng@22000 {
27 status = "okay";
28 };
29
30 mdio@90000 {
31 status = "okay";
32 };
33
34 tcsr@1949000 {
35 compatible = "qcom,tcsr";
36 reg = <0x1949000 0x100>;
37 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
38 };
39
40 tcsr@194b000 {
41 compatible = "qcom,tcsr";
42 reg = <0x194b000 0x100>;
43 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
44 };
45
46 ess_tcsr@1953000 {
47 compatible = "qcom,tcsr";
48 reg = <0x1953000 0x1000>;
49 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
50 };
51
52 tcsr@1957000 {
53 compatible = "qcom,tcsr";
54 reg = <0x1957000 0x100>;
55 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
56 };
57
58 usb3@8af8800 {
59 status = "okay";
60
61 dwc3@8a00000 {
62 #address-cells = <1>;
63 #size-cells = <0>;
64
65 usb3_port1: port@1 {
66 reg = <1>;
67 #trigger-source-cells = <0>;
68 };
69
70 usb3_port2: port@2 {
71 reg = <2>;
72 #trigger-source-cells = <0>;
73 };
74 };
75 };
76
77 crypto@8e3a000 {
78 status = "okay";
79 };
80
81 watchdog@b017000 {
82 status = "okay";
83 };
84 };
85
86 keys {
87 compatible = "gpio-keys";
88
89 reset {
90 label = "reset";
91 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_RESTART>;
93 };
94
95 wps {
96 label = "wps";
97 gpios = <&tlmm 11 GPIO_ACTIVE_LOW>;
98 linux,code = <KEY_WPS_BUTTON>;
99 };
100 };
101
102 leds {
103 compatible = "gpio-leds";
104
105 led_power: led-0 {
106 color = <LED_COLOR_ID_BLUE>;
107 function = LED_FUNCTION_STATUS;
108 gpios = <&tlmm 40 GPIO_ACTIVE_LOW>;
109 };
110
111 led-1 {
112 color = <LED_COLOR_ID_BLUE>;
113 function = LED_FUNCTION_WAN;
114 gpios = <&tlmm 61 GPIO_ACTIVE_HIGH>;
115 linux,default-trigger = "90000.mdio-1:04:link";
116 };
117
118 led-2 {
119 color = <LED_COLOR_ID_RED>;
120 function = LED_FUNCTION_WAN;
121 gpios = <&tlmm 68 GPIO_ACTIVE_HIGH>;
122 linux,default-trigger = "none";
123 };
124
125 led-3 {
126 color = <LED_COLOR_ID_BLUE>;
127 function = LED_FUNCTION_WLAN;
128 function-enumerator = <0>;
129 gpios = <&tlmm 52 GPIO_ACTIVE_LOW>;
130 linux,default-trigger = "phy1tpt";
131 };
132
133 led-4 {
134 color = <LED_COLOR_ID_BLUE>;
135 function = LED_FUNCTION_WLAN;
136 function-enumerator = <1>;
137 gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
138 linux,default-trigger = "phy0tpt";
139 };
140
141 led-5 {
142 color = <LED_COLOR_ID_BLUE>;
143 function = LED_FUNCTION_LAN;
144 function-enumerator = <1>;
145 gpios = <&tlmm 45 GPIO_ACTIVE_LOW>;
146 };
147
148 led-6 {
149 color = <LED_COLOR_ID_BLUE>;
150 function = LED_FUNCTION_LAN;
151 function-enumerator = <2>;
152 gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
153 };
154
155 led-7 {
156 color = <LED_COLOR_ID_BLUE>;
157 function = LED_FUNCTION_LAN;
158 function-enumerator = <3>;
159 gpios = <&tlmm 42 GPIO_ACTIVE_LOW>;
160 };
161
162 led-8 {
163 color = <LED_COLOR_ID_BLUE>;
164 function = LED_FUNCTION_LAN;
165 function-enumerator = <4>;
166 gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
167 };
168 };
169 };
170
171 &cryptobam {
172 status = "okay";
173 };
174
175 &blsp_dma {
176 status = "okay";
177 };
178
179 &qpic_bam {
180 status = "okay";
181 };
182
183 &tlmm {
184 serial_0_pins: serial0_pinmux {
185 mux {
186 pins = "gpio16", "gpio17";
187 function = "blsp_uart0";
188 bias-disable;
189 };
190 };
191
192 nand_pins: nand_pins {
193 pullups {
194 pins = "gpio53", "gpio58", "gpio59";
195 function = "qpic";
196 bias-pull-up;
197 };
198
199 pulldowns {
200 pins = "gpio55", "gpio56", "gpio57", "gpio60",
201 "gpio62", "gpio63", "gpio64", "gpio65",
202 "gpio66", "gpio67", "gpio69";
203 function = "qpic";
204 bias-pull-down;
205 };
206 };
207 };
208
209 &blsp1_uart1 {
210 pinctrl-0 = <&serial_0_pins>;
211 pinctrl-names = "default";
212 status = "okay";
213 };
214
215 &nand {
216 pinctrl-0 = <&nand_pins>;
217 pinctrl-names = "default";
218 status = "okay";
219
220 nand@0 {
221 partitions {
222 compatible = "fixed-partitions";
223 #address-cells = <1>;
224 #size-cells = <1>;
225
226 partition@0 {
227 label = "SBL1";
228 reg = <0x00000000 0x00080000>;
229 read-only;
230 };
231 partition@80000 {
232 label = "MIBIB";
233 reg = <0x00080000 0x00080000>;
234 read-only;
235 };
236 partition@100000 {
237 label = "QSEE";
238 reg = <0x00100000 0x00100000>;
239 read-only;
240 };
241 partition@200000 {
242 label = "CDT";
243 reg = <0x00200000 0x00080000>;
244 read-only;
245 };
246 partition@280000 {
247 label = "APPSBL";
248 reg = <0x00280000 0x00140000>;
249 read-only;
250 };
251 partition@3C0000 {
252 label = "APPSBLENV";
253 reg = <0x003C0000 0x00040000>;
254 read-only;
255 };
256 partition@400000 {
257 label = "ubi";
258 reg = <0x00400000 0x07C00000>;
259 };
260 };
261 };
262 };
263
264 &usb3_ss_phy {
265 status = "okay";
266 };
267
268 &usb3_hs_phy {
269 status = "okay";
270 };
271
272 &gmac {
273 status = "okay";
274 };
275
276 &switch {
277 status = "okay";
278 };
279
280 &swport1 {
281 status = "okay";
282 };
283
284 &swport2 {
285 status = "okay";
286 };
287
288 &swport3 {
289 status = "okay";
290 };
291
292 &swport4 {
293 status = "okay";
294 };
295
296 &swport5 {
297 status = "okay";
298 };
299
300 &wifi0 {
301 status = "okay";
302 qcom,ath10k-calibration-variant = "ASUS-RT-AC42U";
303 };
304
305 &pcie0 {
306 status = "okay";
307 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
308 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
309 clkreq-gpio = <&tlmm 39 GPIO_ACTIVE_LOW>;
310
311 bridge@0,0 {
312 reg = <0x00000000 0 0 0 0>;
313 #address-cells = <3>;
314 #size-cells = <2>;
315 ranges;
316
317 wifi2: wifi@1,0 {
318 compatible = "qcom,ath10k";
319 reg = <0x00010000 0 0 0 0>;
320
321 qcom,ath10k-calibration-variant = "ASUS-RT-AC42U";
322 };
323 };
324 };