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>;
67 #trigger-source-cells = <0>;
72 #trigger-source-cells = <0>;
87 compatible = "gpio-keys";
91 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_RESTART>;
97 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
98 linux,code = <KEY_WPS_BUTTON>;
103 compatible = "gpio-leds";
106 color = <LED_COLOR_ID_BLUE>;
107 function = LED_FUNCTION_POWER;
108 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
113 color = <LED_COLOR_ID_BLUE>;
114 function = LED_FUNCTION_WAN;
115 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
117 * linux,default-trigger = "90000.mdio-1:04:link";
118 * sadly still lacks rx+tx
123 color = <LED_COLOR_ID_BLUE>;
124 function = LED_FUNCTION_WLAN;
125 function-enumerator = <2>;
126 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
127 linux,default-trigger = "phy0tpt";
131 color = <LED_COLOR_ID_BLUE>;
132 function = LED_FUNCTION_WLAN;
133 function-enumerator = <5>;
134 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
135 linux,default-trigger = "phy1tpt";
139 color = <LED_COLOR_ID_BLUE>;
140 function = LED_FUNCTION_USB;
141 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
142 trigger-sources = <&usb3_port1>, <&usb3_port2>;
143 linux,default-trigger = "usbport";
147 color = <LED_COLOR_ID_BLUE>;
148 function = LED_FUNCTION_LAN;
149 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
163 serial_pins: serial_pinmux {
165 pins = "gpio60", "gpio61";
166 function = "blsp_uart0";
171 spi_0_pins: spi_0_pinmux {
173 function = "blsp_spi0";
174 pins = "gpio55", "gpio56", "gpio57";
175 drive-strength = <12>;
181 pins = "gpio54", "gpio59";
182 drive-strength = <2>;
189 &blsp1_spi1 { /* BLSP1 QUP1 */
190 pinctrl-0 = <&spi_0_pins>;
191 pinctrl-names = "default";
193 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
194 <&tlmm 59 GPIO_ACTIVE_HIGH>;
198 * U-boot looks for "n25q128a11" node,
199 * if we don't have it, it will spit out the following warning:
200 * "ipq: fdt fixup unable to find compatible node".
202 compatible = "jedec,spi-nor";
204 linux,modalias = "m25p80", "mx25l1606e", "n25q128a11";
205 spi-max-frequency = <30000000>;
208 compatible = "fixed-partitions";
209 #address-cells = <1>;
214 reg = <0x00000000 0x00040000>;
219 reg = <0x00040000 0x00020000>;
224 reg = <0x00060000 0x00060000>;
229 reg = <0x000c0000 0x00010000>;
234 reg = <0x000d0000 0x00010000>;
238 label = "APPSBLENV"; /* uboot env*/
239 reg = <0x000e0000 0x00010000>;
243 label = "APPSBL"; /* uboot */
244 reg = <0x000f0000 0x00080000>;
249 reg = <0x00170000 0x00010000>;
252 /* 0x00180000 - 0x00200000 unused */
257 compatible = "spi-nand";
259 spi-max-frequency = <30000000>;
262 * U-boot looks for "spinand,mt29f" node,
263 * if we don't have it, it will spit out the following warning:
264 * "ipq: fdt fixup unable to find compatible node".
268 compatible = "fixed-partitions";
269 #address-cells = <1>;
274 reg = <0x00000000 0x08000000>;
281 pinctrl-0 = <&serial_pins>;
282 pinctrl-names = "default";
324 qcom,ath10k-calibration-variant = "RT-AC58U";
329 qcom,ath10k-calibration-variant = "RT-AC58U";