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