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;
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 18 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_RESTART>;
97 gpios = <&tlmm 11 GPIO_ACTIVE_LOW>;
98 linux,code = <KEY_WPS_BUTTON>;
103 compatible = "gpio-leds";
106 color = <LED_COLOR_ID_BLUE>;
107 function = LED_FUNCTION_STATUS;
108 gpios = <&tlmm 40 GPIO_ACTIVE_LOW>;
112 color = <LED_COLOR_ID_BLUE>;
113 function = LED_FUNCTION_WAN;
114 gpios = <&tlmm 61 GPIO_ACTIVE_HIGH>;
115 linux,default-trigger = "90000.mdio-1:04:link";
119 color = <LED_COLOR_ID_RED>;
120 function = LED_FUNCTION_WAN;
121 gpios = <&tlmm 68 GPIO_ACTIVE_HIGH>;
122 linux,default-trigger = "none";
126 color = <LED_COLOR_ID_BLUE>;
127 function = LED_FUNCTION_WLAN;
128 function-enumerator = <0>;
129 gpios = <&tlmm 52 GPIO_ACTIVE_LOW>;
130 linux,default-trigger = "phy1tpt";
134 color = <LED_COLOR_ID_BLUE>;
135 function = LED_FUNCTION_WLAN;
136 function-enumerator = <1>;
137 gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
138 linux,default-trigger = "phy0tpt";
142 color = <LED_COLOR_ID_BLUE>;
143 function = LED_FUNCTION_LAN;
144 function-enumerator = <1>;
145 gpios = <&tlmm 45 GPIO_ACTIVE_LOW>;
149 color = <LED_COLOR_ID_BLUE>;
150 function = LED_FUNCTION_LAN;
151 function-enumerator = <2>;
152 gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
156 color = <LED_COLOR_ID_BLUE>;
157 function = LED_FUNCTION_LAN;
158 function-enumerator = <3>;
159 gpios = <&tlmm 42 GPIO_ACTIVE_LOW>;
163 color = <LED_COLOR_ID_BLUE>;
164 function = LED_FUNCTION_LAN;
165 function-enumerator = <4>;
166 gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
184 serial_0_pins: serial0_pinmux {
186 pins = "gpio16", "gpio17";
187 function = "blsp_uart0";
192 nand_pins: nand_pins {
194 pins = "gpio53", "gpio58", "gpio59";
200 pins = "gpio55", "gpio56", "gpio57", "gpio60",
201 "gpio62", "gpio63", "gpio64", "gpio65",
202 "gpio66", "gpio67", "gpio69";
210 pinctrl-0 = <&serial_0_pins>;
211 pinctrl-names = "default";
216 pinctrl-0 = <&nand_pins>;
217 pinctrl-names = "default";
222 compatible = "fixed-partitions";
223 #address-cells = <1>;
228 reg = <0x00000000 0x00080000>;
233 reg = <0x00080000 0x00080000>;
238 reg = <0x00100000 0x00100000>;
243 reg = <0x00200000 0x00080000>;
248 reg = <0x00280000 0x00140000>;
253 reg = <0x003C0000 0x00040000>;
258 reg = <0x00400000 0x07C00000>;
302 qcom,ath10k-calibration-variant = "ASUS-RT-AC42U";
307 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
308 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
309 clkreq-gpio = <&tlmm 39 GPIO_ACTIVE_LOW>;
312 reg = <0x00000000 0 0 0 0>;
313 #address-cells = <3>;
318 compatible = "qcom,ath10k";
319 reg = <0x00010000 0 0 0 0>;
321 qcom,ath10k-calibration-variant = "ASUS-RT-AC42U";