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-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 compatible = "gpio-keys";
24 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_WPS_BUTTON>;
30 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
32 linux,input-type = <EV_SW>;
37 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_RESTART>;
43 compatible = "gpio-leds";
46 label = "wcr-1166ds:orange:router";
47 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
51 label = "wcr-1166ds:green:router";
52 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
56 label = "wcr-1166ds:orange:internet";
57 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
61 label = "wcr-1166ds:green:internet";
62 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
66 label = "wcr-1166ds:orange:wireless";
67 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
71 label = "wcr-1166ds:green:wireless";
72 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
76 label = "wcr-1166ds:orange:diag";
77 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
81 label = "wcr-1166ds:green:power";
82 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
92 mediatek,portmap = <0x2f>;
93 mediatek,portdisable = <0x27>;
106 reg = <0x0000 0 0 0 0>;
107 mediatek,mtd-eeprom = <&factory 0x8000>;
108 ieee80211-freq-limit = <5000000 6000000>;
113 state_default: pinctrl0 {
115 ralink,group = "uart1", "wled_an", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt", "refclk", "gpio", "i2s";
116 ralink,function = "gpio";
125 compatible = "jedec,spi-nor";
127 spi-max-frequency = <10000000>;
130 compatible = "fixed-partitions";
131 #address-cells = <1>;
141 label = "u-boot-env";
142 reg = <0x30000 0x10000>;
146 factory: partition@40000 {
148 reg = <0x40000 0x10000>;
153 compatible = "openwrt,trx";
155 reg = <0x50000 0x7c0000>;
160 reg = <0x810000 0x7c0000>;
165 reg = <0xfd0000 0x10000>;
170 label = "board_data";
171 reg = <0xfe0000 0x10000>;