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-wn530hg4", "ralink,mt7620a-soc";
10 model = "Wavlink WL-WN530HG4";
13 led-boot = &led_status_blue;
14 led-failsafe = &led_status_blue;
15 led-running = &led_status_blue;
16 led-upgrade = &led_status_blue;
20 compatible = "gpio-leds";
22 led_status_blue: status_blue {
23 label = "blue:status";
24 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
28 label = "yellow:status";
29 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
34 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
39 compatible = "gpio-keys";
43 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
53 compatible = "jedec,spi-nor";
55 spi-max-frequency = <24000000>;
58 compatible = "fixed-partitions";
70 reg = <0x30000 0x10000>;
74 factory: partition@40000 {
75 compatible = "nvmem-cells";
77 reg = <0x40000 0x10000>;
82 eeprom_factory_0: eeprom@0 {
86 eeprom_factory_8000: eeprom@8000 {
90 macaddr_factory_28: macaddr@28 {
96 compatible = "denx,uimage";
98 reg = <0x50000 0x7b0000>;
106 groups = "i2c", "uartf";
112 pinctrl-names = "default";
113 pinctrl-0 = <&rgmii2_pins &mdio_pins>;
115 nvmem-cells = <&macaddr_factory_28>;
116 nvmem-cell-names = "mac-address";
118 mediatek,portmap = "llllw";
122 phy-handle = <&phy5>;
129 phy5: ethernet-phy@5 {
142 reg = <0x0000 0 0 0 0>;
143 nvmem-cells = <&eeprom_factory_8000>;
144 nvmem-cell-names = "eeprom";
145 ieee80211-freq-limit = <5000000 6000000>;
150 pinctrl-names = "default", "pa_gpio";
151 pinctrl-0 = <&pa_pins>;
152 pinctrl-1 = <&pa_gpio_pins>;
153 nvmem-cells = <&eeprom_factory_0>;
154 nvmem-cell-names = "eeprom";