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 pwm7_pins: pwm1-2-pins {
199 groups = "pwm_ch7_2";
203 uart0_pins: uart0-pins {
206 groups = "uart0_0_tx_rx" ;
210 watchdog_pins: watchdog-pins {
212 function = "watchdog";
223 pinctrl-names = "default";
224 pinctrl-0 = <ð_pins>;
228 compatible = "mediatek,eth-mac";
231 phy-connection-type = "2500base-x";
233 nvmem-cells = <&macaddr_factory_4 (-1)>;
234 nvmem-cell-names = "mac-address";
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 {
287 compatible = "nvmem-cells";
289 reg = <0x1c0000 0x40000>;
293 compatible = "fixed-layout";
294 #address-cells = <1>;
297 macaddr_factory_4: macaddr@4 {
298 compatible = "mac-base";
300 #nvmem-cell-cells = <1>;
306 compatible = "brcm,trx";
307 brcm,trx-magic = <0x32504844>;
309 reg = <0x200000 0x3a00000>;
314 reg = <0x3c00000 0x3a00000>;
319 reg = <0x7600000 0x200000>;
324 label = "board_data";
325 reg = <0x7800000 0x200000>;
333 pinctrl-names = "default";
334 pinctrl-0 = <&pwm7_pins>;
339 pinctrl-names = "default";
340 pinctrl-0 = <&pmic_bus_pins>;
345 pinctrl-names = "default";
346 pinctrl-0 = <&uart0_pins>;
351 pinctrl-names = "default";
352 pinctrl-0 = <&watchdog_pins>;
359 mediatek,mtd-eeprom = <&factory 0x0>;