5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "trendnet,tew-638apb-v2", "ralink,rt3050-soc";
10 model = "TRENDnet TEW-638APB v2";
13 compatible = "cfi-flash";
14 reg = <0x1f000000 0x400000>;
28 reg = <0x30000 0x10000>;
32 factory: partition@40000 {
34 reg = <0x40000 0x10000>;
40 reg = <0x50000 0x3b0000>;
45 compatible = "gpio-keys-polled";
52 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART>;
58 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_WPS_BUTTON>;
64 compatible = "gpio-leds";
67 label = "tew-638apb-v2:orange:wps";
68 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
72 label = "tew-638apb-v2:green:wps";
73 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
79 state_default: pinctrl0 {
81 ralink,group = "uartf";
82 ralink,function = "gpio";
88 mtd-mac-address = <&factory 0x4>;
92 mediatek,portmap = <0x2f>;
96 ralink,mtd-eeprom = <&factory 0>;