3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "asus,rt-ac51u", "ralink,mt7620a-soc";
10 model = "Asus RT-AC51U";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 compatible = "gpio-leds";
23 label = "rt-ac51u:blue:power";
24 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
28 label = "rt-ac51u:blue:usb";
29 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
30 trigger-sources = <&ohci_port1>, <&ehci_port1>;
31 linux,default-trigger = "usbport";
35 label = "rt-ac51u:blue:wifi";
36 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
41 compatible = "gpio-keys-polled";
46 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
52 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_WPS_BUTTON>;
62 compatible = "jedec,spi-nor";
64 spi-max-frequency = <10000000>;
67 compatible = "fixed-partitions";
79 reg = <0x30000 0x10000>;
83 factory: partition@40000 {
85 reg = <0x40000 0x10000>;
90 compatible = "denx,uimage";
92 reg = <0x50000 0xfb0000>;
109 line-name = "enable-leds";
111 gpios = <10 GPIO_ACTIVE_HIGH>;
121 mtd-mac-address = <&factory 0x4>;
122 mediatek,portmap = "wllll";
126 ralink,mtd-eeprom = <&factory 0>;
130 state_default: pinctrl0 {
132 ralink,group = "i2c", "wled", "uartf";
133 ralink,function = "gpio";
144 reg = <0x0000 0 0 0 0>;
145 mediatek,mtd-eeprom = <&factory 0x8000>;