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-wn535k1", "ralink,mt7620a-soc";
10 model = "Wavlink WL-WN535K1";
13 label-mac-device = &wifi0;
14 led-boot = &led_status_blue;
15 led-failsafe = &led_status_red;
16 led-running = &led_status_blue;
17 led-upgrade = &led_status_red;
21 compatible = "gpio-keys";
25 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
31 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_WPS_BUTTON>;
37 compatible = "gpio-leds";
39 led_status_blue: status_blue {
40 label = "blue:status";
41 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
44 led_status_red: status_red {
46 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
51 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
56 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
61 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
74 compatible = "jedec,spi-nor";
76 spi-max-frequency = <50000000>;
79 compatible = "fixed-partitions";
91 reg = <0x30000 0x10000>;
95 factory: partition@40000 {
97 reg = <0x40000 0x10000>;
100 compatible = "nvmem-cells";
101 #address-cells = <1>;
104 macaddr_factory_28: macaddr@28 {
110 compatible = "denx,uimage";
112 reg = <0x50000 0x730000>;
117 reg = <0x780000 0x80000>;
130 reg = <0x0000 0 0 0 0>;
131 mediatek,mtd-eeprom = <&factory 0x8000>;
132 ieee80211-freq-limit = <5000000 6000000>;
137 pinctrl-names = "default";
138 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
140 nvmem-cells = <&macaddr_factory_28>;
141 nvmem-cell-names = "mac-address";
143 mediatek,portmap = "llllw";
147 phy-handle = <&phy4>;
153 phy-handle = <&phy5>;
160 phy4: ethernet-phy@4 {
165 phy5: ethernet-phy@5 {
177 ralink,mtd-eeprom = <&factory 0x0>;
182 groups = "ephy", "i2c", "uartf";