1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2016 Joseph C. Lehner <joseph.c.lehner@gmail.com>
6 #include "mt7620a.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/leds/common.h>
13 compatible = "netgear,ex2700", "ralink,mt7620a-soc";
14 model = "Netgear EX2700";
17 led-boot = &led_power_green;
18 led-failsafe = &led_power_green;
19 led-running = &led_power_green;
20 led-upgrade = &led_power_green;
24 compatible = "gpio-keys";
28 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
34 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_WPS_BUTTON>;
40 compatible = "gpio-leds";
42 led_power_green: power_g {
43 function = LED_FUNCTION_POWER;
44 color = <LED_COLOR_ID_GREEN>;
45 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
50 function = LED_FUNCTION_POWER;
51 color = <LED_COLOR_ID_RED>;
52 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
56 label = "green:device";
57 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
62 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
66 label = "green:router";
67 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
72 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
76 function = LED_FUNCTION_WPS;
77 color = <LED_COLOR_ID_GREEN>;
78 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
91 compatible = "jedec,spi-nor";
93 spi-max-frequency = <10000000>;
96 compatible = "fixed-partitions";
107 label = "u-boot-env";
108 reg = <0x30000 0x10000>;
113 compatible = "denx,uimage";
115 reg = <0x40000 0x3b0000>;
120 reg = <0x3f0000 0x10000>;
124 compatible = "fixed-layout";
125 #address-cells = <1>;
128 macaddr_art_0: macaddr@0 {
132 macaddr_art_6: macaddr@6 {
136 eeprom_art_1000: eeprom@1000 {
137 reg = <0x1000 0x200>;
146 nvmem-cells = <&macaddr_art_0>;
147 nvmem-cell-names = "mac-address";
151 nvmem-cells = <&eeprom_art_1000>, <&macaddr_art_6>;
152 nvmem-cell-names = "eeprom", "mac-address";
157 groups = "i2c", "uartf", "spi refclk";