5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "tenda,w150m", "ralink,rt3050-soc";
10 model = "Tenda W150M";
14 led-failsafe = &led_ap;
15 led-running = &led_ap;
16 led-upgrade = &led_ap;
20 compatible = "cfi-flash";
21 reg = <0x1f000000 0x800000>;
26 compatible = "fixed-partitions";
38 reg = <0x30000 0x10000>;
42 factory: partition@40000 {
44 reg = <0x40000 0x10000>;
49 compatible = "denx,uimage";
51 reg = <0x50000 0x3b0000>;
57 compatible = "gpio-leds";
60 label = "w150m:blue:3grouter";
61 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
65 label = "w150m:blue:ap";
66 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
70 label = "w150m:blue:wisprouter";
71 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
75 label = "w150m:blue:wirelessrouter";
76 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
80 label = "w150m:blue:3g";
81 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
85 label = "w150m:blue:wpsreset";
86 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
91 compatible = "gpio-keys-polled";
96 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
97 linux,code = <KEY_RESTART>;
102 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
103 linux,code = <BTN_0>;
109 state_default: pinctrl0 {
111 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
112 ralink,function = "gpio";
118 mtd-mac-address = <&factory 0x4>;
122 mediatek,portmap = <0x2f>;
126 ralink,mtd-eeprom = <&factory 0>;