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>
7 #include <dt-bindings/leds/common.h>
10 compatible = "tplink,re650-v2", "mediatek,mt7621-soc";
11 model = "TP-Link RE650 v2";
14 label-mac-device = &gmac0;
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
22 compatible = "gpio-keys";
26 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
28 linux,code = <KEY_WPS_BUTTON>;
33 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
34 debounce-interval = <60>;
35 linux,code = <KEY_POWER>;
40 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
41 debounce-interval = <60>;
42 linux,code = <KEY_LIGHTS_TOGGLE>;
47 gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
48 debounce-interval = <60>;
49 linux,code = <KEY_RESTART>;
54 compatible = "gpio-leds";
57 function = LED_FUNCTION_POWER;
58 color = <LED_COLOR_ID_BLUE>;
59 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
63 label = "blue:wifi2g";
64 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
65 linux,default-trigger = "phy0tpt";
69 label = "blue:wifi5g";
70 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
71 linux,default-trigger = "phy1tpt";
75 function = LED_FUNCTION_WPS;
76 color = <LED_COLOR_ID_RED>;
77 gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
81 function = LED_FUNCTION_WPS;
82 color = <LED_COLOR_ID_BLUE>;
83 gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
87 label = "green:eth_act";
88 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
92 label = "green:eth_link";
93 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
102 compatible = "jedec,spi-nor";
104 spi-max-frequency = <40000000>;
107 compatible = "fixed-partitions";
108 #address-cells = <1>;
118 compatible = "tplink,firmware";
120 reg = <0x20000 0x7a0000>;
125 reg = <0x7c0000 0x2d440>;
129 compatible = "fixed-layout";
130 #address-cells = <1>;
133 macaddr_config_10008: macaddr@10008 {
134 compatible = "mac-base";
136 #nvmem-cell-cells = <1>;
143 reg = <0x7f0000 0x10000>;
147 compatible = "fixed-layout";
148 #address-cells = <1>;
151 eeprom_radio_0: eeprom@0 {
155 eeprom_radio_8000: eeprom@8000 {
156 reg = <0x8000 0x4da8>;
166 groups = "rgmii2", "wdt";
177 compatible = "mediatek,mt76";
178 reg = <0x0000 0 0 0 0>;
179 nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_10008 1>;
180 nvmem-cell-names = "eeprom", "mac-address";
181 ieee80211-freq-limit = <2400000 2500000>;
187 compatible = "mediatek,mt76";
188 reg = <0x0000 0 0 0 0>;
189 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_10008 2>;
190 nvmem-cell-names = "eeprom", "mac-address";
191 ieee80211-freq-limit = <5000000 6000000>;
196 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
200 nvmem-cells = <&macaddr_config_10008 0>;
201 nvmem-cell-names = "mac-address";