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;
31 compatible = "qcom,tcsr";
32 reg = <0x1949000 0x100>;
33 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
37 compatible = "qcom,tcsr";
38 reg = <0x194b000 0x100>;
39 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
43 compatible = "qcom,tcsr";
44 reg = <0x1953000 0x1000>;
45 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
49 compatible = "qcom,tcsr";
50 reg = <0x1957000 0x100>;
51 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
56 compatible = "gpio-keys";
60 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_RESTART>;
66 gpios = <&tlmm 11 GPIO_ACTIVE_LOW>;
67 linux,code = <KEY_WPS_BUTTON>;
72 compatible = "gpio-leds";
75 color = <LED_COLOR_ID_BLUE>;
76 function = LED_FUNCTION_STATUS;
77 gpios = <&tlmm 40 GPIO_ACTIVE_LOW>;
81 color = <LED_COLOR_ID_BLUE>;
82 function = LED_FUNCTION_WAN;
83 gpios = <&tlmm 61 GPIO_ACTIVE_HIGH>;
84 linux,default-trigger = "90000.mdio-1:04:link";
88 color = <LED_COLOR_ID_RED>;
89 function = LED_FUNCTION_WAN;
90 gpios = <&tlmm 68 GPIO_ACTIVE_HIGH>;
91 linux,default-trigger = "none";
95 color = <LED_COLOR_ID_BLUE>;
96 function = LED_FUNCTION_WLAN;
97 function-enumerator = <0>;
98 gpios = <&tlmm 52 GPIO_ACTIVE_LOW>;
99 linux,default-trigger = "phy1tpt";
103 color = <LED_COLOR_ID_BLUE>;
104 function = LED_FUNCTION_WLAN;
105 function-enumerator = <1>;
106 gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
107 linux,default-trigger = "phy0tpt";
111 color = <LED_COLOR_ID_BLUE>;
112 function = LED_FUNCTION_LAN;
113 function-enumerator = <1>;
114 gpios = <&tlmm 45 GPIO_ACTIVE_LOW>;
118 color = <LED_COLOR_ID_BLUE>;
119 function = LED_FUNCTION_LAN;
120 function-enumerator = <2>;
121 gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
125 color = <LED_COLOR_ID_BLUE>;
126 function = LED_FUNCTION_LAN;
127 function-enumerator = <3>;
128 gpios = <&tlmm 42 GPIO_ACTIVE_LOW>;
132 color = <LED_COLOR_ID_BLUE>;
133 function = LED_FUNCTION_LAN;
134 function-enumerator = <4>;
135 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";