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 {
86 compatible = "nvmem-cells";
88 reg = <0x40000 0x10000>;
93 eeprom_factory_0: eeprom@0 {
97 macaddr_factory_2e: macaddr@2e {
104 reg = <0x50000 0x1c0000>;
109 compatible = "denx,uimage";
111 reg = <0x210000 0xdf0000>;
126 nvmem-cells = <&macaddr_factory_2e>;
127 nvmem-cell-names = "mac-address";
129 mediatek,portmap = "llllw";
133 nvmem-cells = <&eeprom_factory_0>;
134 nvmem-cell-names = "eeprom";
139 groups = "i2c", "ephy", "wled";