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>
9 compatible = "wavlink,wl-wn579x3", "ralink,mt7620a-soc";
10 model = "Wavlink WL-WN579X3";
14 led-failsafe = &led_wps;
15 led-running = &led_wps;
16 led-upgrade = &led_wps;
20 compatible = "gpio-keys";
24 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RESTART>;
30 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_WPS_BUTTON>;
36 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
38 linux,input-type = <EV_SW>;
42 label = "mode_repeater";
43 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
45 linux,input-type = <EV_SW>;
50 compatible = "gpio-leds";
54 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
59 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
64 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
69 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
72 /* These three form the signal wifi strength segments */
74 label = "blue:wifi_high";
75 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
79 label = "blue:wifi_medium";
80 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
84 label = "blue:wifi_low";
85 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
102 compatible = "jedec,spi-nor";
104 spi-max-frequency = <50000000>;
107 compatible = "fixed-partitions";
108 #address-cells = <1>;
119 reg = <0x30000 0x10000>;
123 factory: partition@40000 {
125 reg = <0x40000 0x10000>;
130 compatible = "denx,uimage";
132 reg = <0x50000 0x790000>;
136 label = "board_data";
137 reg = <0x7e0000 0x10000>;
143 reg = <0x7f0000 0x10000>;
156 reg = <0x0000 0 0 0 0>;
157 mediatek,mtd-eeprom = <&factory 0x8000>;
158 ieee80211-freq-limit = <5000000 6000000>;
163 pinctrl-names = "default";
164 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
166 nvmem-cells = <&macaddr_factory_28>;
167 nvmem-cell-names = "mac-address";
169 mediatek,portmap = "llllw";
173 phy-handle = <&phy4>;
179 phy-handle = <&phy5>;
186 phy4: ethernet-phy@4 {
191 phy5: ethernet-phy@5 {
200 mediatek,ephy-base = /bits/ 8 <8>;
204 ralink,mtd-eeprom = <&factory 0x0>;
209 groups = "ephy", "i2c", "wled", "uartf";
215 compatible = "nvmem-cells";
216 #address-cells = <1>;
219 macaddr_factory_28: macaddr@28 {