1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
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 = "wevo,air-duo", "ralink,mt7620a-soc";
11 model = "WeVO AIR DUO";
14 led-boot = &led_status;
15 led-failsafe = &led_status;
16 led-running = &led_status;
17 led-upgrade = &led_status;
18 label-mac-device = ðernet;
22 compatible = "gpio-leds";
25 label = "blue:status";
26 color = <LED_COLOR_ID_BLUE>;
27 function = LED_FUNCTION_STATUS;
28 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
32 color = <LED_COLOR_ID_BLUE>;
33 function = LED_FUNCTION_WPS;
34 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
39 compatible = "gpio-keys";
43 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_WPS_BUTTON>;
49 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_RESTART>;
63 compatible = "jedec,spi-nor";
65 spi-max-frequency = <50000000>;
68 compatible = "fixed-partitions";
80 reg = <0x30000 0x10000>;
84 factory: partition@40000 {
86 reg = <0x40000 0x10000>;
90 compatible = "fixed-layout";
94 eeprom_factory_0: eeprom@0 {
98 eeprom_factory_8000: eeprom@8000 {
102 macaddr_factory_4: macaddr@4 {
109 compatible = "denx,uimage";
111 reg = <0x50000 0xeb0000>;
116 reg = <0xf00000 0x100000>;
125 groups = "i2c", "uartf", "spi refclk";
131 pinctrl-names = "default";
132 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
133 nvmem-cells = <&macaddr_factory_4>;
134 nvmem-cell-names = "mac-address";
138 mediatek,fixed-link = <1000 1 1 1>;
178 mediatek,ephy-base = /bits/ 8 <12>;
195 compatible = "mediatek,mt76";
196 reg = <0x0000 0 0 0 0>;
197 nvmem-cells = <&eeprom_factory_8000>;
198 nvmem-cell-names = "eeprom";
199 ieee80211-freq-limit = <5000000 6000000>;
209 pinctrl-names = "default";
210 pinctrl-0 = <&wled_pins>;
211 nvmem-cells = <&eeprom_factory_0>;
212 nvmem-cell-names = "eeprom";