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>;
79 #trigger-source-cells = <0>;
102 compatible = "gpio-keys";
106 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
107 linux,code = <KEY_RESTART>;
112 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
113 linux,code = <KEY_WPS_BUTTON>;
118 compatible = "gpio-leds";
121 label = "rt-ac58u:blue:status";
122 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
126 label = "rt-ac58u:blue:wan";
127 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
131 label = "rt-ac58u:blue:wlan2G";
132 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
133 linux,default-trigger = "phy0tpt";
137 label = "rt-ac58u:blue:wlan5G";
138 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
139 linux,default-trigger = "phy1tpt";
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";
150 label = "rt-ac58u:blue:lan";
151 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
165 serial_pins: serial_pinmux {
167 pins = "gpio60", "gpio61";
168 function = "blsp_uart0";
173 spi_0_pins: spi_0_pinmux {
175 function = "blsp_spi0";
176 pins = "gpio55", "gpio56", "gpio57";
177 drive-strength = <12>;
183 pins = "gpio54", "gpio59";
184 drive-strength = <2>;
191 &blsp1_spi1 { /* BLSP1 QUP1 */
192 pinctrl-0 = <&spi_0_pins>;
193 pinctrl-names = "default";
195 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
196 <&tlmm 59 GPIO_ACTIVE_HIGH>;
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".
204 compatible = "jedec,spi-nor";
206 linux,modalias = "m25p80", "mx25l1606e", "n25q128a11";
207 spi-max-frequency = <30000000>;
210 compatible = "fixed-partitions";
211 #address-cells = <1>;
216 reg = <0x00000000 0x00040000>;
221 reg = <0x00040000 0x00020000>;
226 reg = <0x00060000 0x00060000>;
231 reg = <0x000c0000 0x00010000>;
236 reg = <0x000d0000 0x00010000>;
240 label = "APPSBLENV"; /* uboot env*/
241 reg = <0x000e0000 0x00010000>;
245 label = "APPSBL"; /* uboot */
246 reg = <0x000f0000 0x00080000>;
251 reg = <0x00170000 0x00010000>;
254 /* 0x00180000 - 0x00200000 unused */
259 compatible = "spi-nand";
261 spi-max-frequency = <30000000>;
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".
270 compatible = "fixed-partitions";
271 #address-cells = <1>;
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.
281 reg = <0x00000000 0x08000000>;
288 pinctrl-0 = <&serial_pins>;
289 pinctrl-names = "default";
303 qcom,ath10k-calibration-variant = "RT-AC58U";
308 qcom,ath10k-calibration-variant = "RT-AC58U";