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-status = &led_power;
17 device_type = "memory";
18 reg = <0x0 0x8000000>;
22 bootargs = "console=ttyS0,57600";
26 compatible = "gpio-leds";
29 label = "wsr-1166:green:internet";
30 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
34 label = "wsr-1166:green:router";
35 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
39 label = "wsr-1166:orange:router";
40 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
44 label = "wsr-1166:orange:internet";
45 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
49 label = "wsr-1166:orange:wifi";
50 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
54 label = "wsr-1166:green:power";
55 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
59 label = "wsr-1166:orange:diag";
60 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
64 label = "wsr-1166:green:wifi";
65 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
70 compatible = "gpio-keys-polled";
77 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
78 linux,code = <KEY_POWER>;
83 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
84 linux,code = <KEY_RESTART>;
89 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
90 linux,code = <KEY_WPS_BUTTON>;
95 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
97 linux,input-type = <EV_SW>;
102 gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
103 linux,code = <BTN_0>;
104 linux,input-type = <EV_SW>;
109 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
110 linux,code = <BTN_0>;
111 linux,input-type = <EV_SW>;
116 compatible = "gpio-poweroff";
117 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
125 #address-cells = <1>;
127 compatible = "jedec,spi-nor";
129 spi-max-frequency = <10000000>;
130 m25p,chunked-io = <32>;
139 label = "u-boot-env";
140 reg = <0x30000 0x10000>;
144 factory: partition@40000 {
146 reg = <0x40000 0x10000>;
152 reg = <0x50000 0xf90000>;
156 label = "board_data";
157 reg = <0xfe0000 0x20000>;
163 state_default: pinctrl0 {
165 ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
166 ralink,function = "gpio";
176 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>;
187 mediatek,mtd-eeprom = <&factory 0x0000>;