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;
21 bootargs = "console=ttyS0,57600";
25 compatible = "gpio-leds";
28 label = "re650-v1:blue:power";
29 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
33 label = "re650-v1:blue:wifi2G";
34 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
38 label = "re650-v1:blue:wifi5G";
39 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
43 label = "re650-v1:red:wps";
44 gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
48 label = "re650-v1:blue:wps";
49 gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
53 label = "re650-v1:green:eth_act";
54 gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
58 label = "re650-v1:green:eth_link";
59 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
64 compatible = "gpio-keys";
68 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
69 debounce-interval = <60>;
70 linux,code = <KEY_WPS_BUTTON>;
75 gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
76 debounce-interval = <60>;
77 linux,code = <KEY_POWER>;
82 gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
83 debounce-interval = <60>;
84 linux,code = <KEY_LIGHTS_TOGGLE>;
89 gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
90 debounce-interval = <60>;
91 linux,code = <KEY_RESTART>;
100 compatible = "jedec,spi-nor";
102 spi-max-frequency = <40000000>;
105 compatible = "fixed-partitions";
106 #address-cells = <1>;
116 compatible = "tplink,firmware";
118 reg = <0x20000 0xde0000>;
121 config: partition@e00000 {
123 reg = <0xe00000 0x50000>;
127 /* range 0xe50000 to 0xff0000 is empty in vendor
128 * firmware, so we do not use it either
131 radio: partition@ff0000 {
133 reg = <0xff0000 0x10000>;
146 compatible = "mediatek,mt76";
147 reg = <0x0000 0 0 0 0>;
148 mediatek,mtd-eeprom = <&radio 0>;
149 mtd-mac-address = <&config 0x10008>;
150 mtd-mac-address-increment = <1>;
151 ieee80211-freq-limit = <2400000 2500000>;
157 compatible = "mediatek,mt76";
158 reg = <0x0000 0 0 0 0>;
159 mediatek,mtd-eeprom = <&radio 0x8000>;
160 mtd-mac-address = <&config 0x10008>;
161 mtd-mac-address-increment = <2>;
162 ieee80211-freq-limit = <5000000 6000000>;
167 mtd-mac-address = <&config 0x10008>;
171 state_default: pinctrl0 {
173 ralink,group = "rgmii2", "wdt";
174 ralink,function = "gpio";