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 compatible = "gpio-keys";
26 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
32 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_WPS_BUTTON>;
38 compatible = "gpio-leds";
41 label = "re305-v1:blue:power";
42 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
46 label = "re305-v1:blue:wlan2g";
47 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
48 linux,default-trigger = "phy0tpt";
52 label = "re305-v1:blue:wlan5g";
53 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "phy1tpt";
58 label = "re305-v1:red:rssi";
59 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
63 label = "re305-v1:blue:rssi";
64 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
73 compatible = "jedec,spi-nor";
75 spi-max-frequency = <50000000>;
78 compatible = "fixed-partitions";
89 compatible = "tplink,firmware";
91 reg = <0x20000 0x5e0000>;
94 config: partition@600000 {
96 reg = <0x600000 0x50000>;
101 The flash space between 0x650000 and 0x7f0000 is blank in the
102 stock firmware so it is left out as well.
105 radio: partition@7f0000 {
107 reg = <0x7f0000 0x10000>;
116 groups = "refclk", "wdt", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an";
127 compatible = "mediatek,mt76";
128 reg = <0x0000 0 0 0 0>;
129 mediatek,mtd-eeprom = <&radio 0x8000>;
130 ieee80211-freq-limit = <5000000 6000000>;
131 mtd-mac-address = <&config 0x10008>;
132 mtd-mac-address-increment = <2>;
139 mediatek,mtd-eeprom = <&radio 0x0>;
140 mtd-mac-address = <&config 0x10008>;
141 mtd-mac-address-increment = <1>;
145 mtd-mac-address = <&config 0x10008>;