1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "wavlink,wl-wn531a6", "mediatek,mt7621-soc";
10 model = "Wavlink WL-WN531A6";
13 led-boot = &led_status_red;
14 led-failsafe = &led_status_red;
15 led-running = &led_status_blue;
16 led-upgrade = &led_status_red;
20 compatible = "gpio-keys";
23 label = "Reset Button";
24 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RESTART>;
28 touch { /* RH6015C touch sensor -> GPIO 14 */
29 label = "Touch Button";
30 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
35 label = "Turbo Button";
36 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
42 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_WPS_BUTTON>;
48 compatible = "gpio-leds";
50 led_status_blue: status_blue {
51 label = "wl-wn531a6:blue:power";
52 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
55 led_status_red: status_red {
56 label = "wl-wn531a6:red:power";
57 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
61 label = "wl-wn531a6:blue:wifi2g";
62 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
63 linux,default-trigger = "phy0tpt";
76 compatible = "jedec,spi-nor";
78 spi-max-frequency = <40000000>;
81 compatible = "fixed-partitions";
93 reg = <0x30000 0x10000>;
97 factory: partition@40000 {
99 reg = <0x40000 0x10000>;
104 compatible = "denx,uimage";
106 reg = <0x50000 0xeb0000>;
111 reg = <0xf00000 0x100000>;
124 compatible = "mediatek,mt76";
125 reg = <0x0000 0 0 0 0>;
126 mediatek,mtd-eeprom = <&factory 0x0>;
127 ieee80211-freq-limit = <2400000 2500000>;
133 compatible = "mediatek,mt76";
134 reg = <0x0000 0 0 0 0>;
135 mediatek,mtd-eeprom = <&factory 0x8000>;
136 ieee80211-freq-limit = <5000000 6000000>;
141 mtd-mac-address = <&factory 0xe000>;
169 mtd-mac-address = <&factory 0xe006>;
176 groups = "rgmii2", "jtag", "wdt";