2 #include <dt-bindings/input/input.h>
3 #include <dt-bindings/gpio/gpio.h>
5 #include "mt7628an.dtsi"
8 compatible = "wavlink,wl-wn570ha1", "mediatek,mt7628an-soc";
9 model = "Wavlink WL-WN570HA1";
12 bootargs = "console=ttyS0,57600";
16 compatible = "gpio-keys-polled";
21 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
27 compatible = "gpio-leds";
30 label = "wl-wn570ha1:green:power";
31 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
32 default-state = "keep";
36 label = "wl-wn570ha1:green:wan";
37 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
41 label = "wl-wn570ha1:green:wifi-high";
42 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
46 label = "wl-wn570ha1:green:wifi-med";
47 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
51 label = "wl-wn570ha1:green:wifi-low";
52 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
56 label = "wl-wn570ha1:green:wifi";
57 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
63 state_default: pinctrl0 {
65 ralink,group = "i2c", "wled_an", "p0led_an", "wdt", "refclk";
66 ralink,function = "gpio";
77 reg = <0x0000 0 0 0 0>;
78 mediatek,mtd-eeprom = <&factory 0x8000>;
79 ieee80211-freq-limit = <5000000 6000000>;
87 compatible = "jedec,spi-nor";
89 spi-max-frequency = <10000000>;
92 compatible = "fixed-partitions";
103 label = "u-boot-env";
104 reg = <0x30000 0x10000>;
108 factory: partition@40000 {
110 reg = <0x40000 0x10000>;
115 compatible = "denx,uimage";
117 reg = <0x50000 0x7b0000>;
128 mtd-mac-address = <&factory 0x2e>;
129 mediatek,portmap = "llllw";