1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7628an.dtsi"
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
9 compatible = "wavlink,wl-wn576a2", "mediatek,mt7628an-soc";
10 model = "Wavlink WL-WN576A2";
14 led-failsafe = &led_wps;
15 led-running = &led_wps;
16 led-upgrade = &led_wps;
20 compatible = "gpio-keys";
24 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RESTART>;
30 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_WPS_BUTTON>;
36 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
38 linux,input-type = <EV_SW>;
43 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
45 linux,input-type = <EV_SW>;
50 compatible = "gpio-leds";
53 label = "blue:wifi-high";
54 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
58 label = "blue:wifi-mediumhigh";
59 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
63 label = "blue:wifi-medium";
64 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
68 label = "blue:wifi-mediumlow";
69 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
73 label = "blue:wifi-low";
74 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
79 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
84 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
91 groups = "i2c", "i2s", "wdt", "wled_an", "p0led_an", "p1led_an",
92 "p2led_an", "p3led_an", "p4led_an", "refclk", "gpio";
103 reg = <0x0000 0 0 0 0>;
104 nvmem-cells = <&eeprom_factory_8000>;
105 nvmem-cell-names = "eeprom";
106 ieee80211-freq-limit = <5000000 6000000>;
114 compatible = "jedec,spi-nor";
116 spi-max-frequency = <40000000>;
119 compatible = "fixed-partitions";
120 #address-cells = <1>;
130 label = "u-boot-env";
131 reg = <0x30000 0x10000>;
135 factory: partition@40000 {
137 reg = <0x40000 0x10000>;
141 compatible = "fixed-layout";
142 #address-cells = <1>;
145 eeprom_factory_0: eeprom@0 {
149 eeprom_factory_8000: eeprom@8000 {
150 reg = <0x8000 0x200>;
153 macaddr_factory_28: macaddr@28 {
160 compatible = "denx,uimage";
162 reg = <0x50000 0x7b0000>;
171 nvmem-cells = <&eeprom_factory_0>;
172 nvmem-cell-names = "eeprom";
176 nvmem-cells = <&macaddr_factory_28>;
177 nvmem-cells-names = "max-address";
181 mediatek,portmap = <0x3f>;