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;
34 compatible = "qcom,tcsr";
35 reg = <0x1949000 0x100>;
36 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
40 compatible = "qcom,tcsr";
41 reg = <0x194b000 0x100>;
42 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
46 compatible = "qcom,tcsr";
47 reg = <0x1953000 0x1000>;
48 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
52 compatible = "qcom,tcsr";
53 reg = <0x1957000 0x100>;
54 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
66 #trigger-source-cells = <0>;
71 #trigger-source-cells = <0>;
86 compatible = "gpio-keys";
90 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
91 linux,code = <KEY_RESTART>;
96 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
97 linux,code = <KEY_WPS_BUTTON>;
102 compatible = "gpio-leds";
105 label = "blue:status";
106 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
111 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
115 label = "blue:wlan2G";
116 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
117 linux,default-trigger = "phy0tpt";
121 label = "blue:wlan5G";
122 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
123 linux,default-trigger = "phy1tpt";
128 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
129 trigger-sources = <&usb3_port1>, <&usb3_port2>;
130 linux,default-trigger = "usbport";
135 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
149 serial_pins: serial_pinmux {
151 pins = "gpio60", "gpio61";
152 function = "blsp_uart0";
157 spi_0_pins: spi_0_pinmux {
159 function = "blsp_spi0";
160 pins = "gpio55", "gpio56", "gpio57";
161 drive-strength = <12>;
167 pins = "gpio54", "gpio59";
168 drive-strength = <2>;
175 &blsp1_spi1 { /* BLSP1 QUP1 */
176 pinctrl-0 = <&spi_0_pins>;
177 pinctrl-names = "default";
179 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
180 <&tlmm 59 GPIO_ACTIVE_HIGH>;
184 * U-boot looks for "n25q128a11" node,
185 * if we don't have it, it will spit out the following warning:
186 * "ipq: fdt fixup unable to find compatible node".
188 compatible = "jedec,spi-nor";
190 linux,modalias = "m25p80", "mx25l1606e", "n25q128a11";
191 spi-max-frequency = <30000000>;
194 compatible = "fixed-partitions";
195 #address-cells = <1>;
200 reg = <0x00000000 0x00040000>;
205 reg = <0x00040000 0x00020000>;
210 reg = <0x00060000 0x00060000>;
215 reg = <0x000c0000 0x00010000>;
220 reg = <0x000d0000 0x00010000>;
224 label = "APPSBLENV"; /* uboot env*/
225 reg = <0x000e0000 0x00010000>;
229 label = "APPSBL"; /* uboot */
230 reg = <0x000f0000 0x00080000>;
235 reg = <0x00170000 0x00010000>;
238 /* 0x00180000 - 0x00200000 unused */
243 compatible = "spi-nand";
245 spi-max-frequency = <30000000>;
248 * U-boot looks for "spinand,mt29f" node,
249 * if we don't have it, it will spit out the following warning:
250 * "ipq: fdt fixup unable to find compatible node".
254 compatible = "fixed-partitions";
255 #address-cells = <1>;
260 reg = <0x00000000 0x08000000>;
267 pinctrl-0 = <&serial_pins>;
268 pinctrl-names = "default";
310 qcom,ath10k-calibration-variant = "RT-AC58U";
315 qcom,ath10k-calibration-variant = "RT-AC58U";