forked from Ivasoft/openwrt
ar71xx: support LED in TP-Link TL-WR902AC RJ45 socket
TP-Link TL-WR902AC has another one, tiny LED inside RJ45 socket which is
attached to GPIO15. Add support for it, use it as a "lan" LED and rename
old one to "internet". Also, fix uci option name for "lan" LED in system
configuration ("wan" -> "lan").
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
This commit is contained in:
@@ -25,7 +25,8 @@
|
||||
#include "machtypes.h"
|
||||
|
||||
|
||||
#define TL_WR902AC_V1_GPIO_LED_LAN 12
|
||||
#define TL_WR902AC_V1_GPIO_LED_INTERNET 12
|
||||
#define TL_WR902AC_V1_GPIO_LED_LAN 15
|
||||
#define TL_WR902AC_V1_GPIO_LED_POWER 13
|
||||
#define TL_WR902AC_V1_GPIO_LED_USB 4
|
||||
#define TL_WR902AC_V1_GPIO_LED_WLAN2G 11
|
||||
@@ -44,9 +45,13 @@
|
||||
|
||||
static struct gpio_led tl_wr902ac_v1_leds_gpio[] __initdata = {
|
||||
{
|
||||
.name = "tl-wr902ac-v1:green:internet",
|
||||
.gpio = TL_WR902AC_V1_GPIO_LED_INTERNET,
|
||||
.active_low = 1,
|
||||
}, {
|
||||
.name = "tl-wr902ac-v1:green:lan",
|
||||
.gpio = TL_WR902AC_V1_GPIO_LED_LAN,
|
||||
.active_low = 1,
|
||||
.active_low = 0,
|
||||
}, {
|
||||
.name = "tl-wr902ac-v1:green:power",
|
||||
.gpio = TL_WR902AC_V1_GPIO_LED_POWER,
|
||||
|
||||
Reference in New Issue
Block a user