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>;
75 qcom,ath10k-calibration-variant = "RT-AC58U";
80 qcom,ath10k-calibration-variant = "RT-AC58U";
97 compatible = "gpio-keys";
101 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
102 linux,code = <KEY_RESTART>;
107 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
108 linux,code = <KEY_WPS_BUTTON>;
113 compatible = "gpio-leds";
116 label = "rt-ac58u:blue:status";
117 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
121 label = "rt-ac58u:blue:wan";
122 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
126 label = "rt-ac58u:blue:wlan2G";
127 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
131 label = "rt-ac58u:blue:wlan5G";
132 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
136 label = "rt-ac58u:blue:usb";
137 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
141 label = "rt-ac58u:blue:lan";
142 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
156 serial_pins: serial_pinmux {
158 pins = "gpio60", "gpio61";
159 function = "blsp_uart0";
164 spi_0_pins: spi_0_pinmux {
166 function = "blsp_spi0";
167 pins = "gpio55", "gpio56", "gpio57";
168 drive-strength = <12>;
174 pins = "gpio54", "gpio59";
175 drive-strength = <2>;
182 &blsp1_spi1 { /* BLSP1 QUP1 */
183 pinctrl-0 = <&spi_0_pins>;
184 pinctrl-names = "default";
186 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
187 <&tlmm 59 GPIO_ACTIVE_HIGH>;
191 * U-boot looks for "n25q128a11" node,
192 * if we don't have it, it will spit out the following warning:
193 * "ipq: fdt fixup unable to find compatible node".
195 compatible = "jedec,spi-nor";
197 linux,modalias = "m25p80", "mx25l1606e", "n25q128a11";
198 spi-max-frequency = <24000000>;
201 compatible = "fixed-partitions";
202 #address-cells = <1>;
207 reg = <0x00000000 0x00040000>;
212 reg = <0x00040000 0x00020000>;
217 reg = <0x00060000 0x00060000>;
222 reg = <0x000c0000 0x00010000>;
227 reg = <0x000d0000 0x00010000>;
231 label = "APPSBLENV"; /* uboot env*/
232 reg = <0x000e0000 0x00010000>;
236 label = "APPSBL"; /* uboot */
237 reg = <0x000f0000 0x00080000>;
242 reg = <0x00170000 0x00010000>;
245 /* 0x00180000 - 0x00200000 unused */
250 compatible = "spi-nand";
252 spi-max-frequency = <24000000>;
255 * U-boot looks for "spinand,mt29f" node,
256 * if we don't have it, it will spit out the following warning:
257 * "ipq: fdt fixup unable to find compatible node".
261 compatible = "fixed-partitions";
262 #address-cells = <1>;
267 reg = <0x00000000 0x08000000>;
274 pinctrl-0 = <&serial_pins>;
275 pinctrl-names = "default";