1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
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>
9 model = "ASUS RT-AC58U";
10 compatible = "asus,rt-ac58u";
13 device_type = "memory";
14 reg = <0x80000000 0x8000000>;
19 led-failsafe = &power;
25 bootargs-append = " ubi.mtd=UBI_DEV";
42 compatible = "qcom,tcsr";
43 reg = <0x1949000 0x100>;
44 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
48 compatible = "qcom,tcsr";
49 reg = <0x194b000 0x100>;
50 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
54 compatible = "qcom,tcsr";
55 reg = <0x1953000 0x1000>;
56 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
60 compatible = "qcom,tcsr";
61 reg = <0x1957000 0x100>;
62 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
74 #trigger-source-cells = <0>;
88 #trigger-source-cells = <0>;
93 #trigger-source-cells = <0>;
116 compatible = "gpio-keys";
120 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
121 linux,code = <KEY_RESTART>;
126 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
127 linux,code = <KEY_WPS_BUTTON>;
132 compatible = "gpio-leds";
135 label = "rt-ac58u:blue:status";
136 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
140 label = "rt-ac58u:blue:wan";
141 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
145 label = "rt-ac58u:blue:wlan2G";
146 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
150 label = "rt-ac58u:blue:wlan5G";
151 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
155 label = "rt-ac58u:blue:usb";
156 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
157 trigger-sources = <&usb3_port1>, <&usb3_port2>, <&usb2_port1>;
158 linux,default-trigger = "usbport";
162 label = "rt-ac58u:blue:lan";
163 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
177 serial_pins: serial_pinmux {
179 pins = "gpio60", "gpio61";
180 function = "blsp_uart0";
185 spi_0_pins: spi_0_pinmux {
187 function = "blsp_spi0";
188 pins = "gpio55", "gpio56", "gpio57";
189 drive-strength = <12>;
195 pins = "gpio54", "gpio59";
196 drive-strength = <2>;
203 &blsp1_spi1 { /* BLSP1 QUP1 */
204 pinctrl-0 = <&spi_0_pins>;
205 pinctrl-names = "default";
207 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
208 <&tlmm 59 GPIO_ACTIVE_HIGH>;
212 * U-boot looks for "n25q128a11" node,
213 * if we don't have it, it will spit out the following warning:
214 * "ipq: fdt fixup unable to find compatible node".
216 compatible = "jedec,spi-nor";
218 linux,modalias = "m25p80", "mx25l1606e", "n25q128a11";
219 spi-max-frequency = <24000000>;
222 compatible = "fixed-partitions";
223 #address-cells = <1>;
228 reg = <0x00000000 0x00040000>;
233 reg = <0x00040000 0x00020000>;
238 reg = <0x00060000 0x00060000>;
243 reg = <0x000c0000 0x00010000>;
248 reg = <0x000d0000 0x00010000>;
252 label = "APPSBLENV"; /* uboot env*/
253 reg = <0x000e0000 0x00010000>;
257 label = "APPSBL"; /* uboot */
258 reg = <0x000f0000 0x00080000>;
263 reg = <0x00170000 0x00010000>;
266 /* 0x00180000 - 0x00200000 unused */
271 compatible = "spi-nand";
273 spi-max-frequency = <24000000>;
276 * U-boot looks for "spinand,mt29f" node,
277 * if we don't have it, it will spit out the following warning:
278 * "ipq: fdt fixup unable to find compatible node".
282 compatible = "fixed-partitions";
283 #address-cells = <1>;
288 * TODO: change to label = "ubi" once we drop 4.14.
289 * also drop the bootargs-append and all the
290 * userspace CI_UBIPART="UBI_DEV" remains.
293 reg = <0x00000000 0x08000000>;
300 pinctrl-0 = <&serial_pins>;
301 pinctrl-names = "default";
319 qcom,ath10k-calibration-variant = "RT-AC58U";
324 qcom,ath10k-calibration-variant = "RT-AC58U";