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 {
120 compatible = "nvmem-cells";
122 reg = <0x7c0000 0x2d440>;
123 #address-cells = <1>;
127 macaddr_config_10008: macaddr@10008 {
132 radio: partition@7f0000 {
133 compatible = "nvmem-cells";
135 reg = <0x7f0000 0x10000>;
136 #address-cells = <1>;
140 eeprom_radio_0: eeprom@0 {
144 eeprom_radio_8000: eeprom@8000 {
145 reg = <0x8000 0x4da8>;
154 groups = "rgmii2", "wdt";
165 compatible = "mediatek,mt76";
166 reg = <0x0000 0 0 0 0>;
167 nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_10008>;
168 nvmem-cell-names = "eeprom", "mac-address";
169 mac-address-increment = <1>;
170 ieee80211-freq-limit = <2400000 2500000>;
176 compatible = "mediatek,mt76";
177 reg = <0x0000 0 0 0 0>;
178 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_10008>;
179 nvmem-cell-names = "eeprom", "mac-address";
180 mac-address-increment = <2>;
181 ieee80211-freq-limit = <5000000 6000000>;
186 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
190 nvmem-cells = <&macaddr_config_10008>;
191 nvmem-cell-names = "mac-address";