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>
7 #include <dt-bindings/leds/common.h>
10 model = "TP-Link RE365 v1";
11 compatible = "tplink,re365-v1", "mediatek,mt7628an-soc";
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 44 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_LIGHTS_TOGGLE>;
32 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_POWER>;
38 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_RESTART>;
44 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_WPS_BUTTON>;
50 compatible = "gpio-leds";
53 color = <LED_COLOR_ID_BLUE>;
54 function = LED_FUNCTION_LAN;
55 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
58 led_power: led-power {
59 color = <LED_COLOR_ID_BLUE>;
60 function = LED_FUNCTION_POWER;
61 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
66 color = <LED_COLOR_ID_RED>;
67 function = LED_FUNCTION_INDICATOR;
68 gpios = <&gpio 43 GPIO_ACTIVE_HIGH>;
72 color = <LED_COLOR_ID_BLUE>;
73 function = LED_FUNCTION_INDICATOR;
74 gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
78 color = <LED_COLOR_ID_BLUE>;
79 function = LED_FUNCTION_WLAN;
80 function-enumerator = <2>;
81 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
82 linux,default-trigger = "phy0tpt";
86 color = <LED_COLOR_ID_BLUE>;
87 function = LED_FUNCTION_WLAN;
88 function-enumerator = <5>;
89 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
90 linux,default-trigger = "phy1tpt";
95 compatible = "mtd-concat";
96 devices = <&fwconcat0>, <&fwconcat1>;
99 compatible = "fixed-partitions";
100 #address-cells = <1>;
104 compatible = "tplink,firmware";
113 nvmem-cells = <&macaddr_config_10008 0>;
114 nvmem-cell-names = "mac-address";
123 compatible = "mediatek,mt76";
124 reg = <0x0000 0 0 0 0>;
125 ieee80211-freq-limit = <5000000 6000000>;
126 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_10008 2>;
127 nvmem-cell-names = "eeprom", "mac-address";
135 compatible = "jedec,spi-nor";
137 spi-max-frequency = <10000000>;
140 compatible = "fixed-partitions";
141 #address-cells = <1>;
150 fwconcat0: partition@20000 {
152 reg = <0x20000 0x5e0000>;
157 reg = <0x600000 0x50000>;
161 compatible = "fixed-layout";
162 #address-cells = <1>;
165 macaddr_config_10008: macaddr@10008 {
166 compatible = "mac-base";
168 #nvmem-cell-cells = <1>;
173 fwconcat1: partition@650000 {
175 reg = <0x650000 0x1a0000>;
180 reg = <0x7f0000 0x10000>;
184 compatible = "fixed-layout";
185 #address-cells = <1>;
188 eeprom_radio_0: eeprom@0 {
192 eeprom_radio_8000: eeprom@8000 {
193 reg = <0x8000 0x200>;
203 groups = "refclk", "wdt", "p0led_an", "p1led_an", "p2led_an", "p3led_an",
212 nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_10008 1>;
213 nvmem-cell-names = "eeprom", "mac-address";