1 #include "mt7628an.dtsi"
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/leds/common.h>
5 #include <dt-bindings/gpio/gpio.h>
8 compatible = "wavlink,wl-wn531a3", "mediatek,mt7628an-soc";
9 model = "Wavlink WL-WN531A3";
12 led-boot = &led_status_blue;
13 led-failsafe = &led_status_red;
14 led-running = &led_status_blue;
15 led-upgrade = &led_status_red;
19 compatible = "gpio-keys";
23 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
29 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_WPS_BUTTON>;
35 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RESTART>;
41 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
47 compatible = "gpio-leds";
51 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy0tpt";
55 led_status_blue: led_status_blue {
56 function = LED_FUNCTION_STATUS;
57 color = <LED_COLOR_ID_BLUE>;
58 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
61 led_status_red: led_status_red {
62 function = LED_FUNCTION_STATUS;
63 color = <LED_COLOR_ID_RED>;
64 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
71 groups = "i2c", "wled_an", "gpio", "wdt";
82 reg = <0x0000 0 0 0 0>;
83 nvmem-cells = <&eeprom_factory_8000>;
84 nvmem-cell-names = "eeprom";
85 ieee80211-freq-limit = <5000000 6000000>;
93 compatible = "jedec,spi-nor";
95 spi-max-frequency = <40000000>;
98 compatible = "fixed-partitions";
109 label = "u-boot-env";
110 reg = <0x30000 0x10000>;
114 factory: partition@40000 {
116 reg = <0x40000 0x10000>;
120 compatible = "fixed-layout";
121 #address-cells = <1>;
124 eeprom_factory_0: eeprom@0 {
128 eeprom_factory_8000: eeprom@8000 {
129 reg = <0x8000 0x200>;
132 macaddr_factory_28: macaddr@28 {
139 compatible = "denx,uimage";
141 reg = <0x50000 0x7b0000>;
150 nvmem-cells = <&eeprom_factory_0>;
151 nvmem-cell-names = "eeprom";
155 nvmem-cells = <&macaddr_factory_28>;
156 nvmem-cell-names = "mac-address";
160 mediatek,portmap = <0x2f>;