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/mtd/partitions/uimage.h>
10 compatible = "ralink,mt7620a-soc";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 compatible = "gpio-keys";
24 gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RESTART>;
30 compatible = "gpio-leds";
33 label = "green:power";
34 gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
39 gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
44 gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
61 compatible = "jedec,spi-nor";
63 spi-max-frequency = <10000000>;
66 compatible = "fixed-partitions";
78 reg = <0x30000 0x10000>;
82 factory: partition@40000 {
84 reg = <0x40000 0x10000>;
88 compatible = "fixed-layout";
92 eeprom_factory_0: eeprom@0 {
96 eeprom_factory_8000: eeprom@8000 {
100 macaddr_factory_4: macaddr@4 {
101 compatible = "mac-base";
103 #nvmem-cell-cells = <1>;
110 reg = <0x50000 0x20000>;
115 compatible = "openwrt,uimage", "denx,uimage";
116 openwrt,offset = <FW_EDIMAX_OFFSET>;
117 openwrt,partition-magic = <FW_MAGIC_EDIMAX>;
119 reg = <0x00070000 0x00790000>;
127 groups = "i2c", "uartf", "nd_sd", "rgmii2";
133 phy_reset_pins: phy-reset {
135 groups = "spi refclk";
142 pinctrl-names = "default";
143 pinctrl-0 = <&rgmii1_pins &mdio_pins &phy_reset_pins>;
145 nvmem-cells = <&macaddr_factory_4 0>;
146 nvmem-cell-names = "mac-address";
148 phy-reset-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
149 phy-reset-duration = <30>;
153 mediatek,fixed-link = <1000 1 1 1>;
160 phy0: ethernet-phy@0 {
166 phy1: ethernet-phy@1 {
172 phy2: ethernet-phy@2 {
178 phy3: ethernet-phy@3 {
184 phy4: ethernet-phy@4 {
193 mediatek,ephy-base = /bits/ 8 <8>;
197 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_4 0>;
198 nvmem-cell-names = "eeprom", "mac-address";
207 reg = <0x0000 0 0 0 0>;
208 ieee80211-freq-limit = <5000000 6000000>;
209 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_4 2>;
210 nvmem-cell-names = "eeprom", "mac-address";