1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "asus,rt-ac57u", "mediatek,mt7621-soc";
11 model = "ASUS RT-AC57U";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 device_type = "memory";
22 reg = <0x0 0x8000000>;
26 bootargs = "console=ttyS0,57600";
30 compatible = "gpio-leds";
33 label = "rt-ac57u:blue:power";
34 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
38 label = "rt-ac57u:blue:usb";
39 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
40 trigger-sources = <&ehci_port2>;
41 linux,default-trigger = "usbport";
46 compatible = "gpio-keys";
50 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_WPS_BUTTON>;
52 debounce-interval = <60>;
57 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_RESTART>;
59 debounce-interval = <60>;
64 compatible = "regulator-fixed";
65 regulator-name = "LED-Power";
66 gpio = <&gpio1 14 GPIO_ACTIVE_LOW>;
67 regulator-min-microvolt = <3300000>;
68 regulator-max-microvolt = <3300000>;
77 compatible = "jedec,spi-nor";
79 spi-max-frequency = <10000000>;
82 compatible = "fixed-partitions";
94 reg = <0x30000 0x10000>;
98 factory: partition@40000 {
100 reg = <0x40000 0x10000>;
105 compatible = "denx,uimage";
107 reg = <0x50000 0xfb0000>;
119 compatible = "mediatek,mt76";
120 reg = <0x0000 0 0 0 0>;
121 mediatek,mtd-eeprom = <&factory 0x8000>;
132 compatible = "mediatek,mt76";
133 reg = <0x0000 0 0 0 0>;
134 mediatek,mtd-eeprom = <&factory 0x0000>;
143 mtd-mac-address = <&factory 0xe000>;
147 state_default: pinctrl0 {
149 ralink,group = "sdhci";
150 ralink,function = "gpio";