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>;
50 reg = <0x50000 0x3c8000>;
56 compatible = "gpio-leds";
59 label = "w150m:blue:3grouter";
60 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
64 label = "w150m:blue:ap";
65 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
69 label = "w150m:blue:wisprouter";
70 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
74 label = "w150m:blue:wirelessrouter";
75 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
79 label = "w150m:blue:3g";
80 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
84 label = "w150m:blue:wpsreset";
85 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
90 compatible = "gpio-keys-polled";
95 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_RESTART>;
101 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
102 linux,code = <BTN_0>;
108 state_default: pinctrl0 {
110 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
111 ralink,function = "gpio";
117 mtd-mac-address = <&factory 0x4>;
121 mediatek,portmap = <0x2f>;
125 ralink,mtd-eeprom = <&factory 0>;