2 * Device Tree file for the Linksys E1700
4 * Copyright (C) 2014 Imre Kaloz <kaloz@openwrt.org>
6 * This file is licensed under the terms of the GNU General Public
7 * License version 2. This program is licensed "as is" without any
8 * warranty of any kind, whether express or implied.
13 #include "mt7620a.dtsi"
15 #include <dt-bindings/gpio/gpio.h>
16 #include <dt-bindings/input/input.h>
19 compatible = "linksys,e1700", "ralink,mt7620a-soc";
20 model = "Linksys E1700";
23 led-boot = &led_power;
24 led-failsafe = &led_power;
25 led-running = &led_power;
26 led-upgrade = &led_power;
30 compatible = "gpio-keys-polled";
35 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
36 linux,code = <KEY_RESTART>;
41 gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
42 linux,code = <KEY_WPS_BUTTON>;
47 compatible = "gpio-leds";
50 label = "e1700:green:power";
51 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
55 label = "e1700:green:wps";
56 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
65 compatible = "jedec,spi-nor";
67 spi-max-frequency = <10000000>;
70 compatible = "fixed-partitions";
82 reg = <0x30000 0x10000>;
86 factory: partition@40000 {
88 reg = <0x40000 0x10000>;
93 compatible = "denx,uimage";
95 reg = <0x50000 0x7b0000>;
102 state_default: pinctrl0 {
104 ralink,group = "i2c", "uartf";
105 ralink,function = "gpio";
112 mtd-mac-address = <&factory 0x28>;
113 pinctrl-names = "default";
114 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
118 mediatek,fixed-link = <1000 1 1 1>;
125 phy0: ethernet-phy@0 {
130 phy1: ethernet-phy@1 {
135 phy2: ethernet-phy@2 {
140 phy3: ethernet-phy@3 {
145 phy4: ethernet-phy@4 {
150 phy1f: ethernet-phy@1f {
158 mediatek,port4 = "gmac";
162 ralink,mtd-eeprom = <&factory 0>;