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 nvmem-cells = <&eeprom_factory_8000>;
106 nvmem-cell-names = "eeprom";
107 ieee80211-freq-limit = <5000000 6000000>;
113 groups = "uart1", "wled_an", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt", "refclk", "gpio", "i2s";
122 compatible = "jedec,spi-nor";
124 spi-max-frequency = <40000000>;
127 compatible = "fixed-partitions";
128 #address-cells = <1>;
138 label = "u-boot-env";
139 reg = <0x30000 0x10000>;
143 factory: partition@40000 {
144 compatible = "nvmem-cells";
146 reg = <0x40000 0x10000>;
147 #address-cells = <1>;
151 eeprom_factory_0: eeprom@0 {
155 eeprom_factory_8000: eeprom@8000 {
156 reg = <0x8000 0x200>;
161 compatible = "brcm,trx";
162 brcm,trx-magic = <0x746f435c>;
164 reg = <0x50000 0x7c0000>;
169 reg = <0x810000 0x7c0000>;
174 reg = <0xfd0000 0x10000>;
179 label = "board_data";
180 reg = <0xfe0000 0x10000>;
190 nvmem-cells = <&eeprom_factory_0>;
191 nvmem-cell-names = "eeprom";