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