strace: update to 5.18
[openwrt/openwrt.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4018-rt-ac58u.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 RT-AC58U";
10 compatible = "asus,rt-ac58u";
11
12 memory {
13 device_type = "memory";
14 reg = <0x80000000 0x8000000>;
15 };
16
17 aliases {
18 led-boot = &led_power;
19 led-failsafe = &led_power;
20 led-running = &led_power;
21 led-upgrade = &led_power;
22 };
23
24 soc {
25 rng@22000 {
26 status = "okay";
27 };
28
29 mdio@90000 {
30 status = "okay";
31 };
32
33 ess-psgmii@98000 {
34 status = "okay";
35 };
36
37 tcsr@1949000 {
38 compatible = "qcom,tcsr";
39 reg = <0x1949000 0x100>;
40 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
41 };
42
43 tcsr@194b000 {
44 compatible = "qcom,tcsr";
45 reg = <0x194b000 0x100>;
46 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
47 };
48
49 ess_tcsr@1953000 {
50 compatible = "qcom,tcsr";
51 reg = <0x1953000 0x1000>;
52 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
53 };
54
55 tcsr@1957000 {
56 compatible = "qcom,tcsr";
57 reg = <0x1957000 0x100>;
58 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
59 };
60
61 usb3@8af8800 {
62 status = "okay";
63
64 dwc3@8a00000 {
65 #address-cells = <1>;
66 #size-cells = <0>;
67
68 usb3_port1: port@1 {
69 reg = <1>;
70 #trigger-source-cells = <0>;
71 };
72
73 usb3_port2: port@2 {
74 reg = <2>;
75 #trigger-source-cells = <0>;
76 };
77 };
78 };
79
80 crypto@8e3a000 {
81 status = "okay";
82 };
83
84 watchdog@b017000 {
85 status = "okay";
86 };
87
88 ess-switch@c000000 {
89 status = "okay";
90 };
91
92 edma@c080000 {
93 status = "okay";
94 };
95 };
96
97 keys {
98 compatible = "gpio-keys";
99
100 reset {
101 label = "reset";
102 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
103 linux,code = <KEY_RESTART>;
104 };
105
106 wps {
107 label = "wps";
108 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
109 linux,code = <KEY_WPS_BUTTON>;
110 };
111 };
112
113 leds {
114 compatible = "gpio-leds";
115
116 led_power: status {
117 label = "blue:status";
118 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
119 };
120
121 wan {
122 label = "blue:wan";
123 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
124 };
125
126 wlan2G {
127 label = "blue:wlan2G";
128 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
129 linux,default-trigger = "phy0tpt";
130 };
131
132 wlan5G {
133 label = "blue:wlan5G";
134 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
135 linux,default-trigger = "phy1tpt";
136 };
137
138 usb {
139 label = "blue:usb";
140 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
141 trigger-sources = <&usb3_port1>, <&usb3_port2>;
142 linux,default-trigger = "usbport";
143 };
144
145 lan {
146 label = "blue:lan";
147 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
148 };
149 };
150 };
151
152 &cryptobam {
153 status = "okay";
154 };
155
156 &blsp_dma {
157 status = "okay";
158 };
159
160 &tlmm {
161 serial_pins: serial_pinmux {
162 mux {
163 pins = "gpio60", "gpio61";
164 function = "blsp_uart0";
165 bias-disable;
166 };
167 };
168
169 spi_0_pins: spi_0_pinmux {
170 mux {
171 function = "blsp_spi0";
172 pins = "gpio55", "gpio56", "gpio57";
173 drive-strength = <12>;
174 bias-disable;
175 };
176
177 mux_cs {
178 function = "gpio";
179 pins = "gpio54", "gpio59";
180 drive-strength = <2>;
181 bias-disable;
182 output-high;
183 };
184 };
185 };
186
187 &blsp1_spi1 { /* BLSP1 QUP1 */
188 pinctrl-0 = <&spi_0_pins>;
189 pinctrl-names = "default";
190 status = "okay";
191 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
192 <&tlmm 59 GPIO_ACTIVE_HIGH>;
193
194 flash@0 {
195 /*
196 * U-boot looks for "n25q128a11" node,
197 * if we don't have it, it will spit out the following warning:
198 * "ipq: fdt fixup unable to find compatible node".
199 */
200 compatible = "jedec,spi-nor";
201 reg = <0>;
202 linux,modalias = "m25p80", "mx25l1606e", "n25q128a11";
203 spi-max-frequency = <30000000>;
204
205 partitions {
206 compatible = "fixed-partitions";
207 #address-cells = <1>;
208 #size-cells = <1>;
209
210 partition@0 {
211 label = "SBL1";
212 reg = <0x00000000 0x00040000>;
213 read-only;
214 };
215 partition@40000 {
216 label = "MIBIB";
217 reg = <0x00040000 0x00020000>;
218 read-only;
219 };
220 partition@60000 {
221 label = "QSEE";
222 reg = <0x00060000 0x00060000>;
223 read-only;
224 };
225 partition@c0000 {
226 label = "CDT";
227 reg = <0x000c0000 0x00010000>;
228 read-only;
229 };
230 partition@d0000 {
231 label = "DDRPARAMS";
232 reg = <0x000d0000 0x00010000>;
233 read-only;
234 };
235 partition@e0000 {
236 label = "APPSBLENV"; /* uboot env*/
237 reg = <0x000e0000 0x00010000>;
238 read-only;
239 };
240 partition@f0000 {
241 label = "APPSBL"; /* uboot */
242 reg = <0x000f0000 0x00080000>;
243 read-only;
244 };
245 partition@170000 {
246 label = "ART";
247 reg = <0x00170000 0x00010000>;
248 read-only;
249 };
250 /* 0x00180000 - 0x00200000 unused */
251 };
252 };
253
254 spi-nand@1 {
255 compatible = "spi-nand";
256 reg = <1>;
257 spi-max-frequency = <30000000>;
258
259 /*
260 * U-boot looks for "spinand,mt29f" node,
261 * if we don't have it, it will spit out the following warning:
262 * "ipq: fdt fixup unable to find compatible node".
263 */
264
265 partitions {
266 compatible = "fixed-partitions";
267 #address-cells = <1>;
268 #size-cells = <1>;
269
270 partition@0 {
271 label = "ubi";
272 reg = <0x00000000 0x08000000>;
273 };
274 };
275 };
276 };
277
278 &blsp1_uart1 {
279 pinctrl-0 = <&serial_pins>;
280 pinctrl-names = "default";
281 status = "okay";
282 };
283
284 &usb3_ss_phy {
285 status = "okay";
286 };
287
288 &usb3_hs_phy {
289 status = "okay";
290 };
291
292 &wifi0 {
293 status = "okay";
294 qcom,ath10k-calibration-variant = "RT-AC58U";
295 };
296
297 &wifi1 {
298 status = "okay";
299 qcom,ath10k-calibration-variant = "RT-AC58U";
300 };