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>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/mtd/partitions/uimage.h>
11 compatible = "ralink,mt7620a-soc";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 compatible = "gpio-keys";
25 gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
31 compatible = "gpio-leds";
34 function = LED_FUNCTION_POWER;
35 color = <LED_COLOR_ID_GREEN>;
36 gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
40 function = LED_FUNCTION_LAN;
41 color = <LED_COLOR_ID_GREEN>;
42 gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
46 function = LED_FUNCTION_WPS;
47 color = <LED_COLOR_ID_GREEN>;
48 gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
65 compatible = "jedec,spi-nor";
67 spi-max-frequency = <10000000>;
70 compatible = "fixed-partitions";
82 reg = <0x30000 0x10000>;
88 reg = <0x40000 0x10000>;
92 compatible = "fixed-layout";
96 eeprom_factory_0: eeprom@0 {
100 eeprom_factory_8000: eeprom@8000 {
101 reg = <0x8000 0x200>;
104 macaddr_factory_4: macaddr@4 {
105 compatible = "mac-base";
107 #nvmem-cell-cells = <1>;
114 reg = <0x50000 0x20000>;
119 compatible = "openwrt,uimage", "denx,uimage";
120 openwrt,offset = <FW_EDIMAX_OFFSET>;
121 openwrt,partition-magic = <FW_MAGIC_EDIMAX>;
123 reg = <0x00070000 0x00790000>;
131 groups = "i2c", "uartf", "nd_sd", "rgmii2";
137 phy_reset_pins: phy-reset {
139 groups = "spi refclk";
146 pinctrl-names = "default";
147 pinctrl-0 = <&rgmii1_pins &mdio_pins &phy_reset_pins>;
149 nvmem-cells = <&macaddr_factory_4 0>;
150 nvmem-cell-names = "mac-address";
152 phy-reset-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
153 phy-reset-duration = <30>;
157 mediatek,fixed-link = <1000 1 1 1>;
164 phy0: ethernet-phy@0 {
170 phy1: ethernet-phy@1 {
176 phy2: ethernet-phy@2 {
182 phy3: ethernet-phy@3 {
188 phy4: ethernet-phy@4 {
197 mediatek,ephy-base = /bits/ 8 <8>;
201 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_4 0>;
202 nvmem-cell-names = "eeprom", "mac-address";
211 reg = <0x0000 0 0 0 0>;
212 ieee80211-freq-limit = <5000000 6000000>;
213 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_4 2>;
214 nvmem-cell-names = "eeprom", "mac-address";