1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "tplink,re650-v1", "mediatek,mt7621-soc";
11 model = "TP-Link RE650 v1";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = ðernet;
22 bootargs = "console=ttyS0,57600";
26 compatible = "gpio-leds";
29 label = "re650-v1:blue:power";
30 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
34 label = "re650-v1:blue:wifi2G";
35 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
39 label = "re650-v1:blue:wifi5G";
40 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
44 label = "re650-v1:red:wps";
45 gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
49 label = "re650-v1:blue:wps";
50 gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
54 label = "re650-v1:green:eth_act";
55 gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
59 label = "re650-v1:green:eth_link";
60 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
65 compatible = "gpio-keys";
69 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
70 debounce-interval = <60>;
71 linux,code = <KEY_WPS_BUTTON>;
76 gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
77 debounce-interval = <60>;
78 linux,code = <KEY_POWER>;
83 gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
84 debounce-interval = <60>;
85 linux,code = <KEY_LIGHTS_TOGGLE>;
90 gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
91 debounce-interval = <60>;
92 linux,code = <KEY_RESTART>;
101 compatible = "jedec,spi-nor";
103 spi-max-frequency = <40000000>;
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
117 compatible = "tplink,firmware";
119 reg = <0x20000 0xde0000>;
122 config: partition@e00000 {
124 reg = <0xe00000 0x50000>;
128 /* range 0xe50000 to 0xff0000 is empty in vendor
129 * firmware, so we do not use it either
132 radio: partition@ff0000 {
134 reg = <0xff0000 0x10000>;
147 compatible = "mediatek,mt76";
148 reg = <0x0000 0 0 0 0>;
149 mediatek,mtd-eeprom = <&radio 0>;
150 mtd-mac-address = <&config 0x10008>;
151 mtd-mac-address-increment = <1>;
152 ieee80211-freq-limit = <2400000 2500000>;
158 compatible = "mediatek,mt76";
159 reg = <0x0000 0 0 0 0>;
160 mediatek,mtd-eeprom = <&radio 0x8000>;
161 mtd-mac-address = <&config 0x10008>;
162 mtd-mac-address-increment = <2>;
163 ieee80211-freq-limit = <5000000 6000000>;
168 mtd-mac-address = <&config 0x10008>;
172 state_default: pinctrl0 {
174 ralink,group = "rgmii2", "wdt";
175 ralink,function = "gpio";