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 {
108 reg = <0x50000 0x20000>;
113 compatible = "openwrt,uimage", "denx,uimage";
114 openwrt,offset = <FW_EDIMAX_OFFSET>;
115 openwrt,partition-magic = <FW_MAGIC_EDIMAX>;
117 reg = <0x00070000 0x00790000>;
125 groups = "i2c", "uartf", "nd_sd", "rgmii2";
131 phy_reset_pins: phy-reset {
133 groups = "spi refclk";
140 pinctrl-names = "default";
141 pinctrl-0 = <&rgmii1_pins &mdio_pins &phy_reset_pins>;
143 nvmem-cells = <&macaddr_factory_4>;
144 nvmem-cell-names = "mac-address";
146 phy-reset-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
147 phy-reset-duration = <30>;
151 mediatek,fixed-link = <1000 1 1 1>;
158 phy0: ethernet-phy@0 {
164 phy1: ethernet-phy@1 {
170 phy2: ethernet-phy@2 {
176 phy3: ethernet-phy@3 {
182 phy4: ethernet-phy@4 {
191 mediatek,ephy-base = /bits/ 8 <8>;
195 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_4>;
196 nvmem-cell-names = "eeprom", "mac-address";
205 reg = <0x0000 0 0 0 0>;
206 ieee80211-freq-limit = <5000000 6000000>;
207 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_4>;
208 nvmem-cell-names = "eeprom", "mac-address";
209 mac-address-increment = <2>;