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/leds/common.h>
7 #include <dt-bindings/gpio/gpio.h>
10 compatible = "wavlink,wl-wn577a2", "maginon,wlr-755", "mediatek,mt7628an-soc";
11 model = "WAVLINK WL-WN577A2";
15 led-failsafe = &led_wps;
16 led-running = &led_wps;
17 led-upgrade = &led_wps;
21 compatible = "gpio-keys";
25 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
31 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_WPS_BUTTON>;
37 compatible = "gpio-leds";
40 function = LED_FUNCTION_LAN;
41 color = <LED_COLOR_ID_GREEN>;
42 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
46 function = LED_FUNCTION_WAN;
47 color = <LED_COLOR_ID_GREEN>;
48 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
52 function = LED_FUNCTION_WPS;
53 color = <LED_COLOR_ID_GREEN>;
54 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
61 groups = "i2c", "wdt", "p0led_an", "p3led_an", "p4led_an";
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 = <40000000>;
88 compatible = "fixed-partitions";
100 reg = <0x30000 0x10000>;
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_28: macaddr@28 {
129 compatible = "denx,uimage";
131 reg = <0x50000 0x7b0000>;
140 nvmem-cells = <&eeprom_factory_0>;
141 nvmem-cell-names = "eeprom";
145 nvmem-cells = <&macaddr_factory_28>;
146 nvmem-cell-names = "mac-address";
150 mediatek,portmap = <0x2f>;