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