3 #include "mt7620n.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "elecom,wrh-300cr", "ralink,mt7620n-soc";
10 model = "ELECOM WRH-300CR";
13 led-status = &led_wps;
17 compatible = "gpio-leds";
20 label = "wrh-300cr:green:wps";
21 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
25 label = "wrh-300cr:green:ethernet";
26 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
30 label = "wrh-300cr:green:wlan";
31 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
36 compatible = "gpio-keys-polled";
41 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RESTART>;
47 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_WPS_BUTTON>;
71 compatible = "jedec,spi-nor";
73 spi-max-frequency = <10000000>;
83 reg = <0x30000 0x10000>;
86 factory: partition@40000 {
88 reg = <0x40000 0x10000>;
94 reg = <0x50000 0x1c0000>;
100 reg = <0x210000 0xdf0000>;
114 mtd-mac-address = <&factory 0x2e>;
115 mediatek,portmap = "llllw";
119 ralink,mtd-eeprom = <&factory 0>;
123 state_default: pinctrl0 {
125 ralink,group = "i2c", "ephy", "wled";
126 ralink,function = "gpio";