1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.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 = "wsr-2533dhpl:green:internet";
26 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
30 label = "wsr-2533dhpl:green:router";
31 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
35 label = "wsr-2533dhpl:amber:router";
36 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
40 label = "wsr-2533dhpl:amber:internet";
41 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
45 label = "wsr-2533dhpl:amber:wireless";
46 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
50 label = "wsr-2533dhpl:green:power";
51 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
55 label = "wsr-2533dhpl:amber:diag";
56 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
60 label = "wsr-2533dhpl:green:wireless";
61 gpios = <&gpio 48 GPIO_ACTIVE_LOW>;
66 compatible = "gpio-keys";
70 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
71 linux,code = <KEY_RESTART>;
76 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_WPS_BUTTON>;
82 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
84 linux,input-type = <EV_SW>;
89 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
91 linux,input-type = <EV_SW>;
96 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
98 linux,input-type = <EV_SW>;
103 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
104 linux,code = <KEY_POWER>;
113 compatible = "jedec,spi-nor";
115 spi-max-frequency = <40000000>;
118 compatible = "fixed-partitions";
119 #address-cells = <1>;
129 label = "u-boot-env";
130 reg = <0x30000 0x10000>;
134 factory: partition@40000 {
136 reg = <0x40000 0x10000>;
141 compatible = "openwrt,trx";
143 reg = <0x50000 0x7c0000>;
148 reg = <0x810000 0x7c0000>;
154 reg = <0xfd0000 0x010000>;
159 label = "board_data";
160 reg = <0xfe0000 0x20000>;
168 mtd-mac-address = <&factory 0x4>;
169 mtd-mac-address-increment = <(-1)>;
207 compatible = "mediatek,mt76";
208 reg = <0x0000 0 0 0 0>;
209 mediatek,mtd-eeprom = <&factory 0x0000>;
210 ieee80211-freq-limit = <2400000 2500000>;
216 compatible = "mediatek,mt76";
217 reg = <0x0000 0 0 0 0>;
218 mediatek,mtd-eeprom = <&factory 0x8000>;
219 ieee80211-freq-limit = <5000000 6000000>;
225 groups = "i2c", "uart2", "uart3", "wdt", "sdhci";