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>
9 compatible = "netis,wf2770", "ralink,mt7620a-soc";
10 model = "NETIS WF2770";
13 compatible = "gpio-leds";
17 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
18 linux,default-trigger = "phy0tpt";
23 compatible = "gpio-keys";
27 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
33 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_WPS_BUTTON>;
39 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RFKILL>;
45 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_LIGHTS_TOGGLE>;
55 compatible = "jedec,spi-nor";
57 spi-max-frequency = <50000000>;
60 compatible = "fixed-partitions";
72 reg = <0x30000 0x10000>;
76 factory: partition@40000 {
78 reg = <0x40000 0x10000>;
82 compatible = "fixed-layout";
86 eeprom_factory_0: eeprom@0 {
90 eeprom_factory_8000: eeprom@8000 {
94 macaddr_factory_4: macaddr@4 {
101 compatible = "denx,uimage";
103 reg = <0x50000 0xfb0000>;
111 groups = "i2c", "uartf";
117 pinctrl-names = "default";
118 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
120 nvmem-cells = <&macaddr_factory_4>;
121 nvmem-cell-names = "mac-address";
125 mediatek,fixed-link = <1000 1 1 1>;
165 mediatek,ephy-base = /bits/ 8 <12>;
174 compatible = "mediatek,mt76";
175 reg = <0x0000 0 0 0 0>;
176 nvmem-cells = <&eeprom_factory_8000>;
177 nvmem-cell-names = "eeprom";
178 ieee80211-freq-limit = <5000000 6000000>;
183 nvmem-cells = <&eeprom_factory_0>;
184 nvmem-cell-names = "eeprom";