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 = "netis,wf2770", "ralink,mt7620a-soc";
11 model = "NETIS WF2770";
14 compatible = "gpio-leds";
17 function = LED_FUNCTION_WLAN;
18 color = <LED_COLOR_ID_BLUE>;
19 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
20 linux,default-trigger = "phy0tpt";
25 compatible = "gpio-keys";
29 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
35 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_WPS_BUTTON>;
41 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RFKILL>;
47 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_LIGHTS_TOGGLE>;
57 compatible = "jedec,spi-nor";
59 spi-max-frequency = <50000000>;
62 compatible = "fixed-partitions";
74 reg = <0x30000 0x10000>;
80 reg = <0x40000 0x10000>;
84 compatible = "fixed-layout";
88 eeprom_factory_0: eeprom@0 {
92 eeprom_factory_8000: eeprom@8000 {
96 macaddr_factory_4: macaddr@4 {
103 compatible = "denx,uimage";
105 reg = <0x50000 0xfb0000>;
113 groups = "i2c", "uartf";
119 pinctrl-names = "default";
120 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
122 nvmem-cells = <&macaddr_factory_4>;
123 nvmem-cell-names = "mac-address";
127 mediatek,fixed-link = <1000 1 1 1>;
167 mediatek,ephy-base = /bits/ 8 <12>;
176 compatible = "mediatek,mt76";
177 reg = <0x0000 0 0 0 0>;
178 nvmem-cells = <&eeprom_factory_8000>;
179 nvmem-cell-names = "eeprom";
180 ieee80211-freq-limit = <5000000 6000000>;
185 nvmem-cells = <&eeprom_factory_0>;
186 nvmem-cell-names = "eeprom";