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 led-status = &led_wps_green;
17 compatible = "cfi-flash";
18 reg = <0x1f000000 0x400000>;
32 reg = <0x30000 0x10000>;
36 factory: partition@40000 {
38 reg = <0x40000 0x10000>;
44 reg = <0x50000 0x3b0000>;
49 compatible = "gpio-keys-polled";
56 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_RESTART>;
62 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
63 linux,code = <KEY_WPS_BUTTON>;
68 compatible = "gpio-leds";
71 label = "tew-638apb-v2:orange:wps";
72 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
76 label = "tew-638apb-v2:green:wps";
77 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
83 state_default: pinctrl0 {
85 ralink,group = "uartf";
86 ralink,function = "gpio";
92 mtd-mac-address = <&factory 0x4>;
96 mediatek,portmap = <0x2f>;
100 ralink,mtd-eeprom = <&factory 0>;