1 #include "mt7620n.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "elecom,wrh-300cr", "ralink,mt7620n-soc";
9 model = "ELECOM WRH-300CR";
13 led-failsafe = &led_wps;
14 led-running = &led_wps;
15 led-upgrade = &led_wps;
19 compatible = "gpio-leds";
22 function = LED_FUNCTION_WPS;
23 color = <LED_COLOR_ID_GREEN>;
24 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
28 label = "green:ethernet";
29 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
33 function = LED_FUNCTION_WLAN;
34 color = <LED_COLOR_ID_GREEN>;
35 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
40 compatible = "gpio-keys";
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>;
68 compatible = "jedec,spi-nor";
70 spi-max-frequency = <10000000>;
73 compatible = "fixed-partitions";
85 reg = <0x30000 0x10000>;
88 factory: partition@40000 {
90 reg = <0x40000 0x10000>;
94 compatible = "fixed-layout";
98 eeprom_factory_0: eeprom@0 {
102 macaddr_factory_2e: macaddr@2e {
110 reg = <0x50000 0x1c0000>;
115 compatible = "denx,uimage";
117 reg = <0x210000 0xdf0000>;
132 nvmem-cells = <&macaddr_factory_2e>;
133 nvmem-cell-names = "mac-address";
135 mediatek,portmap = "llllw";
139 nvmem-cells = <&eeprom_factory_0>;
140 nvmem-cell-names = "eeprom";
145 groups = "i2c", "ephy", "wled";