1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "buffalo,wsr-2533dhpl", "mediatek,mt7621-soc";
11 model = "Buffalo WSR-2533DHPL";
14 led-boot = &led_power;
15 led-failsafe = &led_diag;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = &gmac0;
22 compatible = "gpio-leds";
25 label = "green:internet";
26 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
30 label = "green:router";
31 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
35 label = "amber:router";
36 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
40 label = "amber:internet";
41 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
45 label = "amber:wireless";
46 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
50 function = LED_FUNCTION_POWER;
51 color = <LED_COLOR_ID_GREEN>;
52 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
57 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
61 label = "green:wireless";
62 gpios = <&gpio 48 GPIO_ACTIVE_LOW>;
67 compatible = "gpio-keys";
71 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
72 linux,code = <KEY_RESTART>;
77 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
78 linux,code = <KEY_WPS_BUTTON>;
83 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
85 linux,input-type = <EV_SW>;
90 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
92 linux,input-type = <EV_SW>;
97 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
99 linux,input-type = <EV_SW>;
104 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
105 linux,code = <KEY_POWER>;
114 compatible = "jedec,spi-nor";
116 spi-max-frequency = <40000000>;
119 compatible = "fixed-partitions";
120 #address-cells = <1>;
130 label = "u-boot-env";
131 reg = <0x30000 0x10000>;
137 reg = <0x40000 0x10000>;
141 compatible = "fixed-layout";
142 #address-cells = <1>;
145 eeprom_factory_0: eeprom@0 {
149 eeprom_factory_8000: eeprom@8000 {
150 reg = <0x8000 0x4da8>;
153 macaddr_factory_4: macaddr@4 {
154 compatible = "mac-base";
156 #nvmem-cell-cells = <1>;
162 compatible = "brcm,trx";
164 reg = <0x50000 0x7c0000>;
169 reg = <0x810000 0x7c0000>;
175 reg = <0xfd0000 0x010000>;
180 label = "board_data";
181 reg = <0xfe0000 0x20000>;
189 nvmem-cells = <&macaddr_factory_4 (-1)>;
190 nvmem-cell-names = "mac-address";
196 phy-handle = <ðphy0>;
198 nvmem-cells = <&macaddr_factory_4 (-1)>;
199 nvmem-cell-names = "mac-address";
203 /delete-property/ interrupts;
236 compatible = "mediatek,mt76";
237 reg = <0x0000 0 0 0 0>;
238 nvmem-cells = <&eeprom_factory_0>;
239 nvmem-cell-names = "eeprom";
240 ieee80211-freq-limit = <2400000 2500000>;
246 compatible = "mediatek,mt76";
247 reg = <0x0000 0 0 0 0>;
248 nvmem-cells = <&eeprom_factory_8000>;
249 nvmem-cell-names = "eeprom";
250 ieee80211-freq-limit = <5000000 6000000>;
256 groups = "i2c", "uart2", "uart3", "wdt", "sdhci";