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-wn570ha1", "mediatek,mt7628an-soc";
9 model = "Wavlink WL-WN570HA1";
12 compatible = "gpio-keys";
16 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
17 linux,code = <KEY_RESTART>;
22 compatible = "gpio-leds";
25 function = LED_FUNCTION_POWER;
26 color = <LED_COLOR_ID_GREEN>;
27 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
28 default-state = "keep";
32 function = LED_FUNCTION_WAN;
33 color = <LED_COLOR_ID_GREEN>;
34 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
38 label = "green:wifi-high";
39 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
43 label = "green:wifi-med";
44 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
48 label = "green:wifi-low";
49 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
54 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
61 groups = "i2c", "wled_an", "p0led_an", "wdt", "refclk";
72 reg = <0x0000 0 0 0 0>;
73 nvmem-cells = <&eeprom_factory_8000>;
74 nvmem-cell-names = "eeprom";
75 ieee80211-freq-limit = <5000000 6000000>;
83 compatible = "jedec,spi-nor";
85 spi-max-frequency = <10000000>;
88 compatible = "fixed-partitions";
100 reg = <0x30000 0x10000>;
104 factory: partition@40000 {
106 reg = <0x40000 0x10000>;
110 compatible = "fixed-layout";
111 #address-cells = <1>;
114 eeprom_factory_0: eeprom@0 {
118 eeprom_factory_8000: eeprom@8000 {
119 reg = <0x8000 0x200>;
122 macaddr_factory_2e: macaddr@2e {
129 compatible = "denx,uimage";
131 reg = <0x50000 0x7b0000>;
140 nvmem-cells = <&eeprom_factory_0>;
141 nvmem-cell-names = "eeprom";
145 nvmem-cells = <&macaddr_factory_2e>;
146 nvmem-cell-names = "mac-address";
150 mediatek,portmap = <0x2f>;