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";
14 led-failsafe = &led_wps;
15 led-running = &led_wps;
16 led-upgrade = &led_wps;
20 compatible = "gpio-leds";
23 label = "wrh-300cr:green:wps";
24 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
28 label = "wrh-300cr:green:ethernet";
29 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
33 label = "wrh-300cr:green:wlan";
34 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
39 compatible = "gpio-keys-polled";
44 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_RESTART>;
50 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_WPS_BUTTON>;
72 compatible = "jedec,spi-nor";
74 spi-max-frequency = <10000000>;
77 compatible = "fixed-partitions";
89 reg = <0x30000 0x10000>;
92 factory: partition@40000 {
94 reg = <0x40000 0x10000>;
100 reg = <0x50000 0x1c0000>;
105 compatible = "denx,uimage";
107 reg = <0x210000 0xdf0000>;
122 mtd-mac-address = <&factory 0x2e>;
123 mediatek,portmap = "llllw";
127 ralink,mtd-eeprom = <&factory 0>;
131 state_default: pinctrl0 {
133 ralink,group = "i2c", "ephy", "wled";
134 ralink,function = "gpio";