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-wn577a2", "maginon,wlr-755", "mediatek,mt7628an-soc";
10 model = "WAVLINK WL-WN577A2";
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 compatible = "gpio-leds";
40 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
45 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
50 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
57 groups = "i2c", "wdt", "p0led_an", "p3led_an", "p4led_an";
68 reg = <0x0000 0 0 0 0>;
69 nvmem-cells = <&eeprom_factory_8000>;
70 nvmem-cell-names = "eeprom";
71 ieee80211-freq-limit = <5000000 6000000>;
79 compatible = "jedec,spi-nor";
81 spi-max-frequency = <40000000>;
84 compatible = "fixed-partitions";
96 reg = <0x30000 0x10000>;
100 factory: partition@40000 {
102 reg = <0x40000 0x10000>;
106 compatible = "fixed-layout";
107 #address-cells = <1>;
110 eeprom_factory_0: eeprom@0 {
114 eeprom_factory_8000: eeprom@8000 {
115 reg = <0x8000 0x200>;
118 macaddr_factory_28: macaddr@28 {
125 compatible = "denx,uimage";
127 reg = <0x50000 0x7b0000>;
136 nvmem-cells = <&eeprom_factory_0>;
137 nvmem-cell-names = "eeprom";
141 nvmem-cells = <&macaddr_factory_28>;
142 nvmem-cell-names = "mac-address";
146 mediatek,portmap = <0x2f>;