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>
9 compatible = "buffalo,wsr-2533dhpl", "mediatek,mt7621-soc";
10 model = "Buffalo WSR-2533DHPL";
13 led-boot = &led_power;
14 led-failsafe = &led_diag;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 label-mac-device = &gmac0;
21 compatible = "gpio-leds";
24 label = "green:internet";
25 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
29 label = "green:router";
30 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
34 label = "amber:router";
35 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
39 label = "amber:internet";
40 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
44 label = "amber:wireless";
45 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
49 label = "green:power";
50 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
55 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
59 label = "green:wireless";
60 gpios = <&gpio 48 GPIO_ACTIVE_LOW>;
65 compatible = "gpio-keys";
69 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
70 linux,code = <KEY_RESTART>;
75 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
76 linux,code = <KEY_WPS_BUTTON>;
81 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
83 linux,input-type = <EV_SW>;
88 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
90 linux,input-type = <EV_SW>;
95 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
97 linux,input-type = <EV_SW>;
102 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
103 linux,code = <KEY_POWER>;
112 compatible = "jedec,spi-nor";
114 spi-max-frequency = <40000000>;
117 compatible = "fixed-partitions";
118 #address-cells = <1>;
128 label = "u-boot-env";
129 reg = <0x30000 0x10000>;
133 factory: partition@40000 {
134 compatible = "nvmem-cells";
136 reg = <0x40000 0x10000>;
137 #address-cells = <1>;
141 eeprom_factory_0: eeprom@0 {
145 eeprom_factory_8000: eeprom@8000 {
146 reg = <0x8000 0x4da8>;
149 macaddr_factory_4: macaddr@4 {
155 compatible = "openwrt,trx";
157 reg = <0x50000 0x7c0000>;
162 reg = <0x810000 0x7c0000>;
168 reg = <0xfd0000 0x010000>;
173 label = "board_data";
174 reg = <0xfe0000 0x20000>;
182 nvmem-cells = <&macaddr_factory_4>;
183 nvmem-cell-names = "mac-address";
184 mac-address-increment = <(-1)>;
190 phy-handle = <ðphy0>;
192 nvmem-cells = <&macaddr_factory_4>;
193 nvmem-cell-names = "mac-address";
194 mac-address-increment = <(-1)>;
198 ethphy0: ethernet-phy@0 {
233 compatible = "mediatek,mt76";
234 reg = <0x0000 0 0 0 0>;
235 nvmem-cells = <&eeprom_factory_0>;
236 nvmem-cell-names = "eeprom";
237 ieee80211-freq-limit = <2400000 2500000>;
243 compatible = "mediatek,mt76";
244 reg = <0x0000 0 0 0 0>;
245 nvmem-cells = <&eeprom_factory_8000>;
246 nvmem-cell-names = "eeprom";
247 ieee80211-freq-limit = <5000000 6000000>;
253 groups = "i2c", "uart2", "uart3", "wdt", "sdhci";