1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/leds/common.h>
11 model = "Buffalo WSR-2533DHP2";
12 compatible = "buffalo,wsr-2533dhp2", "mediatek,mt7622";
16 led-boot = &power_green;
17 led-failsafe = &power_amber;
18 led-running = &power_green;
19 led-upgrade = &power_green;
20 label-mac-device = &gmac0;
24 bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n8 swiotlb=512";
28 reg = <0 0x40000000 0 0x0F000000>;
32 compatible = "gpio-leds";
35 label = "amber:wireless";
36 gpios = <&pio 2 GPIO_ACTIVE_HIGH>;
37 color = <LED_COLOR_ID_AMBER>;
38 function = LED_FUNCTION_WLAN;
42 label = "amber:power";
43 gpios = <&pio 3 GPIO_ACTIVE_LOW>;
44 color = <LED_COLOR_ID_AMBER>;
45 function = LED_FUNCTION_POWER;
49 label = "green:power";
50 gpios = <&pio 4 GPIO_ACTIVE_LOW>;
51 color = <LED_COLOR_ID_GREEN>;
52 function = LED_FUNCTION_POWER;
56 label = "green:wireless";
57 gpios = <&pio 15 GPIO_ACTIVE_HIGH>;
58 color = <LED_COLOR_ID_GREEN>;
59 function = LED_FUNCTION_WLAN;
63 label = "green:internet";
64 gpios = <&pio 19 GPIO_ACTIVE_HIGH>;
65 color = <LED_COLOR_ID_GREEN>;
66 function = LED_FUNCTION_WAN;
70 label = "green:router";
71 gpios = <&pio 20 GPIO_ACTIVE_HIGH>;
72 color = <LED_COLOR_ID_GREEN>;
73 function = LED_FUNCTION_INDICATOR;
78 compatible = "gpio-keys";
82 gpios = <&pio 0 GPIO_ACTIVE_LOW>;
83 linux,code = <KEY_RESTART>;
86 /* GPIO 1 and 16 are a tri-state switch button with
91 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
93 linux,input-type = <EV_SW>;
98 gpios = <&pio 16 GPIO_ACTIVE_LOW>;
100 linux,input-type = <EV_SW>;
103 /* GPIO 18 is a switch button with AUTO / MANUAL. */
106 gpios = <&pio 18 GPIO_ACTIVE_LOW>;
107 linux,code = <BTN_2>;
108 linux,input-type = <EV_SW>;
113 gpios = <&pio 102 GPIO_ACTIVE_LOW>;
114 linux,code = <KEY_WPS_BUTTON>;
119 compatible = "mediatek,rtk-gsw";
120 mediatek,ethsys = <ðsys>;
121 mediatek,mdio = <&mdio>;
122 mediatek,reset-pin = <&pio 54 GPIO_ACTIVE_HIGH>;
127 proc-supply = <&mt6380_vcpu_reg>;
128 sram-supply = <&mt6380_vm_reg>;
132 proc-supply = <&mt6380_vcpu_reg>;
133 sram-supply = <&mt6380_vm_reg>;
137 pinctrl-names = "default";
138 pinctrl-0 = <&pcie0_pins>;
146 compatible = "mediatek,mt76";
147 reg = <0x0000 0 0 0 0>;
148 mediatek,mtd-eeprom = <&factory 0x5000>;
149 ieee80211-freq-limit = <5000000 6000000>;
157 groups = "mdc_mdio", "rgmii_via_gmac2";
161 /* Parallel nand is shared pin with eMMC */
162 parallel_nand_pins: parallel-nand-pins {
169 pins = "NCEB", "NWEB", "NREB",
170 "NDL4", "NDL5", "NDL6",
171 "NDL7", "NRB", "NCLE",
172 "NALE", "NDL0", "NDL1",
175 drive-strength = <8>;
180 pcie0_pins: pcie0-pins {
183 groups = "pcie0_pad_perst",
189 pmic_bus_pins: pmic-bus-pins {
196 uart0_pins: uart0-pins {
199 groups = "uart0_0_tx_rx" ;
203 watchdog_pins: watchdog-pins {
205 function = "watchdog";
216 pinctrl-names = "default";
217 pinctrl-0 = <ð_pins>;
221 compatible = "mediatek,eth-mac";
224 phy-connection-type = "2500base-x";
226 nvmem-cells = <&macaddr_factory_4 (-1)>;
227 nvmem-cell-names = "mac-address";
237 #address-cells = <1>;
243 pinctrl-names = "default";
244 pinctrl-0 = <¶llel_nand_pins>;
249 nand-ecc-mode = "hw";
252 compatible = "fixed-partitions";
253 #address-cells = <1>;
264 reg = <0x80000 0x40000>;
269 label = "Bootloader";
270 reg = <0xc0000 0x80000>;
276 reg = <0x140000 0x80000>;
279 factory: partition@1c0000 {
280 compatible = "nvmem-cells";
282 reg = <0x1c0000 0x40000>;
286 compatible = "fixed-layout";
287 #address-cells = <1>;
290 macaddr_factory_4: macaddr@4 {
291 compatible = "mac-base";
293 #nvmem-cell-cells = <1>;
299 compatible = "brcm,trx";
300 brcm,trx-magic = <0x32504844>;
302 reg = <0x200000 0x3a00000>;
307 reg = <0x3c00000 0x3a00000>;
312 reg = <0x7600000 0x200000>;
317 label = "board_data";
318 reg = <0x7800000 0x200000>;
330 pinctrl-names = "default";
331 pinctrl-0 = <&pmic_bus_pins>;
336 pinctrl-names = "default";
337 pinctrl-0 = <&uart0_pins>;
342 pinctrl-names = "default";
343 pinctrl-0 = <&watchdog_pins>;
350 mediatek,mtd-eeprom = <&factory 0x0>;