1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/leds/common.h>
8 #include "mt7986a.dtsi"
11 model = "ASUS TUF-AX6000";
12 compatible = "asus,tuf-ax6000", "mediatek,mt7986a";
16 led-boot = &led_system;
17 led-failsafe = &led_system;
18 led-running = &led_system;
19 led-upgrade = &led_system;
23 stdout-path = "serial0:115200n8";
24 bootargs-override = "ubi.mtd=UBI_DEV";
28 reg = <0 0x40000000 0 0x20000000>;
32 compatible = "gpio-keys";
36 gpios = <&pio 9 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
42 gpios = <&pio 10 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_WPS_BUTTON>;
48 compatible = "gpio-leds";
51 function = LED_FUNCTION_WLAN;
52 color = <LED_COLOR_ID_WHITE>;
53 gpios = <&pio 2 GPIO_ACTIVE_HIGH>;
54 linux,default-trigger = "phy1tpt";
58 label = "white:system";
59 gpios = <&pio 11 GPIO_ACTIVE_HIGH>;
63 function = LED_FUNCTION_WAN;
64 color = <LED_COLOR_ID_RED>;
65 gpios = <&pio 12 GPIO_ACTIVE_LOW>;
70 gpios = <&pio 20 GPIO_ACTIVE_HIGH>;
74 reg_3p3v: regulator-3p3v {
75 compatible = "regulator-fixed";
76 regulator-name = "fixed-3.3V";
77 regulator-min-microvolt = <3300000>;
78 regulator-max-microvolt = <3300000>;
83 reg_5v: regulator-5v {
84 compatible = "regulator-fixed";
85 regulator-name = "fixed-5V";
86 regulator-min-microvolt = <5000000>;
87 regulator-max-microvolt = <5000000>;
102 compatible = "mediatek,eth-mac";
104 phy-mode = "2500base-x";
115 compatible = "mediatek,eth-mac";
117 phy-mode = "2500base-x";
118 phy-handle = <&phy6>;
122 #address-cells = <1>;
128 reset-gpios = <&pio 6 GPIO_ACTIVE_LOW>;
129 reset-delay-us = <50000>;
130 reset-post-delay-us = <20000>;
133 compatible = "ethernet-phy-ieee802.3-c45";
137 mxl,led-config = <0x03f0 0x0 0x0 0x0>;
141 compatible = "ethernet-phy-ieee802.3-c45";
144 /* LED0: CONN (WAN white) */
145 mxl,led-config = <0x03f0 0x0 0x0 0x0>;
149 compatible = "mediatek,mt7531";
152 reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
153 reset-assert-us = <10000>;
154 reset-deassert-us = <10000>;
159 spi_flash_pins: spi-flash-pins-33-to-38 {
162 groups = "spi0", "spi0_wp_hold";
165 pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
166 drive-strength = <8>;
167 mediatek,pull-up-adv = <0>; /* bias-disable */
170 pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
171 drive-strength = <8>;
172 mediatek,pull-down-adv = <0>; /* bias-disable */
176 wf_2g_5g_pins: wf_2g_5g-pins {
179 groups = "wf_2g", "wf_5g";
182 pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4",
183 "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6",
184 "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10",
185 "WF0_TOP_CLK", "WF0_TOP_DATA", "WF1_HB1",
186 "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
187 "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
188 "WF1_TOP_CLK", "WF1_TOP_DATA";
189 drive-strength = <4>;
193 wf_dbdc_pins: wf-dbdc-pins {
199 pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4",
200 "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6",
201 "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10",
202 "WF0_TOP_CLK", "WF0_TOP_DATA", "WF1_HB1",
203 "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
204 "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
205 "WF1_TOP_CLK", "WF1_TOP_DATA";
206 drive-strength = <4>;
216 pinctrl-names = "default";
217 pinctrl-0 = <&spi_flash_pins>;
220 spi_nand_flash: flash@0 {
221 compatible = "spi-nand";
222 #address-cells = <1>;
226 spi-max-frequency = <20000000>;
227 spi-tx-bus-width = <4>;
228 spi-rx-bus-width = <4>;
230 partitions: partitions {
231 compatible = "fixed-partitions";
232 #address-cells = <1>;
236 label = "bootloader";
237 reg = <0x0 0x400000>;
243 reg = <0x400000 0xfc00000>;
251 #address-cells = <1>;
277 phy-mode = "2500base-x";
278 phy-handle = <&phy5>;
286 phy-mode = "2500base-x";
297 #address-cells = <1>;
303 mediatek,led-config = <
304 0x21 0x8009 /* BASIC_CTRL */
305 0x22 0x0c00 /* ON_DURATION */
306 0x23 0x1400 /* BLINK_DURATION */
307 0x24 0x8000 /* LED0_ON_CTRL */
308 0x25 0x0000 /* LED0_BLINK_CTRL */
309 0x26 0xc007 /* LED1_ON_CTRL */
310 0x27 0x003f /* LED1_BLINK_CTRL */
317 mediatek,led-config = <
318 0x21 0x8009 /* BASIC_CTRL */
319 0x22 0x0c00 /* ON_DURATION */
320 0x23 0x1400 /* BLINK_DURATION */
321 0x24 0x8000 /* LED0_ON_CTRL */
322 0x25 0x0000 /* LED0_BLINK_CTRL */
323 0x26 0xc007 /* LED1_ON_CTRL */
324 0x27 0x003f /* LED1_BLINK_CTRL */
331 mediatek,led-config = <
332 0x21 0x8009 /* BASIC_CTRL */
333 0x22 0x0c00 /* ON_DURATION */
334 0x23 0x1400 /* BLINK_DURATION */
335 0x24 0x8000 /* LED0_ON_CTRL */
336 0x25 0x0000 /* LED0_BLINK_CTRL */
337 0x26 0xc007 /* LED1_ON_CTRL */
338 0x27 0x003f /* LED1_BLINK_CTRL */
345 mediatek,led-config = <
346 0x21 0x8009 /* BASIC_CTRL */
347 0x22 0x0c00 /* ON_DURATION */
348 0x23 0x1400 /* BLINK_DURATION */
349 0x24 0x8000 /* LED0_ON_CTRL */
350 0x25 0x0000 /* LED0_BLINK_CTRL */
351 0x26 0xc007 /* LED1_ON_CTRL */
352 0x27 0x003f /* LED1_BLINK_CTRL */
364 pinctrl-names = "default", "dbdc";
365 pinctrl-0 = <&wf_2g_5g_pins>;
366 pinctrl-1 = <&wf_dbdc_pins>;
378 vusb33-supply = <®_3p3v>;
379 vbus-supply = <®_5v>;