1 // SPDX-License-Identifier: GPL-2.0
4 #include "mt7620a.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "fon,fon2601", "ralink,mt7620a-soc";
11 model = "Fon FON2601";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 compatible = "gpio-leds";
24 label = "fon2601:red:power";
25 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
29 label = "fon2601:green:internet";
30 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
34 label = "fon2601:green:net";
35 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
39 label = "fon2601:green:wifi";
40 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
45 compatible = "gpio-keys";
49 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_RESTART>;
59 compatible = "jedec,spi-nor";
61 spi-max-frequency = <10000000>;
64 compatible = "fixed-partitions";
76 reg = <0x30000 0x10000>;
80 factory: partition@40000 {
82 reg = <0x40000 0x10000>;
87 compatible = "fonfxc,uimage";
89 reg = <0x50000 0xf90000>;
94 reg = <0xfe0000 0x20000>;
103 ralink,group = "i2c", "uartf";
104 ralink,function = "gpio";
107 ralink,group = "nd_sd";
108 ralink,function = "sd";
111 ralink,group = "spi refclk";
112 ralink,function = "spi refclk";
117 pinctrl-names = "default";
118 pinctrl-0 = <&rgmii2_pins &mdio_pins>;
120 mtd-mac-address = <&factory 0x4>;
124 phy-handle = <&phy4>;
131 phy4: ethernet-phy@4 {
139 mediatek,port4 = "gmac";
143 ralink,mtd-eeprom = <&factory 0>;
144 pinctrl-names = "default";
145 pinctrl-0 = <&pa_pins>, <&wled_pins>;
153 compatible = "pci14c3,7662";
154 reg = <0x0000 0 0 0 0>;
155 mediatek,mtd-eeprom = <&factory 0x8000>;
156 ieee80211-freq-limit = <5000000 6000000>;