1 // SPDX-License-Identifier: GPL-2.0-only
3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "fon,fon2601", "ralink,mt7620a-soc";
10 model = "Fon FON2601";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 compatible = "gpio-leds";
24 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
28 label = "green:internet";
29 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
34 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
39 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
44 compatible = "gpio-keys";
48 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RESTART>;
58 compatible = "jedec,spi-nor";
60 spi-max-frequency = <10000000>;
63 compatible = "fixed-partitions";
75 reg = <0x30000 0x10000>;
79 factory: partition@40000 {
80 compatible = "nvmem-cells";
82 reg = <0x40000 0x10000>;
87 eeprom_factory_0: eeprom@0 {
91 eeprom_factory_8000: eeprom@8000 {
95 macaddr_factory_4: macaddr@4 {
101 compatible = "openwrt,uimage", "denx,uimage";
102 openwrt,padding = <32>;
104 reg = <0x50000 0xf90000>;
108 label = "board_data";
109 reg = <0xfe0000 0x20000>;
118 groups = "i2c", "uartf";
126 groups = "spi refclk";
127 function = "spi refclk";
132 pinctrl-names = "default";
133 pinctrl-0 = <&rgmii2_pins &mdio_pins>;
135 nvmem-cells = <&macaddr_factory_4>;
136 nvmem-cell-names = "mac-address";
140 phy-handle = <&phy4>;
147 phy4: ethernet-phy@4 {
156 mediatek,ephy-base = /bits/ 8 <8>;
160 nvmem-cells = <&eeprom_factory_0>;
161 nvmem-cell-names = "eeprom";
163 pinctrl-names = "default", "pa_gpio";
164 pinctrl-0 = <&pa_pins>, <&wled_pins>;
165 pinctrl-1 = <&pa_gpio_pins>, <&wled_pins>;
173 compatible = "pci14c3,7662";
174 reg = <0x0000 0 0 0 0>;
175 nvmem-cells = <&eeprom_factory_8000>;
176 nvmem-cell-names = "eeprom";
177 ieee80211-freq-limit = <5000000 6000000>;