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 radio: partition@7f0000 {
127 reg = <0x7f0000 0x10000>;
136 groups = "rgmii2", "wdt";
147 compatible = "mediatek,mt76";
148 reg = <0x0000 0 0 0 0>;
149 mediatek,mtd-eeprom = <&radio 0x0>;
150 nvmem-cells = <&macaddr_config_10008>;
151 nvmem-cell-names = "mac-address";
152 mac-address-increment = <1>;
153 ieee80211-freq-limit = <2400000 2500000>;
159 compatible = "mediatek,mt76";
160 reg = <0x0000 0 0 0 0>;
161 mediatek,mtd-eeprom = <&radio 0x8000>;
162 nvmem-cells = <&macaddr_config_10008>;
163 nvmem-cell-names = "mac-address";
164 mac-address-increment = <2>;
165 ieee80211-freq-limit = <5000000 6000000>;
170 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
174 nvmem-cells = <&macaddr_config_10008>;
175 nvmem-cell-names = "mac-address";
188 compatible = "nvmem-cells";
189 #address-cells = <1>;
192 macaddr_config_10008: macaddr@10008 {