2 * Device Tree file for the Netgear EX2700
4 * Copyright (C) 2016 Joseph C. Lehner <joseph.c.lehner@gmail.com>
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 = "netgear,ex2700", "ralink,mt7620a-soc";
20 model = "Netgear EX2700";
23 led-boot = &led_power_green;
24 led-failsafe = &led_power_green;
25 led-running = &led_power_green;
26 led-upgrade = &led_power_green;
30 bootargs = "console=ttyS0,57600";
34 compatible = "gpio-leds";
36 led_power_green: power_g {
37 label = "ex2700:green:power";
38 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
43 label = "ex2700:red:power";
44 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
48 label = "ex2700:green:device";
49 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
53 label = "ex2700:red:device";
54 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
58 label = "ex2700:green:router";
59 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
63 label = "ex2700:red:router";
64 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
68 label = "ex2700:green:wps";
69 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
74 compatible = "gpio-keys-polled";
79 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_RESTART>;
85 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_WPS_BUTTON>;
103 compatible = "jedec,spi-nor";
105 spi-max-frequency = <10000000>;
108 compatible = "fixed-partitions";
109 #address-cells = <1>;
119 label = "u-boot-env";
120 reg = <0x30000 0x10000>;
125 compatible = "denx,uimage";
127 reg = <0x40000 0x3b0000>;
130 art: partition@3f0000 {
132 reg = <0x3f0000 0x10000>;
140 mtd-mac-address = <&art 0x0>;
144 mtd-mac-address = <&art 0x6>;
145 ralink,mtd-eeprom = <&art 0x1000>;
149 state_default: pinctrl0 {
151 ralink,group = "i2c", "uartf", "spi refclk";
152 ralink,function = "gpio";