1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7628an_tplink_8m.dtsi"
4 #include <dt-bindings/leds/common.h>
7 compatible = "tplink,tl-wr902ac-v4", "mediatek,mt7628an-soc";
8 model = "TP-Link TL-WR902AC v4";
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
18 compatible = "gpio-keys";
22 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
34 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
40 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_WPS_BUTTON>;
46 compatible = "gpio-leds";
49 color = <LED_COLOR_ID_GREEN>;
50 function = LED_FUNCTION_POWER;
51 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
55 color = <LED_COLOR_ID_GREEN>;
56 function = LED_FUNCTION_USB;
57 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
58 trigger-sources = <&ohci_port1>, <&ehci_port1>;
59 linux,default-trigger = "usbport";
63 color = <LED_COLOR_ID_GREEN>;
64 function = LED_FUNCTION_WAN;
65 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
69 color = <LED_COLOR_ID_GREEN>;
70 function = LED_FUNCTION_WLAN;
71 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
72 linux,default-trigger = "phy0tpt";
76 function = LED_FUNCTION_WPS;
77 color = <LED_COLOR_ID_GREEN>;
78 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
83 &eeprom_factory_28000 {
84 /* tl-wr902ac-v4 has different eeprom size '0x4da8' for MT7613 */
85 reg = <0x28000 0x4da8>;
94 compatible = "mediatek,mt76";
95 reg = <0x0000 0 0 0 0>;
96 ieee80211-freq-limit = <5000000 6000000>;
97 nvmem-cells = <&eeprom_factory_28000>, <&macaddr_factory_f100 (-1)>;
98 nvmem-cell-names = "eeprom", "mac-address";
104 groups = "i2c", "i2s", "p0led_an", "p2led_an", "p4led_an", "uart1", "wdt", "wled_an";
111 nvmem-cells = <&eeprom_factory_28000>, <&macaddr_factory_f100 0>;
112 nvmem-cell-names = "eeprom", "mac-address";