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-wn530hg4", "ralink,mt7620a-soc";
11 model = "Wavlink WL-WN530HG4";
14 led-boot = &led_status_blue;
15 led-failsafe = &led_status_blue;
16 led-running = &led_status_blue;
17 led-upgrade = &led_status_blue;
21 compatible = "gpio-leds";
23 led_status_blue: status_blue {
24 function = LED_FUNCTION_STATUS;
25 color = <LED_COLOR_ID_BLUE>;
26 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
30 function = LED_FUNCTION_STATUS;
31 color = <LED_COLOR_ID_YELLOW>;
32 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
36 function = LED_FUNCTION_STATUS;
37 color = <LED_COLOR_ID_RED>;
38 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
43 compatible = "gpio-keys";
47 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_RESTART>;
57 compatible = "jedec,spi-nor";
59 spi-max-frequency = <24000000>;
62 compatible = "fixed-partitions";
74 reg = <0x30000 0x10000>;
78 factory: partition@40000 {
80 reg = <0x40000 0x10000>;
84 compatible = "fixed-layout";
88 eeprom_factory_0: eeprom@0 {
92 eeprom_factory_8000: eeprom@8000 {
96 macaddr_factory_28: macaddr@28 {
103 compatible = "denx,uimage";
105 reg = <0x50000 0x7b0000>;
113 groups = "i2c", "uartf";
119 pinctrl-names = "default";
120 pinctrl-0 = <&rgmii2_pins &mdio_pins>;
122 nvmem-cells = <&macaddr_factory_28>;
123 nvmem-cell-names = "mac-address";
125 mediatek,portmap = "llllw";
129 phy-handle = <&phy5>;
136 phy5: ethernet-phy@5 {
149 reg = <0x0000 0 0 0 0>;
150 nvmem-cells = <&eeprom_factory_8000>;
151 nvmem-cell-names = "eeprom";
152 ieee80211-freq-limit = <5000000 6000000>;
157 pinctrl-names = "default", "pa_gpio";
158 pinctrl-0 = <&pa_pins>;
159 pinctrl-1 = <&pa_gpio_pins>;
160 nvmem-cells = <&eeprom_factory_0>;
161 nvmem-cell-names = "eeprom";