1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2014 Imre Kaloz <kaloz@openwrt.org>
6 #include "mt7620a.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
12 compatible = "linksys,e1700", "ralink,mt7620a-soc";
13 model = "Linksys E1700";
16 led-boot = &led_power;
17 led-failsafe = &led_power;
18 led-running = &led_power;
19 led-upgrade = &led_power;
23 compatible = "gpio-keys";
27 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
28 linux,code = <KEY_RESTART>;
33 gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
34 linux,code = <KEY_WPS_BUTTON>;
39 compatible = "gpio-leds";
42 label = "green:power";
43 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
48 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
57 compatible = "jedec,spi-nor";
59 spi-max-frequency = <10000000>;
62 compatible = "fixed-partitions";
74 reg = <0x30000 0x10000>;
78 factory: partition@40000 {
80 reg = <0x40000 0x10000>;
85 compatible = "denx,uimage";
87 reg = <0x50000 0x7b0000>;
95 groups = "i2c", "uartf";
101 pinctrl-names = "default";
102 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
104 nvmem-cells = <&macaddr_factory_28>;
105 nvmem-cell-names = "mac-address";
109 mediatek,fixed-link = <1000 1 1 1>;
116 phy0: ethernet-phy@0 {
121 phy1: ethernet-phy@1 {
126 phy2: ethernet-phy@2 {
131 phy3: ethernet-phy@3 {
136 phy4: ethernet-phy@4 {
141 phy1f: ethernet-phy@1f {
149 mediatek,ephy-base = /bits/ 8 <12>;
153 ralink,mtd-eeprom = <&factory 0x0>;
157 compatible = "nvmem-cells";
158 #address-cells = <1>;
161 macaddr_factory_28: macaddr@28 {