1 #include <dt-bindings/leds/common.h>
3 #include "mt7628an_tplink_8m.dtsi"
6 compatible = "tplink,tl-wr902ac-v3", "mediatek,mt7628an-soc";
7 model = "TP-Link TL-WR902AC v3";
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
17 compatible = "gpio-keys";
21 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
33 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
39 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_WPS_BUTTON>;
45 compatible = "gpio-leds";
48 function = LED_FUNCTION_LAN;
49 color = <LED_COLOR_ID_GREEN>;
50 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
54 function = LED_FUNCTION_POWER;
55 color = <LED_COLOR_ID_GREEN>;
56 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
60 function = LED_FUNCTION_USB;
61 color = <LED_COLOR_ID_GREEN>;
62 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
63 trigger-sources = <&ohci_port1>, <&ehci_port1>;
64 linux,default-trigger = "usbport";
68 function = LED_FUNCTION_WAN;
69 color = <LED_COLOR_ID_GREEN>;
70 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
74 function = LED_FUNCTION_WLAN;
75 color = <LED_COLOR_ID_GREEN>;
76 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
80 function = LED_FUNCTION_WPS;
81 color = <LED_COLOR_ID_GREEN>;
82 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
89 groups = "i2c", "i2s", "p0led_an", "p2led_an", "p4led_an", "uart1", "wdt", "wled_an";
97 nvmem-cells = <&eeprom_factory_20000>, <&macaddr_factory_f100 0>;
98 nvmem-cell-names = "eeprom", "mac-address";
107 reg = <0x0000 0 0 0 0>;
108 ieee80211-freq-limit = <5000000 6000000>;
109 nvmem-cells = <&eeprom_factory_28000>, <&macaddr_factory_f100 (-1)>;
110 nvmem-cell-names = "eeprom", "mac-address";