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 compatible = "gpio-keys-polled";
20 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
21 linux,code = <KEY_WPS_BUTTON>;
26 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
28 linux,input-type = <EV_SW>;
33 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_RESTART>;
39 compatible = "gpio-leds";
42 label = "wcr-1166ds:orange:router";
43 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
47 label = "wcr-1166ds:green:router";
48 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
52 label = "wcr-1166ds:orange:internet";
53 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
57 label = "wcr-1166ds:green:internet";
58 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
62 label = "wcr-1166ds:orange:wireless";
63 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
67 label = "wcr-1166ds:green:wireless";
68 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
72 label = "wcr-1166ds:orange:diag";
73 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
77 label = "wcr-1166ds:green:power";
78 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
88 mediatek,portmap = <0x2f>;
89 mediatek,portdisable = <0x27>;
100 reg = <0x0000 0 0 0 0>;
102 mediatek,mtd-eeprom = <&factory 0x8000>;
103 ieee80211-freq-limit = <5000000 6000000>;
109 state_default: pinctrl0 {
111 ralink,group = "uart1", "wled_an", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt", "refclk", "gpio", "i2s";
112 ralink,function = "gpio";
121 #address-cells = <1>;
123 compatible = "jedec,spi-nor";
125 spi-max-frequency = <10000000>;
126 m25p,chunked-io = <32>;
135 label = "u-boot-env";
136 reg = <0x30000 0x10000>;
140 factory: partition@40000 {
142 reg = <0x40000 0x10000>;
148 reg = <0x50000 0x7c0000>;
153 reg = <0x810000 0x7c0000>;
158 reg = <0xfd0000 0x10000>;
163 label = "board_data";
164 reg = <0xfe0000 0x10000>;