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 {
77 compatible = "nvmem-cells";
79 reg = <0x40000 0x10000>;
84 eeprom_factory_0: eeprom@0 {
88 eeprom_factory_8000: eeprom@8000 {
92 macaddr_factory_4: macaddr@4 {
98 compatible = "denx,uimage";
100 reg = <0x50000 0xfb0000>;
108 groups = "i2c", "uartf";
114 pinctrl-names = "default";
115 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
117 nvmem-cells = <&macaddr_factory_4>;
118 nvmem-cell-names = "mac-address";
122 mediatek,fixed-link = <1000 1 1 1>;
162 mediatek,ephy-base = /bits/ 8 <12>;
171 compatible = "mediatek,mt76";
172 reg = <0x0000 0 0 0 0>;
173 nvmem-cells = <&eeprom_factory_8000>;
174 nvmem-cell-names = "eeprom";
175 ieee80211-freq-limit = <5000000 6000000>;
180 nvmem-cells = <&eeprom_factory_0>;
181 nvmem-cell-names = "eeprom";