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";
72 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
73 linux,code = <KEY_POWER>;
78 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
79 linux,code = <KEY_RESTART>;
84 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
85 linux,code = <KEY_WPS_BUTTON>;
90 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
92 linux,input-type = <EV_SW>;
97 gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
99 linux,input-type = <EV_SW>;
104 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
105 linux,code = <BTN_0>;
106 linux,input-type = <EV_SW>;
111 compatible = "gpio-poweroff";
112 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
120 compatible = "jedec,spi-nor";
122 spi-max-frequency = <10000000>;
125 compatible = "fixed-partitions";
126 #address-cells = <1>;
136 label = "u-boot-env";
137 reg = <0x30000 0x10000>;
141 factory: partition@40000 {
143 reg = <0x40000 0x10000>;
148 compatible = "openwrt,trx";
150 reg = <0x50000 0xf90000>;
154 label = "board_data";
155 reg = <0xfe0000 0x20000>;
162 state_default: pinctrl0 {
164 ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
165 ralink,function = "gpio";
176 reg = <0x0000 0 0 0 0>;
177 mediatek,mtd-eeprom = <&factory 0x8000>;
178 ieee80211-freq-limit = <5000000 6000000>;
184 reg = <0x0000 0 0 0 0>;
185 mediatek,mtd-eeprom = <&factory 0x0000>;