1 #include "mt7628an.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
7 compatible = "buffalo,wcr-1166ds", "mediatek,mt7628an-soc";
8 model = "Buffalo WCR-1166DS";
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
18 compatible = "gpio-keys";
22 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_WPS_BUTTON>;
28 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
30 linux,input-type = <EV_SW>;
35 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RESTART>;
41 compatible = "gpio-leds";
44 label = "orange:router";
45 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
49 label = "green:router";
50 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
54 label = "orange:internet";
55 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
59 label = "green:internet";
60 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
64 label = "orange:wireless";
65 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
69 label = "green:wireless";
70 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
74 label = "orange:diag";
75 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
79 label = "green:power";
80 gpios = <&gpio 44 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>;
112 groups = "uart1", "wled_an", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt", "refclk", "gpio", "i2s";
121 compatible = "jedec,spi-nor";
123 spi-max-frequency = <10000000>;
126 compatible = "fixed-partitions";
127 #address-cells = <1>;
137 label = "u-boot-env";
138 reg = <0x30000 0x10000>;
142 factory: partition@40000 {
144 reg = <0x40000 0x10000>;
149 compatible = "openwrt,trx";
151 reg = <0x50000 0x7c0000>;
156 reg = <0x810000 0x7c0000>;
161 reg = <0xfd0000 0x10000>;
166 label = "board_data";
167 reg = <0xfe0000 0x10000>;