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-wn535k1", "ralink,mt7620a-soc";
11 model = "Wavlink WL-WN535K1";
14 label-mac-device = &wifi0;
15 led-boot = &led_status_blue;
16 led-failsafe = &led_status_red;
17 led-running = &led_status_blue;
18 led-upgrade = &led_status_red;
22 compatible = "gpio-keys";
26 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
32 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_WPS_BUTTON>;
38 compatible = "gpio-leds";
40 led_status_blue: status_blue {
41 function = LED_FUNCTION_STATUS;
42 color = <LED_COLOR_ID_BLUE>;
43 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
46 led_status_red: status_red {
47 function = LED_FUNCTION_STATUS;
48 color = <LED_COLOR_ID_RED>;
49 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
54 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
59 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
63 function = LED_FUNCTION_WAN;
64 color = <LED_COLOR_ID_GREEN>;
65 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
78 compatible = "jedec,spi-nor";
80 spi-max-frequency = <50000000>;
83 compatible = "fixed-partitions";
95 reg = <0x30000 0x10000>;
101 reg = <0x40000 0x10000>;
105 compatible = "fixed-layout";
106 #address-cells = <1>;
109 eeprom_factory_0: eeprom@0 {
113 eeprom_factory_8000: eeprom@8000 {
114 reg = <0x8000 0x200>;
117 macaddr_factory_28: macaddr@28 {
124 compatible = "denx,uimage";
126 reg = <0x50000 0x730000>;
131 reg = <0x780000 0x80000>;
144 reg = <0x0000 0 0 0 0>;
145 nvmem-cells = <&eeprom_factory_8000>;
146 nvmem-cell-names = "eeprom";
147 ieee80211-freq-limit = <5000000 6000000>;
152 pinctrl-names = "default";
153 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
155 nvmem-cells = <&macaddr_factory_28>;
156 nvmem-cell-names = "mac-address";
158 mediatek,portmap = "llllw";
162 phy-handle = <&phy4>;
168 phy-handle = <&phy5>;
175 phy4: ethernet-phy@4 {
180 phy5: ethernet-phy@5 {
192 nvmem-cells = <&eeprom_factory_0>;
193 nvmem-cell-names = "eeprom";
198 groups = "ephy", "i2c", "uartf";