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/leds/common.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
10 model = "ASUS RT-AC42U";
11 compatible = "asus,rt-ac42u";
14 device_type = "memory";
15 reg = <0x80000000 0x10000000>; /* 256MB */
19 led-boot = &led_power;
20 led-failsafe = &led_power;
21 led-running = &led_power;
22 led-upgrade = &led_power;
39 compatible = "qcom,tcsr";
40 reg = <0x1949000 0x100>;
41 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
45 compatible = "qcom,tcsr";
46 reg = <0x194b000 0x100>;
47 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
51 compatible = "qcom,tcsr";
52 reg = <0x1953000 0x1000>;
53 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
57 compatible = "qcom,tcsr";
58 reg = <0x1957000 0x100>;
59 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
71 #trigger-source-cells = <0>;
76 #trigger-source-cells = <0>;
99 compatible = "gpio-keys";
103 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
104 linux,code = <KEY_RESTART>;
109 gpios = <&tlmm 11 GPIO_ACTIVE_LOW>;
110 linux,code = <KEY_WPS_BUTTON>;
115 compatible = "gpio-leds";
118 color = <LED_COLOR_ID_BLUE>;
119 function = LED_FUNCTION_STATUS;
120 gpios = <&tlmm 40 GPIO_ACTIVE_LOW>;
121 label = "blue:status";
125 color = <LED_COLOR_ID_BLUE>;
126 function = LED_FUNCTION_WAN;
127 gpios = <&tlmm 61 GPIO_ACTIVE_HIGH>;
128 linux,default-trigger = "90000.mdio-1:04:link";
132 color = <LED_COLOR_ID_RED>;
133 function = LED_FUNCTION_WAN;
134 gpios = <&tlmm 68 GPIO_ACTIVE_HIGH>;
135 linux,default-trigger = "none";
139 color = <LED_COLOR_ID_BLUE>;
140 function = LED_FUNCTION_WLAN;
141 function-enumerator = <0>;
142 gpios = <&tlmm 52 GPIO_ACTIVE_LOW>;
143 linux,default-trigger = "phy1tpt";
147 color = <LED_COLOR_ID_BLUE>;
148 function = LED_FUNCTION_WLAN;
149 function-enumerator = <1>;
150 gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
151 linux,default-trigger = "phy0tpt";
155 color = <LED_COLOR_ID_BLUE>;
156 function = LED_FUNCTION_LAN;
157 function-enumerator = <1>;
158 gpios = <&tlmm 45 GPIO_ACTIVE_LOW>;
162 color = <LED_COLOR_ID_BLUE>;
163 function = LED_FUNCTION_LAN;
164 function-enumerator = <2>;
165 gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
169 color = <LED_COLOR_ID_BLUE>;
170 function = LED_FUNCTION_LAN;
171 function-enumerator = <3>;
172 gpios = <&tlmm 42 GPIO_ACTIVE_LOW>;
176 color = <LED_COLOR_ID_BLUE>;
177 function = LED_FUNCTION_LAN;
178 function-enumerator = <4>;
179 gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
197 serial_0_pins: serial0_pinmux {
199 pins = "gpio16", "gpio17";
200 function = "blsp_uart0";
205 nand_pins: nand_pins {
207 pins = "gpio53", "gpio58", "gpio59";
213 pins = "gpio55", "gpio56", "gpio57", "gpio60",
214 "gpio62", "gpio63", "gpio64", "gpio65",
215 "gpio66", "gpio67", "gpio69";
223 pinctrl-0 = <&serial_0_pins>;
224 pinctrl-names = "default";
229 pinctrl-0 = <&nand_pins>;
230 pinctrl-names = "default";
235 compatible = "fixed-partitions";
236 #address-cells = <1>;
241 reg = <0x00000000 0x00080000>;
246 reg = <0x00080000 0x00080000>;
251 reg = <0x00100000 0x00100000>;
256 reg = <0x00200000 0x00080000>;
261 reg = <0x00280000 0x00140000>;
266 reg = <0x003C0000 0x00040000>;
271 reg = <0x00400000 0x07C00000>;
287 qcom,ath10k-calibration-variant = "ASUS-RT-AC42U";
292 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
293 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
294 clkreq-gpio = <&tlmm 39 GPIO_ACTIVE_LOW>;
297 reg = <0x00000000 0 0 0 0>;
298 #address-cells = <3>;
303 compatible = "qcom,ath10k";
304 reg = <0x00010000 0 0 0 0>;
306 qcom,ath10k-calibration-variant = "ASUS-RT-AC42U";