3 #include "mt7628an.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "buffalo,wcr-1166ds", "mediatek,mt7628an-soc";
10 model = "Buffalo WCR-1166DS";
13 led-status = &led_power;
17 compatible = "gpio-keys-polled";
22 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_WPS_BUTTON>;
28 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
30 linux,input-type = <EV_SW>;
35 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RESTART>;
41 compatible = "gpio-leds";
44 label = "wcr-1166ds:orange:router";
45 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
49 label = "wcr-1166ds:green:router";
50 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
54 label = "wcr-1166ds:orange:internet";
55 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
59 label = "wcr-1166ds:green:internet";
60 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
64 label = "wcr-1166ds:orange:wireless";
65 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
69 label = "wcr-1166ds:green:wireless";
70 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
74 label = "wcr-1166ds:orange:diag";
75 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
79 label = "wcr-1166ds:green:power";
80 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
90 mediatek,portmap = <0x2f>;
91 mediatek,portdisable = <0x27>;
104 reg = <0x0000 0 0 0 0>;
105 mediatek,mtd-eeprom = <&factory 0x8000>;
106 ieee80211-freq-limit = <5000000 6000000>;
111 state_default: pinctrl0 {
113 ralink,group = "uart1", "wled_an", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt", "refclk", "gpio", "i2s";
114 ralink,function = "gpio";
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 0x7c0000>;
158 reg = <0x810000 0x7c0000>;
163 reg = <0xfd0000 0x10000>;
168 label = "board_data";
169 reg = <0xfe0000 0x10000>;