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;
38 compatible = "qcom,tcsr";
39 reg = <0x1949000 0x100>;
40 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
44 compatible = "qcom,tcsr";
45 reg = <0x194b000 0x100>;
46 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
50 compatible = "qcom,tcsr";
51 reg = <0x1953000 0x1000>;
52 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
56 compatible = "qcom,tcsr";
57 reg = <0x1957000 0x100>;
58 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
70 #trigger-source-cells = <0>;
75 #trigger-source-cells = <0>;
98 compatible = "gpio-keys";
102 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
103 linux,code = <KEY_RESTART>;
108 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
109 linux,code = <KEY_WPS_BUTTON>;
114 compatible = "gpio-leds";
117 label = "blue:status";
118 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
123 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
127 label = "blue:wlan2G";
128 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
129 linux,default-trigger = "phy0tpt";
133 label = "blue:wlan5G";
134 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
135 linux,default-trigger = "phy1tpt";
140 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
141 trigger-sources = <&usb3_port1>, <&usb3_port2>;
142 linux,default-trigger = "usbport";
147 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
161 serial_pins: serial_pinmux {
163 pins = "gpio60", "gpio61";
164 function = "blsp_uart0";
169 spi_0_pins: spi_0_pinmux {
171 function = "blsp_spi0";
172 pins = "gpio55", "gpio56", "gpio57";
173 drive-strength = <12>;
179 pins = "gpio54", "gpio59";
180 drive-strength = <2>;
187 &blsp1_spi1 { /* BLSP1 QUP1 */
188 pinctrl-0 = <&spi_0_pins>;
189 pinctrl-names = "default";
191 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
192 <&tlmm 59 GPIO_ACTIVE_HIGH>;
196 * U-boot looks for "n25q128a11" node,
197 * if we don't have it, it will spit out the following warning:
198 * "ipq: fdt fixup unable to find compatible node".
200 compatible = "jedec,spi-nor";
202 linux,modalias = "m25p80", "mx25l1606e", "n25q128a11";
203 spi-max-frequency = <30000000>;
206 compatible = "fixed-partitions";
207 #address-cells = <1>;
212 reg = <0x00000000 0x00040000>;
217 reg = <0x00040000 0x00020000>;
222 reg = <0x00060000 0x00060000>;
227 reg = <0x000c0000 0x00010000>;
232 reg = <0x000d0000 0x00010000>;
236 label = "APPSBLENV"; /* uboot env*/
237 reg = <0x000e0000 0x00010000>;
241 label = "APPSBL"; /* uboot */
242 reg = <0x000f0000 0x00080000>;
247 reg = <0x00170000 0x00010000>;
250 /* 0x00180000 - 0x00200000 unused */
255 compatible = "spi-nand";
257 spi-max-frequency = <30000000>;
260 * U-boot looks for "spinand,mt29f" node,
261 * if we don't have it, it will spit out the following warning:
262 * "ipq: fdt fixup unable to find compatible node".
266 compatible = "fixed-partitions";
267 #address-cells = <1>;
272 reg = <0x00000000 0x08000000>;
279 pinctrl-0 = <&serial_pins>;
280 pinctrl-names = "default";
294 qcom,ath10k-calibration-variant = "RT-AC58U";
299 qcom,ath10k-calibration-variant = "RT-AC58U";