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>;
18 led-boot = &led_power;
19 led-failsafe = &led_power;
20 led-running = &led_power;
21 led-upgrade = &led_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>;
147 linux,default-trigger = "phy0tpt";
151 label = "rt-ac58u:blue:wlan5G";
152 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
153 linux,default-trigger = "phy1tpt";
157 label = "rt-ac58u:blue:usb";
158 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
159 trigger-sources = <&usb3_port1>, <&usb3_port2>, <&usb2_port1>;
160 linux,default-trigger = "usbport";
164 label = "rt-ac58u:blue:lan";
165 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
179 serial_pins: serial_pinmux {
181 pins = "gpio60", "gpio61";
182 function = "blsp_uart0";
187 spi_0_pins: spi_0_pinmux {
189 function = "blsp_spi0";
190 pins = "gpio55", "gpio56", "gpio57";
191 drive-strength = <12>;
197 pins = "gpio54", "gpio59";
198 drive-strength = <2>;
205 &blsp1_spi1 { /* BLSP1 QUP1 */
206 pinctrl-0 = <&spi_0_pins>;
207 pinctrl-names = "default";
209 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
210 <&tlmm 59 GPIO_ACTIVE_HIGH>;
214 * U-boot looks for "n25q128a11" node,
215 * if we don't have it, it will spit out the following warning:
216 * "ipq: fdt fixup unable to find compatible node".
218 compatible = "jedec,spi-nor";
220 linux,modalias = "m25p80", "mx25l1606e", "n25q128a11";
221 spi-max-frequency = <30000000>;
224 compatible = "fixed-partitions";
225 #address-cells = <1>;
230 reg = <0x00000000 0x00040000>;
235 reg = <0x00040000 0x00020000>;
240 reg = <0x00060000 0x00060000>;
245 reg = <0x000c0000 0x00010000>;
250 reg = <0x000d0000 0x00010000>;
254 label = "APPSBLENV"; /* uboot env*/
255 reg = <0x000e0000 0x00010000>;
259 label = "APPSBL"; /* uboot */
260 reg = <0x000f0000 0x00080000>;
265 reg = <0x00170000 0x00010000>;
268 /* 0x00180000 - 0x00200000 unused */
273 compatible = "spi-nand";
275 spi-max-frequency = <30000000>;
278 * U-boot looks for "spinand,mt29f" node,
279 * if we don't have it, it will spit out the following warning:
280 * "ipq: fdt fixup unable to find compatible node".
284 compatible = "fixed-partitions";
285 #address-cells = <1>;
290 * TODO: change to label = "ubi" once we drop 4.14.
291 * also drop the bootargs-append and all the
292 * userspace CI_UBIPART="UBI_DEV" remains.
295 reg = <0x00000000 0x08000000>;
302 pinctrl-0 = <&serial_pins>;
303 pinctrl-names = "default";
321 qcom,ath10k-calibration-variant = "RT-AC58U";
326 qcom,ath10k-calibration-variant = "RT-AC58U";