3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "tenda,w306r-v2", "ralink,rt3052-soc";
9 model = "Tenda W306R V2.0";
13 led-failsafe = &led_sys;
14 led-running = &led_sys;
15 led-upgrade = &led_sys;
19 compatible = "cfi-flash";
20 reg = <0x1f000000 0x800000>;
25 compatible = "fixed-partitions";
37 reg = <0x30000 0x10000>;
43 reg = <0x40000 0x10000>;
47 compatible = "fixed-layout";
51 eeprom_factory_0: eeprom@0 {
55 macaddr_factory_28: macaddr@28 {
62 compatible = "denx,uimage";
64 reg = <0x50000 0x3b0000>;
70 compatible = "gpio-leds";
74 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
78 function = LED_FUNCTION_WPS;
79 color = <LED_COLOR_ID_GREEN>;
80 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
85 compatible = "gpio-keys-polled";
90 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
91 linux,code = <KEY_RESTART>;
98 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
104 nvmem-cells = <&macaddr_factory_28>;
105 nvmem-cell-names = "mac-address";
109 mediatek,portmap = <0x3e>;
113 nvmem-cells = <&eeprom_factory_0>;
114 nvmem-cell-names = "eeprom";