3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "buffalo,wsr-1166dhp", "mediatek,mt7621-soc";
9 model = "Buffalo WSR-1166DHP";
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
19 compatible = "gpio-leds";
22 label = "green:internet";
23 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
27 label = "green:router";
28 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
32 label = "orange:router";
33 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
37 label = "orange:internet";
38 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
42 label = "orange:wifi";
43 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
47 function = LED_FUNCTION_POWER;
48 color = <LED_COLOR_ID_GREEN>;
49 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
53 label = "orange:diag";
54 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
59 gpios = <&gpio 48 GPIO_ACTIVE_LOW>;
64 compatible = "gpio-keys";
68 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_POWER>;
74 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
75 linux,code = <KEY_RESTART>;
80 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_WPS_BUTTON>;
86 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
88 linux,input-type = <EV_SW>;
93 gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
95 linux,input-type = <EV_SW>;
100 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
101 linux,code = <BTN_0>;
102 linux,input-type = <EV_SW>;
107 compatible = "gpio-poweroff";
108 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
116 compatible = "jedec,spi-nor";
118 spi-max-frequency = <10000000>;
121 compatible = "fixed-partitions";
122 #address-cells = <1>;
132 label = "u-boot-env";
133 reg = <0x30000 0x10000>;
139 reg = <0x40000 0x10000>;
143 compatible = "fixed-layout";
144 #address-cells = <1>;
147 eeprom_factory_0: eeprom@0 {
151 eeprom_factory_8000: eeprom@8000 {
152 reg = <0x8000 0x200>;
158 compatible = "openwrt,trx";
160 reg = <0x50000 0xf90000>;
164 label = "board_data";
165 reg = <0xfe0000 0x20000>;
174 phy-handle = <ðphy4>;
178 ethphy4: ethernet-phy@4 {
209 groups = "i2c", "uart2", "uart3", "sdhci";
220 reg = <0x0000 0 0 0 0>;
221 nvmem-cells = <&eeprom_factory_8000>;
222 nvmem-cell-names = "eeprom";
223 ieee80211-freq-limit = <5000000 6000000>;
229 reg = <0x0000 0 0 0 0>;
230 nvmem-cells = <&eeprom_factory_0>;
231 nvmem-cell-names = "eeprom";