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 device_type = "memory";
17 reg = <0x0 0x4000000>;
21 compatible = "gpio-keys-polled";
26 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
32 compatible = "gpio-leds";
35 label = "wl-wn570ha1:green:power";
36 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
37 default-state = "keep";
41 label = "wl-wn570ha1:green:wan";
42 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
46 label = "wl-wn570ha1:green:wifi-high";
47 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
51 label = "wl-wn570ha1:green:wifi-med";
52 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
56 label = "wl-wn570ha1:green:wifi-low";
57 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
61 label = "wl-wn570ha1:green:wifi";
62 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
68 state_default: pinctrl0 {
70 ralink,group = "i2c", "wled_an", "p0led_an", "wdt", "refclk";
71 ralink,function = "gpio";
82 reg = <0x0000 0 0 0 0>;
83 mediatek,mtd-eeprom = <&factory 0x8000>;
84 ieee80211-freq-limit = <5000000 6000000>;
92 compatible = "jedec,spi-nor";
94 spi-max-frequency = <10000000>;
97 compatible = "fixed-partitions";
108 label = "u-boot-env";
109 reg = <0x30000 0x10000>;
113 factory: partition@40000 {
115 reg = <0x40000 0x10000>;
120 compatible = "denx,uimage";
122 reg = <0x50000 0x7b0000>;
133 mtd-mac-address = <&factory 0x2e>;
134 mediatek,portmap = "llllw";