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";
75 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
76 linux,code = <KEY_POWER>;
81 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_RESTART>;
87 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
88 linux,code = <KEY_WPS_BUTTON>;
93 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
95 linux,input-type = <EV_SW>;
100 gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
101 linux,code = <BTN_0>;
102 linux,input-type = <EV_SW>;
107 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
108 linux,code = <BTN_0>;
109 linux,input-type = <EV_SW>;
114 compatible = "gpio-poweroff";
115 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
123 compatible = "jedec,spi-nor";
125 spi-max-frequency = <10000000>;
126 m25p,chunked-io = <32>;
129 compatible = "fixed-partitions";
130 #address-cells = <1>;
140 label = "u-boot-env";
141 reg = <0x30000 0x10000>;
145 factory: partition@40000 {
147 reg = <0x40000 0x10000>;
153 reg = <0x50000 0xf90000>;
157 label = "board_data";
158 reg = <0xfe0000 0x20000>;
165 state_default: pinctrl0 {
167 ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
168 ralink,function = "gpio";
179 reg = <0x0000 0 0 0 0>;
180 mediatek,mtd-eeprom = <&factory 0x8000>;
181 ieee80211-freq-limit = <5000000 6000000>;
187 reg = <0x0000 0 0 0 0>;
188 mediatek,mtd-eeprom = <&factory 0x0000>;