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 = "tplink,re650-v2", "mediatek,mt7621-soc";
10 model = "TP-Link RE650 v2";
13 label-mac-device = &gmac0;
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 compatible = "gpio-keys";
25 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
26 debounce-interval = <60>;
27 linux,code = <KEY_WPS_BUTTON>;
32 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
33 debounce-interval = <60>;
34 linux,code = <KEY_POWER>;
39 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
40 debounce-interval = <60>;
41 linux,code = <KEY_LIGHTS_TOGGLE>;
46 gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
47 debounce-interval = <60>;
48 linux,code = <KEY_RESTART>;
53 compatible = "gpio-leds";
57 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
61 label = "blue:wifi2g";
62 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
63 linux,default-trigger = "phy0tpt";
67 label = "blue:wifi5g";
68 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
69 linux,default-trigger = "phy1tpt";
74 gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
79 gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
83 label = "green:eth_act";
84 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
88 label = "green:eth_link";
89 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
98 compatible = "jedec,spi-nor";
100 spi-max-frequency = <40000000>;
103 compatible = "fixed-partitions";
104 #address-cells = <1>;
114 compatible = "tplink,firmware";
116 reg = <0x20000 0x7a0000>;
119 config: partition@7c0000 {
121 reg = <0x7c0000 0x2d440>;
125 compatible = "fixed-layout";
126 #address-cells = <1>;
129 macaddr_config_10008: macaddr@10008 {
130 compatible = "mac-base";
132 #nvmem-cell-cells = <1>;
137 radio: partition@7f0000 {
139 reg = <0x7f0000 0x10000>;
143 compatible = "fixed-layout";
144 #address-cells = <1>;
147 eeprom_radio_0: eeprom@0 {
151 eeprom_radio_8000: eeprom@8000 {
152 reg = <0x8000 0x4da8>;
162 groups = "rgmii2", "wdt";
173 compatible = "mediatek,mt76";
174 reg = <0x0000 0 0 0 0>;
175 nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_10008 1>;
176 nvmem-cell-names = "eeprom", "mac-address";
177 ieee80211-freq-limit = <2400000 2500000>;
183 compatible = "mediatek,mt76";
184 reg = <0x0000 0 0 0 0>;
185 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_10008 2>;
186 nvmem-cell-names = "eeprom", "mac-address";
187 ieee80211-freq-limit = <5000000 6000000>;
192 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
196 nvmem-cells = <&macaddr_config_10008 0>;
197 nvmem-cell-names = "mac-address";