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", "qcom,ipq4019";
13 device_type = "memory";
14 reg = <0x80000000 0x8000000>;
19 led-failsafe = &power;
25 bootargs-append = " ubi.mtd=UBI_DEV";
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>;
84 #trigger-source-cells = <0>;
89 #trigger-source-cells = <0>;
100 qcom,ath10k-calibration-variant = "RT-AC58U";
105 qcom,ath10k-calibration-variant = "RT-AC58U";
122 compatible = "gpio-keys";
126 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
127 linux,code = <KEY_RESTART>;
132 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
133 linux,code = <KEY_WPS_BUTTON>;
138 compatible = "gpio-leds";
141 label = "rt-ac58u:blue:status";
142 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
146 label = "rt-ac58u:blue:wan";
147 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
151 label = "rt-ac58u:blue:wlan2G";
152 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
156 label = "rt-ac58u:blue:wlan5G";
157 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
161 label = "rt-ac58u:blue:usb";
162 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
163 trigger-sources = <&usb3_port1>, <&usb3_port2>, <&usb2_port1>;
164 linux,default-trigger = "usbport";
168 label = "rt-ac58u:blue:lan";
169 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
183 serial_pins: serial_pinmux {
185 pins = "gpio60", "gpio61";
186 function = "blsp_uart0";
191 spi_0_pins: spi_0_pinmux {
193 function = "blsp_spi0";
194 pins = "gpio55", "gpio56", "gpio57";
195 drive-strength = <12>;
201 pins = "gpio54", "gpio59";
202 drive-strength = <2>;
209 &blsp1_spi1 { /* BLSP1 QUP1 */
210 pinctrl-0 = <&spi_0_pins>;
211 pinctrl-names = "default";
213 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
214 <&tlmm 59 GPIO_ACTIVE_HIGH>;
217 #address-cells = <1>;
220 * U-boot looks for "n25q128a11" node,
221 * if we don't have it, it will spit out the following warning:
222 * "ipq: fdt fixup unable to find compatible node".
224 compatible = "jedec,spi-nor";
226 linux,modalias = "m25p80", "mx25l1606e", "n25q128a11";
227 spi-max-frequency = <24000000>;
230 compatible = "fixed-partitions";
231 #address-cells = <1>;
236 reg = <0x00000000 0x00040000>;
241 reg = <0x00040000 0x00020000>;
246 reg = <0x00060000 0x00060000>;
251 reg = <0x000c0000 0x00010000>;
256 reg = <0x000d0000 0x00010000>;
260 label = "APPSBLENV"; /* uboot env*/
261 reg = <0x000e0000 0x00010000>;
265 label = "APPSBL"; /* uboot */
266 reg = <0x000f0000 0x00080000>;
271 reg = <0x00170000 0x00010000>;
274 /* 0x00180000 - 0x00200000 unused */
279 #address-cells = <1>;
281 compatible = "spinand,mt29f";
283 spi-max-frequency = <24000000>;
286 * U-boot looks for "spinand,mt29f" node,
287 * if we don't have it, it will spit out the following warning:
288 * "ipq: fdt fixup unable to find compatible node".
292 compatible = "fixed-partitions";
293 #address-cells = <1>;
298 reg = <0x00000000 0x08000000>;
305 pinctrl-0 = <&serial_pins>;
306 pinctrl-names = "default";