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>;
91 compatible = "gpio-keys";
95 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_RESTART>;
101 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
102 linux,code = <KEY_WPS_BUTTON>;
107 compatible = "gpio-leds";
110 label = "rt-ac58u:blue:status";
111 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
115 label = "rt-ac58u:blue:wan";
116 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
120 label = "rt-ac58u:blue:wlan2G";
121 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
125 label = "rt-ac58u:blue:wlan5G";
126 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
130 label = "rt-ac58u:blue:usb";
131 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
135 label = "rt-ac58u:blue:lan";
136 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
150 serial_pins: serial_pinmux {
152 pins = "gpio60", "gpio61";
153 function = "blsp_uart0";
158 spi_0_pins: spi_0_pinmux {
160 function = "blsp_spi0";
161 pins = "gpio55", "gpio56", "gpio57";
162 drive-strength = <12>;
168 pins = "gpio54", "gpio59";
169 drive-strength = <2>;
176 &blsp1_spi1 { /* BLSP1 QUP1 */
177 pinctrl-0 = <&spi_0_pins>;
178 pinctrl-names = "default";
180 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
181 <&tlmm 59 GPIO_ACTIVE_HIGH>;
185 * U-boot looks for "n25q128a11" node,
186 * if we don't have it, it will spit out the following warning:
187 * "ipq: fdt fixup unable to find compatible node".
189 compatible = "jedec,spi-nor";
191 linux,modalias = "m25p80", "mx25l1606e", "n25q128a11";
192 spi-max-frequency = <24000000>;
195 compatible = "fixed-partitions";
196 #address-cells = <1>;
201 reg = <0x00000000 0x00040000>;
206 reg = <0x00040000 0x00020000>;
211 reg = <0x00060000 0x00060000>;
216 reg = <0x000c0000 0x00010000>;
221 reg = <0x000d0000 0x00010000>;
225 label = "APPSBLENV"; /* uboot env*/
226 reg = <0x000e0000 0x00010000>;
230 label = "APPSBL"; /* uboot */
231 reg = <0x000f0000 0x00080000>;
236 reg = <0x00170000 0x00010000>;
239 /* 0x00180000 - 0x00200000 unused */
244 compatible = "spi-nand";
246 spi-max-frequency = <24000000>;
249 * U-boot looks for "spinand,mt29f" node,
250 * if we don't have it, it will spit out the following warning:
251 * "ipq: fdt fixup unable to find compatible node".
255 compatible = "fixed-partitions";
256 #address-cells = <1>;
261 * TODO: change to label = "ubi" once we drop 4.14.
262 * also drop the bootargs-append and all the
263 * userspace CI_UBIPART="UBI_DEV" remains.
266 reg = <0x00000000 0x08000000>;
273 pinctrl-0 = <&serial_pins>;
274 pinctrl-names = "default";
292 qcom,ath10k-calibration-variant = "RT-AC58U";
297 qcom,ath10k-calibration-variant = "RT-AC58U";