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 mediatek,mtd-eeprom = <&factory 0x8000>;
105 ieee80211-freq-limit = <5000000 6000000>;
113 compatible = "jedec,spi-nor";
115 spi-max-frequency = <40000000>;
118 compatible = "fixed-partitions";
119 #address-cells = <1>;
129 label = "u-boot-env";
130 reg = <0x30000 0x10000>;
134 factory: partition@40000 {
136 reg = <0x40000 0x10000>;
141 compatible = "denx,uimage";
143 reg = <0x50000 0x7b0000>;
152 mediatek,mtd-eeprom = <&factory 0x0>;
156 nvmem-cells = <&macaddr_factory_28>;
157 nvmem-cells-names = "max-address";
161 mediatek,portmap = <0x3f>;
177 compatible = "nvmem-cells";
178 #address-cells = <1>;
181 macaddr_factory_28: macaddr@28 {