3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
7 compatible = "buffalo,wsr-1166dhp", "mediatek,mt7621-soc";
8 model = "Buffalo WSR-1166DHP";
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
18 compatible = "gpio-leds";
21 label = "green:internet";
22 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
26 label = "green:router";
27 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
31 label = "orange:router";
32 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
36 label = "orange:internet";
37 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
41 label = "orange:wifi";
42 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
46 label = "green:power";
47 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
51 label = "orange:diag";
52 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
57 gpios = <&gpio 48 GPIO_ACTIVE_LOW>;
62 compatible = "gpio-keys";
66 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
67 linux,code = <KEY_POWER>;
72 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
73 linux,code = <KEY_RESTART>;
78 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
79 linux,code = <KEY_WPS_BUTTON>;
84 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
86 linux,input-type = <EV_SW>;
91 gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
93 linux,input-type = <EV_SW>;
98 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
100 linux,input-type = <EV_SW>;
105 compatible = "gpio-poweroff";
106 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
114 compatible = "jedec,spi-nor";
116 spi-max-frequency = <10000000>;
119 compatible = "fixed-partitions";
120 #address-cells = <1>;
130 label = "u-boot-env";
131 reg = <0x30000 0x10000>;
135 factory: partition@40000 {
136 compatible = "nvmem-cells";
138 reg = <0x40000 0x10000>;
139 #address-cells = <1>;
143 eeprom_factory_0: eeprom@0 {
147 eeprom_factory_8000: eeprom@8000 {
148 reg = <0x8000 0x200>;
153 compatible = "openwrt,trx";
155 reg = <0x50000 0xf90000>;
159 label = "board_data";
160 reg = <0xfe0000 0x20000>;
169 phy-handle = <ðphy4>;
173 ethphy4: ethernet-phy@4 {
204 groups = "i2c", "uart2", "uart3", "sdhci";
215 reg = <0x0000 0 0 0 0>;
216 nvmem-cells = <&eeprom_factory_8000>;
217 nvmem-cell-names = "eeprom";
218 ieee80211-freq-limit = <5000000 6000000>;
224 reg = <0x0000 0 0 0 0>;
225 nvmem-cells = <&eeprom_factory_0>;
226 nvmem-cell-names = "eeprom";