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>;
58 compatible = "gpio-export";
62 gpio-export,name = "enable-leds";
63 gpio-export,output = <1>;
64 gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
73 compatible = "jedec,spi-nor";
75 spi-max-frequency = <10000000>;
78 compatible = "fixed-partitions";
90 reg = <0x30000 0x10000>;
94 factory: partition@40000 {
96 reg = <0x40000 0x10000>;
101 compatible = "denx,uimage";
103 reg = <0x50000 0xfb0000>;
123 mtd-mac-address = <&factory 0x4>;
124 mediatek,portmap = "wllll";
128 ralink,mtd-eeprom = <&factory 0>;
132 state_default: pinctrl0 {
134 ralink,group = "i2c", "wled", "uartf";
135 ralink,function = "gpio";
146 reg = <0x0000 0 0 0 0>;
147 mediatek,mtd-eeprom = <&factory 0x8000>;