1 // SPDX-License-Identifier: GPL-2.0-or-later
3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "wavlink,wl-wn579x3", "ralink,mt7620a-soc";
11 model = "Wavlink WL-WN579X3";
15 led-failsafe = &led_wps;
16 led-running = &led_wps;
17 led-upgrade = &led_wps;
21 compatible = "gpio-keys";
25 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
31 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_WPS_BUTTON>;
37 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
39 linux,input-type = <EV_SW>;
43 label = "mode_repeater";
44 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
46 linux,input-type = <EV_SW>;
51 compatible = "gpio-leds";
54 function = LED_FUNCTION_WPS;
55 color = <LED_COLOR_ID_BLUE>;
56 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
60 function = LED_FUNCTION_LAN;
61 color = <LED_COLOR_ID_BLUE>;
62 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
66 function = LED_FUNCTION_WAN;
67 color = <LED_COLOR_ID_BLUE>;
68 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
73 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
76 /* These three form the signal wifi strength segments */
78 label = "blue:wifi_high";
79 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
83 label = "blue:wifi_medium";
84 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
88 label = "blue:wifi_low";
89 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
106 compatible = "jedec,spi-nor";
108 spi-max-frequency = <50000000>;
111 compatible = "fixed-partitions";
112 #address-cells = <1>;
123 reg = <0x30000 0x10000>;
127 factory: partition@40000 {
129 reg = <0x40000 0x10000>;
133 compatible = "fixed-layout";
134 #address-cells = <1>;
137 eeprom_factory_0: eeprom@0 {
141 eeprom_factory_8000: eeprom@8000 {
142 reg = <0x8000 0x200>;
145 macaddr_factory_28: macaddr@28 {
152 compatible = "denx,uimage";
154 reg = <0x50000 0x790000>;
158 label = "board_data";
159 reg = <0x7e0000 0x10000>;
165 reg = <0x7f0000 0x10000>;
178 reg = <0x0000 0 0 0 0>;
179 nvmem-cells = <&eeprom_factory_8000>;
180 nvmem-cell-names = "eeprom";
181 ieee80211-freq-limit = <5000000 6000000>;
186 pinctrl-names = "default";
187 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
189 nvmem-cells = <&macaddr_factory_28>;
190 nvmem-cell-names = "mac-address";
192 mediatek,portmap = "llllw";
196 phy-handle = <&phy4>;
202 phy-handle = <&phy5>;
209 phy4: ethernet-phy@4 {
214 phy5: ethernet-phy@5 {
223 mediatek,ephy-base = /bits/ 8 <8>;
227 nvmem-cells = <&eeprom_factory_0>;
228 nvmem-cell-names = "eeprom";
233 groups = "ephy", "i2c", "wled", "uartf";