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 {
83 compatible = "nvmem-cells";
85 reg = <0x40000 0x10000>;
90 eeprom_factory_0: eeprom@0 {
94 eeprom_factory_8000: eeprom@8000 {
98 macaddr_factory_4: macaddr@4 {
105 reg = <0x50000 0x20000>;
110 compatible = "openwrt,uimage", "denx,uimage";
111 openwrt,offset = <FW_EDIMAX_OFFSET>;
112 openwrt,partition-magic = <FW_MAGIC_EDIMAX>;
114 reg = <0x00070000 0x00790000>;
122 groups = "i2c", "uartf", "nd_sd", "rgmii2";
128 phy_reset_pins: phy-reset {
130 groups = "spi refclk";
137 pinctrl-names = "default";
138 pinctrl-0 = <&rgmii1_pins &mdio_pins &phy_reset_pins>;
140 nvmem-cells = <&macaddr_factory_4>;
141 nvmem-cell-names = "mac-address";
143 phy-reset-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
144 phy-reset-duration = <30>;
148 mediatek,fixed-link = <1000 1 1 1>;
155 phy0: ethernet-phy@0 {
161 phy1: ethernet-phy@1 {
167 phy2: ethernet-phy@2 {
173 phy3: ethernet-phy@3 {
179 phy4: ethernet-phy@4 {
188 mediatek,ephy-base = /bits/ 8 <8>;
192 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_4>;
193 nvmem-cell-names = "eeprom", "mac-address";
202 reg = <0x0000 0 0 0 0>;
203 ieee80211-freq-limit = <5000000 6000000>;
204 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_4>;
205 nvmem-cell-names = "eeprom", "mac-address";
206 mac-address-increment = <2>;