5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "buffalo,wsr-1166dhp", "mediatek,mt7621-soc";
10 model = "Buffalo WSR-1166DHP";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 bootargs = "console=ttyS0,57600";
24 compatible = "gpio-leds";
27 label = "wsr-1166:green:internet";
28 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
32 label = "wsr-1166:green:router";
33 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
37 label = "wsr-1166:orange:router";
38 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
42 label = "wsr-1166:orange:internet";
43 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
47 label = "wsr-1166:orange:wifi";
48 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
52 label = "wsr-1166:green:power";
53 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
57 label = "wsr-1166:orange:diag";
58 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
62 label = "wsr-1166:green:wifi";
63 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
68 compatible = "gpio-keys-polled";
73 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
74 linux,code = <KEY_POWER>;
79 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_RESTART>;
85 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_WPS_BUTTON>;
91 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
93 linux,input-type = <EV_SW>;
98 gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
100 linux,input-type = <EV_SW>;
105 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
106 linux,code = <BTN_0>;
107 linux,input-type = <EV_SW>;
112 compatible = "gpio-poweroff";
113 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
121 compatible = "jedec,spi-nor";
123 spi-max-frequency = <10000000>;
126 compatible = "fixed-partitions";
127 #address-cells = <1>;
137 label = "u-boot-env";
138 reg = <0x30000 0x10000>;
142 factory: partition@40000 {
144 reg = <0x40000 0x10000>;
149 compatible = "openwrt,trx";
151 reg = <0x50000 0xf90000>;
155 label = "board_data";
156 reg = <0xfe0000 0x20000>;
163 state_default: pinctrl0 {
165 ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
166 ralink,function = "gpio";
177 reg = <0x0000 0 0 0 0>;
178 mediatek,mtd-eeprom = <&factory 0x8000>;
179 ieee80211-freq-limit = <5000000 6000000>;
185 reg = <0x0000 0 0 0 0>;
186 mediatek,mtd-eeprom = <&factory 0x0000>;