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 compatible = "gpio-leds";
16 label = "wrh-300cr:green:wps";
17 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
21 label = "wrh-300cr:green:ethernet";
22 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
26 label = "wrh-300cr:green:wlan";
27 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
32 compatible = "gpio-keys-polled";
39 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RESTART>;
45 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_WPS_BUTTON>;
69 compatible = "jedec,spi-nor";
71 spi-max-frequency = <10000000>;
81 reg = <0x30000 0x10000>;
84 factory: partition@40000 {
86 reg = <0x40000 0x10000>;
92 reg = <0x50000 0x1c0000>;
98 reg = <0x210000 0xdf0000>;
112 mtd-mac-address = <&factory 0x2e>;
113 mediatek,portmap = "llllw";
117 ralink,mtd-eeprom = <&factory 0>;
121 state_default: pinctrl0 {
123 ralink,group = "i2c", "ephy", "wled";
124 ralink,function = "gpio";