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>;
68 compatible = "gpio-keys";
72 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
73 linux,code = <KEY_RESTART>;
78 gpios = <&tlmm 11 GPIO_ACTIVE_LOW>;
79 linux,code = <KEY_WPS_BUTTON>;
84 compatible = "gpio-leds";
87 color = <LED_COLOR_ID_BLUE>;
88 function = LED_FUNCTION_STATUS;
89 gpios = <&tlmm 40 GPIO_ACTIVE_LOW>;
93 color = <LED_COLOR_ID_BLUE>;
94 function = LED_FUNCTION_WAN;
95 gpios = <&tlmm 61 GPIO_ACTIVE_HIGH>;
96 linux,default-trigger = "90000.mdio-1:04:link";
100 color = <LED_COLOR_ID_RED>;
101 function = LED_FUNCTION_WAN;
102 gpios = <&tlmm 68 GPIO_ACTIVE_HIGH>;
103 linux,default-trigger = "none";
107 color = <LED_COLOR_ID_BLUE>;
108 function = LED_FUNCTION_WLAN;
109 function-enumerator = <0>;
110 gpios = <&tlmm 52 GPIO_ACTIVE_LOW>;
111 linux,default-trigger = "phy1tpt";
115 color = <LED_COLOR_ID_BLUE>;
116 function = LED_FUNCTION_WLAN;
117 function-enumerator = <1>;
118 gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
119 linux,default-trigger = "phy0tpt";
123 color = <LED_COLOR_ID_BLUE>;
124 function = LED_FUNCTION_LAN;
125 function-enumerator = <1>;
126 gpios = <&tlmm 45 GPIO_ACTIVE_LOW>;
130 color = <LED_COLOR_ID_BLUE>;
131 function = LED_FUNCTION_LAN;
132 function-enumerator = <2>;
133 gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
137 color = <LED_COLOR_ID_BLUE>;
138 function = LED_FUNCTION_LAN;
139 function-enumerator = <3>;
140 gpios = <&tlmm 42 GPIO_ACTIVE_LOW>;
144 color = <LED_COLOR_ID_BLUE>;
145 function = LED_FUNCTION_LAN;
146 function-enumerator = <4>;
147 gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
165 serial_0_pins: serial0_pinmux {
167 pins = "gpio16", "gpio17";
168 function = "blsp_uart0";
173 nand_pins: nand_pins {
175 pins = "gpio53", "gpio58", "gpio59";
181 pins = "gpio55", "gpio56", "gpio57", "gpio60",
182 "gpio62", "gpio63", "gpio64", "gpio65",
183 "gpio66", "gpio67", "gpio69";
191 pinctrl-0 = <&serial_0_pins>;
192 pinctrl-names = "default";
197 pinctrl-0 = <&nand_pins>;
198 pinctrl-names = "default";
203 compatible = "fixed-partitions";
204 #address-cells = <1>;
209 reg = <0x00000000 0x00080000>;
214 reg = <0x00080000 0x00080000>;
219 reg = <0x00100000 0x00100000>;
224 reg = <0x00200000 0x00080000>;
229 reg = <0x00280000 0x00140000>;
234 reg = <0x003C0000 0x00040000>;
239 reg = <0x00400000 0x07C00000>;
258 #address-cells = <1>;
263 #trigger-source-cells = <0>;
268 #trigger-source-cells = <0>;
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";