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>;
109 function = LED_FUNCTION_STATUS;
110 color = <LED_COLOR_ID_BLUE>;
114 color = <LED_COLOR_ID_BLUE>;
115 function = LED_FUNCTION_WAN;
116 gpios = <&tlmm 61 GPIO_ACTIVE_HIGH>;
117 linux,default-trigger = "90000.mdio-1:04:link";
121 color = <LED_COLOR_ID_RED>;
122 function = LED_FUNCTION_WAN;
123 gpios = <&tlmm 68 GPIO_ACTIVE_HIGH>;
124 linux,default-trigger = "none";
128 color = <LED_COLOR_ID_BLUE>;
129 function = LED_FUNCTION_WLAN;
130 function-enumerator = <0>;
131 gpios = <&tlmm 52 GPIO_ACTIVE_LOW>;
132 linux,default-trigger = "phy1tpt";
136 color = <LED_COLOR_ID_BLUE>;
137 function = LED_FUNCTION_WLAN;
138 function-enumerator = <1>;
139 gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
140 linux,default-trigger = "phy0tpt";
144 color = <LED_COLOR_ID_BLUE>;
145 function = LED_FUNCTION_LAN;
146 function-enumerator = <1>;
147 gpios = <&tlmm 45 GPIO_ACTIVE_LOW>;
151 color = <LED_COLOR_ID_BLUE>;
152 function = LED_FUNCTION_LAN;
153 function-enumerator = <2>;
154 gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
158 color = <LED_COLOR_ID_BLUE>;
159 function = LED_FUNCTION_LAN;
160 function-enumerator = <3>;
161 gpios = <&tlmm 42 GPIO_ACTIVE_LOW>;
165 color = <LED_COLOR_ID_BLUE>;
166 function = LED_FUNCTION_LAN;
167 function-enumerator = <4>;
168 gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
186 serial_0_pins: serial0_pinmux {
188 pins = "gpio16", "gpio17";
189 function = "blsp_uart0";
194 nand_pins: nand_pins {
196 pins = "gpio53", "gpio58", "gpio59";
202 pins = "gpio55", "gpio56", "gpio57", "gpio60",
203 "gpio62", "gpio63", "gpio64", "gpio65",
204 "gpio66", "gpio67", "gpio69";
212 pinctrl-0 = <&serial_0_pins>;
213 pinctrl-names = "default";
218 pinctrl-0 = <&nand_pins>;
219 pinctrl-names = "default";
224 compatible = "fixed-partitions";
225 #address-cells = <1>;
230 reg = <0x00000000 0x00080000>;
235 reg = <0x00080000 0x00080000>;
240 reg = <0x00100000 0x00100000>;
245 reg = <0x00200000 0x00080000>;
250 reg = <0x00280000 0x00140000>;
255 reg = <0x003C0000 0x00040000>;
260 reg = <0x00400000 0x07C00000>;
304 qcom,ath10k-calibration-variant = "ASUS-RT-AC42U";
309 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
310 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
311 clkreq-gpio = <&tlmm 39 GPIO_ACTIVE_LOW>;
314 reg = <0x00000000 0 0 0 0>;
315 #address-cells = <3>;
320 compatible = "qcom,ath10k";
321 reg = <0x00010000 0 0 0 0>;
323 qcom,ath10k-calibration-variant = "ASUS-RT-AC42U";