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>
7 #include <dt-bindings/leds/common.h>
10 model = "ASUS RT-AC58U";
11 compatible = "asus,rt-ac58u";
14 device_type = "memory";
15 reg = <0x80000000 0x8000000>;
19 led-boot = &led_power;
20 led-failsafe = &led_power;
21 led-running = &led_power;
22 led-upgrade = &led_power;
35 compatible = "qcom,tcsr";
36 reg = <0x1949000 0x100>;
37 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
41 compatible = "qcom,tcsr";
42 reg = <0x194b000 0x100>;
43 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
47 compatible = "qcom,tcsr";
48 reg = <0x1953000 0x1000>;
49 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
53 compatible = "qcom,tcsr";
54 reg = <0x1957000 0x100>;
55 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
68 compatible = "gpio-keys";
72 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
73 linux,code = <KEY_RESTART>;
78 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
79 linux,code = <KEY_WPS_BUTTON>;
84 compatible = "gpio-leds";
87 color = <LED_COLOR_ID_BLUE>;
88 function = LED_FUNCTION_POWER;
89 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
94 color = <LED_COLOR_ID_BLUE>;
95 function = LED_FUNCTION_WAN;
96 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
98 * linux,default-trigger = "90000.mdio-1:04:link";
99 * sadly still lacks rx+tx
104 color = <LED_COLOR_ID_BLUE>;
105 function = LED_FUNCTION_WLAN;
106 function-enumerator = <2>;
107 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
108 linux,default-trigger = "phy0tpt";
112 color = <LED_COLOR_ID_BLUE>;
113 function = LED_FUNCTION_WLAN;
114 function-enumerator = <5>;
115 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
116 linux,default-trigger = "phy1tpt";
120 color = <LED_COLOR_ID_BLUE>;
121 function = LED_FUNCTION_USB;
122 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
123 trigger-sources = <&usb3_port1>, <&usb3_port2>;
124 linux,default-trigger = "usbport";
128 color = <LED_COLOR_ID_BLUE>;
129 function = LED_FUNCTION_LAN;
130 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
144 serial_pins: serial_pinmux {
146 pins = "gpio60", "gpio61";
147 function = "blsp_uart0";
152 spi_0_pins: spi_0_pinmux {
154 function = "blsp_spi0";
155 pins = "gpio55", "gpio56", "gpio57";
156 drive-strength = <12>;
162 pins = "gpio54", "gpio59";
163 drive-strength = <2>;
170 &blsp1_spi1 { /* BLSP1 QUP1 */
171 pinctrl-0 = <&spi_0_pins>;
172 pinctrl-names = "default";
174 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
175 <&tlmm 59 GPIO_ACTIVE_HIGH>;
179 * U-boot looks for "n25q128a11" node,
180 * if we don't have it, it will spit out the following warning:
181 * "ipq: fdt fixup unable to find compatible node".
183 compatible = "jedec,spi-nor";
185 linux,modalias = "m25p80", "mx25l1606e", "n25q128a11";
186 spi-max-frequency = <30000000>;
189 compatible = "fixed-partitions";
190 #address-cells = <1>;
195 reg = <0x00000000 0x00040000>;
200 reg = <0x00040000 0x00020000>;
205 reg = <0x00060000 0x00060000>;
210 reg = <0x000c0000 0x00010000>;
215 reg = <0x000d0000 0x00010000>;
219 label = "APPSBLENV"; /* uboot env*/
220 reg = <0x000e0000 0x00010000>;
224 label = "APPSBL"; /* uboot */
225 reg = <0x000f0000 0x00080000>;
230 reg = <0x00170000 0x00010000>;
233 /* 0x00180000 - 0x00200000 unused */
238 compatible = "spi-nand";
240 spi-max-frequency = <30000000>;
243 * U-boot looks for "spinand,mt29f" node,
244 * if we don't have it, it will spit out the following warning:
245 * "ipq: fdt fixup unable to find compatible node".
249 compatible = "fixed-partitions";
250 #address-cells = <1>;
255 reg = <0x00000000 0x08000000>;
262 pinctrl-0 = <&serial_pins>;
263 pinctrl-names = "default";
280 #address-cells = <1>;
285 #trigger-source-cells = <0>;
290 #trigger-source-cells = <0>;
324 qcom,ath10k-calibration-variant = "RT-AC58U";
329 qcom,ath10k-calibration-variant = "RT-AC58U";