1 /* This file is released into the public domain */
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
8 #include "mt7620a.dtsi"
11 compatible = "netgear,ex3700", "ralink,mt7620a-soc";
12 model = "Netgear EX3700/EX3800";
15 led-boot = &led_power_green;
16 led-failsafe = &led_power_green;
17 led-running = &led_power_green;
18 led-upgrade = &led_power_green;
22 bootargs = "console=ttyS0,57600";
26 compatible = "gpio-leds";
28 led_power_green: power_g {
29 label = "ex3700:green:power";
30 gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
35 label = "ex3700:amber:power";
36 gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
37 default-state = "off";
41 label = "ex3700:green:router";
42 gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
46 label = "ex3700:red:router";
47 gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
51 label = "ex3700:green:device";
52 gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
56 label = "ex3700:red:device";
57 gpios = <&gpio2 21 GPIO_ACTIVE_LOW>;
61 label = "ex3700:green:wps";
62 gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
67 compatible = "gpio-keys-polled";
72 gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
73 linux,code = <KEY_RESTART>;
78 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
79 linux,code = <KEY_WPS_BUTTON>;
96 compatible = "jedec,spi-nor";
98 spi-max-frequency = <10000000>;
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
113 reg = <0x30000 0x10000>;
117 factory: partition@40000 {
119 reg = <0x40000 0x10000>;
125 reg = <0x50000 0x790000>;
129 label = "board_data";
130 reg = <0x7e0000 0x10000>;
136 reg = <0x7f0000 0x10000>;
149 reg = <0x0000 0 0 0 0 >;
150 mediatek,mtd-eeprom = <&factory 0x8000>;
151 ieee80211-freq-limit = <5000000 6000000>;
156 mtd-mac-address = <&factory 0x28>;
160 ralink,mtd-eeprom = <&factory 0x0>;
164 state_default: pinctrl0 {
166 ralink,group = "i2c", "rgmii2", "spi refclk";
167 ralink,function = "gpio";