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>
7 #include <dt-bindings/leds/common.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 function = LED_FUNCTION_POWER;
25 color = <LED_COLOR_ID_RED>;
26 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
30 label = "green:internet";
31 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
36 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
41 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
46 compatible = "gpio-keys";
50 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_RESTART>;
60 compatible = "jedec,spi-nor";
62 spi-max-frequency = <10000000>;
65 compatible = "fixed-partitions";
77 reg = <0x30000 0x10000>;
81 factory: partition@40000 {
83 reg = <0x40000 0x10000>;
87 compatible = "fixed-layout";
91 eeprom_factory_0: eeprom@0 {
95 eeprom_factory_8000: eeprom@8000 {
99 macaddr_factory_4: macaddr@4 {
106 compatible = "openwrt,uimage", "denx,uimage";
107 openwrt,padding = <32>;
109 reg = <0x50000 0xf90000>;
113 label = "board_data";
114 reg = <0xfe0000 0x20000>;
123 groups = "i2c", "uartf";
131 groups = "spi refclk";
132 function = "spi refclk";
137 pinctrl-names = "default";
138 pinctrl-0 = <&rgmii2_pins &mdio_pins>;
140 nvmem-cells = <&macaddr_factory_4>;
141 nvmem-cell-names = "mac-address";
145 phy-handle = <&phy4>;
152 phy4: ethernet-phy@4 {
161 mediatek,ephy-base = /bits/ 8 <8>;
165 nvmem-cells = <&eeprom_factory_0>;
166 nvmem-cell-names = "eeprom";
168 pinctrl-names = "default", "pa_gpio";
169 pinctrl-0 = <&pa_pins>, <&wled_pins>;
170 pinctrl-1 = <&pa_gpio_pins>, <&wled_pins>;
178 compatible = "pci14c3,7662";
179 reg = <0x0000 0 0 0 0>;
180 nvmem-cells = <&eeprom_factory_8000>;
181 nvmem-cell-names = "eeprom";
182 ieee80211-freq-limit = <5000000 6000000>;