1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include "mt7628an.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "tplink,re305-v1", "mediatek,mt7628an-soc";
11 model = "TP-Link RE305 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-keys";
30 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
36 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_WPS_BUTTON>;
42 compatible = "gpio-leds";
45 label = "re305-v1:blue:power";
46 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
50 label = "re305-v1:blue:wlan2g";
51 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy0tpt";
56 label = "re305-v1:blue:wlan5g";
57 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
58 linux,default-trigger = "phy1tpt";
62 label = "re305-v1:red:rssi";
63 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
67 label = "re305-v1:blue:rssi";
68 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
77 compatible = "jedec,spi-nor";
79 spi-max-frequency = <50000000>;
82 compatible = "fixed-partitions";
93 compatible = "tplink,firmware";
95 reg = <0x20000 0x5e0000>;
98 config: partition@600000 {
100 reg = <0x600000 0x50000>;
105 The flash space between 0x650000 and 0x7f0000 is blank in the
106 stock firmware so it is left out as well.
109 radio: partition@7f0000 {
111 reg = <0x7f0000 0x10000>;
120 ralink,group = "refclk", "wdt", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an";
121 ralink,function = "gpio";
131 compatible = "mediatek,mt76";
132 reg = <0x0000 0 0 0 0>;
133 mediatek,mtd-eeprom = <&radio 0x8000>;
134 ieee80211-freq-limit = <5000000 6000000>;
135 mtd-mac-address = <&config 0x10008>;
136 mtd-mac-address-increment = <2>;
143 mediatek,mtd-eeprom = <&radio 0x0>;
144 mtd-mac-address = <&config 0x10008>;
145 mtd-mac-address-increment = <1>;
149 mtd-mac-address = <&config 0x10008>;