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-status = &led_power_green;
27 bootargs = "console=ttyS0,57600";
31 compatible = "gpio-leds";
33 led_power_green: power_g {
34 label = "ex2700:green:power";
35 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
40 label = "ex2700:red:power";
41 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
45 label = "ex2700:green:device";
46 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
50 label = "ex2700:red:device";
51 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
55 label = "ex2700:green:router";
56 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
60 label = "ex2700:red:router";
61 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
65 label = "ex2700:green:wps";
66 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
71 compatible = "gpio-keys-polled";
76 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_RESTART>;
82 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
83 linux,code = <KEY_WPS_BUTTON>;
100 compatible = "jedec,spi-nor";
102 spi-max-frequency = <10000000>;
105 compatible = "fixed-partitions";
106 #address-cells = <1>;
116 label = "u-boot-env";
117 reg = <0x30000 0x10000>;
123 reg = <0x40000 0x3b0000>;
126 art: partition@3f0000 {
128 reg = <0x3f0000 0x10000>;
136 mtd-mac-address = <&art 0x0>;
140 mtd-mac-address = <&art 0x6>;
141 ralink,mtd-eeprom = <&art 0x1000>;
145 state_default: pinctrl0 {
147 ralink,group = "i2c", "uartf", "spi refclk";
148 ralink,function = "gpio";