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;
23 bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n8 swiotlb=512";
27 reg = <0 0x40000000 0 0x0F000000>;
31 compatible = "gpio-leds";
34 label = "amber:wireless";
35 gpios = <&pio 2 GPIO_ACTIVE_HIGH>;
36 color = <LED_COLOR_ID_AMBER>;
37 function = LED_FUNCTION_WLAN;
41 label = "amber:power";
42 gpios = <&pio 3 GPIO_ACTIVE_LOW>;
43 color = <LED_COLOR_ID_AMBER>;
44 function = LED_FUNCTION_POWER;
48 label = "green:power";
49 gpios = <&pio 4 GPIO_ACTIVE_LOW>;
50 color = <LED_COLOR_ID_GREEN>;
51 function = LED_FUNCTION_POWER;
55 label = "green:wireless";
56 gpios = <&pio 15 GPIO_ACTIVE_HIGH>;
57 color = <LED_COLOR_ID_GREEN>;
58 function = LED_FUNCTION_WLAN;
62 label = "green:internet";
63 gpios = <&pio 19 GPIO_ACTIVE_HIGH>;
64 color = <LED_COLOR_ID_GREEN>;
65 function = LED_FUNCTION_WAN;
69 label = "green:router";
70 gpios = <&pio 20 GPIO_ACTIVE_HIGH>;
71 color = <LED_COLOR_ID_GREEN>;
72 function = LED_FUNCTION_INDICATOR;
77 compatible = "gpio-keys";
81 gpios = <&pio 0 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_RESTART>;
85 /* GPIO 1 and 16 are a tri-state switch button with
90 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
92 linux,input-type = <EV_SW>;
97 gpios = <&pio 16 GPIO_ACTIVE_LOW>;
99 linux,input-type = <EV_SW>;
102 /* GPIO 18 is a switch button with AUTO / MANUAL. */
105 gpios = <&pio 18 GPIO_ACTIVE_LOW>;
106 linux,code = <BTN_2>;
107 linux,input-type = <EV_SW>;
112 gpios = <&pio 102 GPIO_ACTIVE_LOW>;
113 linux,code = <KEY_WPS_BUTTON>;
118 compatible = "mediatek,rtk-gsw";
119 mediatek,ethsys = <ðsys>;
120 mediatek,mdio = <&mdio>;
121 mediatek,reset-pin = <&pio 54 GPIO_ACTIVE_HIGH>;
126 proc-supply = <&mt6380_vcpu_reg>;
127 sram-supply = <&mt6380_vm_reg>;
131 proc-supply = <&mt6380_vcpu_reg>;
132 sram-supply = <&mt6380_vm_reg>;
136 pinctrl-names = "default";
137 pinctrl-0 = <&pcie0_pins>;
145 compatible = "mediatek,mt76";
146 reg = <0x0000 0 0 0 0>;
147 mediatek,mtd-eeprom = <&factory 0x5000>;
148 ieee80211-freq-limit = <5000000 6000000>;
156 groups = "mdc_mdio", "rgmii_via_gmac2";
160 /* Parallel nand is shared pin with eMMC */
161 parallel_nand_pins: parallel-nand-pins {
168 pins = "NCEB", "NWEB", "NREB",
169 "NDL4", "NDL5", "NDL6",
170 "NDL7", "NRB", "NCLE",
171 "NALE", "NDL0", "NDL1",
174 drive-strength = <8>;
179 pcie0_pins: pcie0-pins {
182 groups = "pcie0_pad_perst",
188 pmic_bus_pins: pmic-bus-pins {
195 pwm7_pins: pwm1-2-pins {
198 groups = "pwm_ch7_2";
202 uart0_pins: uart0-pins {
205 groups = "uart0_0_tx_rx" ;
209 watchdog_pins: watchdog-pins {
211 function = "watchdog";
222 pinctrl-names = "default";
223 pinctrl-0 = <ð_pins>;
227 compatible = "mediatek,eth-mac";
230 phy-connection-type = "2500base-x";
232 nvmem-cells = <&macaddr_factory_4>;
233 nvmem-cell-names = "mac-address";
234 mac-address-increment = <(-1)>;
244 #address-cells = <1>;
250 pinctrl-names = "default";
251 pinctrl-0 = <¶llel_nand_pins>;
256 nand-ecc-mode = "hw";
259 compatible = "fixed-partitions";
260 #address-cells = <1>;
271 reg = <0x80000 0x40000>;
276 label = "Bootloader";
277 reg = <0xc0000 0x80000>;
283 reg = <0x140000 0x80000>;
286 factory: partition@1c0000 {
288 reg = <0x1c0000 0x40000>;
293 compatible = "brcm,trx";
294 brcm,trx-magic = <0x32504844>;
296 reg = <0x200000 0x3a00000>;
301 reg = <0x3c00000 0x3a00000>;
306 reg = <0x7600000 0x200000>;
311 label = "board_data";
312 reg = <0x7800000 0x200000>;
320 pinctrl-names = "default";
321 pinctrl-0 = <&pwm7_pins>;
326 pinctrl-names = "default";
327 pinctrl-0 = <&pmic_bus_pins>;
332 pinctrl-names = "default";
333 pinctrl-0 = <&uart0_pins>;
338 pinctrl-names = "default";
339 pinctrl-0 = <&watchdog_pins>;
346 mediatek,mtd-eeprom = <&factory 0x0>;
354 compatible = "nvmem-cells";
355 #address-cells = <1>;
358 macaddr_factory_4: macaddr@4 {