1 #include "mt7628an.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "buffalo,wcr-1166ds", "mediatek,mt7628an-soc";
9 model = "Buffalo WCR-1166DS";
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
19 compatible = "gpio-keys";
23 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_WPS_BUTTON>;
29 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
31 linux,input-type = <EV_SW>;
36 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
42 compatible = "gpio-leds";
45 label = "orange:router";
46 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
50 label = "green:router";
51 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
55 label = "orange:internet";
56 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
60 label = "green:internet";
61 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
65 label = "orange:wireless";
66 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
70 label = "green:wireless";
71 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
75 label = "orange:diag";
76 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
80 function = LED_FUNCTION_POWER;
81 color = <LED_COLOR_ID_GREEN>;
82 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
92 mediatek,portmap = <0x2f>;
93 mediatek,portdisable = <0x27>;
106 reg = <0x0000 0 0 0 0>;
107 nvmem-cells = <&eeprom_factory_8000>;
108 nvmem-cell-names = "eeprom";
109 ieee80211-freq-limit = <5000000 6000000>;
115 groups = "uart1", "wled_an", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt", "refclk", "gpio", "i2s";
124 compatible = "jedec,spi-nor";
126 spi-max-frequency = <40000000>;
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>;
151 compatible = "fixed-layout";
152 #address-cells = <1>;
155 eeprom_factory_0: eeprom@0 {
159 eeprom_factory_8000: eeprom@8000 {
160 reg = <0x8000 0x200>;
166 compatible = "brcm,trx";
167 brcm,trx-magic = <0x746f435c>;
169 reg = <0x50000 0x7c0000>;
174 reg = <0x810000 0x7c0000>;
179 reg = <0xfd0000 0x10000>;
184 label = "board_data";
185 reg = <0xfe0000 0x10000>;
195 nvmem-cells = <&eeprom_factory_0>;
196 nvmem-cell-names = "eeprom";