1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7628an.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "tplink,re305-v1", "mediatek,mt7628an-soc";
10 model = "TP-Link RE305 v1";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 label-mac-device = ðernet;
21 compatible = "gpio-keys";
25 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
31 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_WPS_BUTTON>;
37 compatible = "gpio-leds";
41 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
45 label = "blue:wlan2g";
46 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
47 linux,default-trigger = "phy0tpt";
51 label = "blue:wlan5g";
52 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
53 linux,default-trigger = "phy1tpt";
58 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
63 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
72 compatible = "jedec,spi-nor";
74 spi-max-frequency = <50000000>;
77 compatible = "fixed-partitions";
88 compatible = "tplink,firmware";
90 reg = <0x20000 0x5e0000>;
93 config: partition@600000 {
95 reg = <0x600000 0x50000>;
100 The flash space between 0x650000 and 0x7f0000 is blank in the
101 stock firmware so it is left out as well.
104 radio: partition@7f0000 {
106 reg = <0x7f0000 0x10000>;
115 groups = "refclk", "wdt", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an";
126 compatible = "mediatek,mt76";
127 reg = <0x0000 0 0 0 0>;
128 mediatek,mtd-eeprom = <&radio 0x8000>;
129 ieee80211-freq-limit = <5000000 6000000>;
130 mtd-mac-address = <&config 0x10008>;
131 mtd-mac-address-increment = <2>;
138 mediatek,mtd-eeprom = <&radio 0x0>;
139 mtd-mac-address = <&config 0x10008>;
140 mtd-mac-address-increment = <1>;
144 mtd-mac-address = <&config 0x10008>;