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-status = &led_power;
17 compatible = "gpio-leds";
20 label = "rt-ac51u:blue:power";
21 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
25 label = "rt-ac51u:blue:usb";
26 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
30 label = "rt-ac51u:blue:wifi";
31 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
36 compatible = "gpio-keys-polled";
41 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RESTART>;
47 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_WPS_BUTTON>;
53 compatible = "gpio-export";
57 gpio-export,name = "enable-leds";
58 gpio-export,output = <1>;
59 gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
68 compatible = "jedec,spi-nor";
70 spi-max-frequency = <10000000>;
73 compatible = "fixed-partitions";
85 reg = <0x30000 0x10000>;
89 factory: partition@40000 {
91 reg = <0x40000 0x10000>;
97 reg = <0x50000 0xfb0000>;
117 mtd-mac-address = <&factory 0x4>;
118 mediatek,portmap = "wllll";
122 ralink,mtd-eeprom = <&factory 0>;
126 state_default: pinctrl0 {
128 ralink,group = "i2c", "wled", "uartf";
129 ralink,function = "gpio";