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-polled";
25 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_WPS_BUTTON>;
31 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
33 linux,input-type = <EV_SW>;
38 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_RESTART>;
44 compatible = "gpio-leds";
47 label = "wcr-1166ds:orange:router";
48 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
52 label = "wcr-1166ds:green:router";
53 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
57 label = "wcr-1166ds:orange:internet";
58 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
62 label = "wcr-1166ds:green:internet";
63 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
67 label = "wcr-1166ds:orange:wireless";
68 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
72 label = "wcr-1166ds:green:wireless";
73 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
77 label = "wcr-1166ds:orange:diag";
78 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
82 label = "wcr-1166ds:green:power";
83 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
93 mediatek,portmap = <0x2f>;
94 mediatek,portdisable = <0x27>;
107 reg = <0x0000 0 0 0 0>;
108 mediatek,mtd-eeprom = <&factory 0x8000>;
109 ieee80211-freq-limit = <5000000 6000000>;
114 state_default: pinctrl0 {
116 ralink,group = "uart1", "wled_an", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt", "refclk", "gpio", "i2s";
117 ralink,function = "gpio";
126 compatible = "jedec,spi-nor";
128 spi-max-frequency = <10000000>;
131 compatible = "fixed-partitions";
132 #address-cells = <1>;
142 label = "u-boot-env";
143 reg = <0x30000 0x10000>;
147 factory: partition@40000 {
149 reg = <0x40000 0x10000>;
154 compatible = "openwrt,trx";
156 reg = <0x50000 0x7c0000>;
161 reg = <0x810000 0x7c0000>;
166 reg = <0xfd0000 0x10000>;
171 label = "board_data";
172 reg = <0xfe0000 0x10000>;