1 #include "mt7620n.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
7 compatible = "elecom,wrh-300cr", "ralink,mt7620n-soc";
8 model = "ELECOM WRH-300CR";
12 led-failsafe = &led_wps;
13 led-running = &led_wps;
14 led-upgrade = &led_wps;
18 compatible = "gpio-leds";
22 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
26 label = "green:ethernet";
27 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
32 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
37 compatible = "gpio-keys";
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>;
65 compatible = "jedec,spi-nor";
67 spi-max-frequency = <10000000>;
70 compatible = "fixed-partitions";
82 reg = <0x30000 0x10000>;
85 factory: partition@40000 {
87 reg = <0x40000 0x10000>;
91 compatible = "fixed-layout";
95 eeprom_factory_0: eeprom@0 {
99 macaddr_factory_2e: macaddr@2e {
107 reg = <0x50000 0x1c0000>;
112 compatible = "denx,uimage";
114 reg = <0x210000 0xdf0000>;
129 nvmem-cells = <&macaddr_factory_2e>;
130 nvmem-cell-names = "mac-address";
132 mediatek,portmap = "llllw";
136 nvmem-cells = <&eeprom_factory_0>;
137 nvmem-cell-names = "eeprom";
142 groups = "i2c", "ephy", "wled";