tn3399_openwrt/target/linux/ath79
Joe Mullally 685d2513b5 ath79: fix/improve LED control for TL-WPA8630 v1/v2
The TL-WPA8630 v1 and v2 have the same LED Control GPIO configuration
according to the TP-Link GPL sources. Set the GPIO to output to make
it work and set to Active Low. It defaults to LEDs on at bootup.

To turn all LEDs off:
  echo 0 > /sys/class/gpio/tp-link\:led\:control/value
To turn all LEDs on:
  echo 1 > /sys/class/gpio/tp-link\:led\:control/value

Change the "LED" button from BTN_0 to KEY_LIGHTS_TOGGLE to match other
devices and the button guide, and to reduce the number of unintuitive
"BTN_X" inputs.

Fixes: ab74def0db ("ath79: add support for TP-Link TL-WPA8630P v2")

Signed-off-by: Joe Mullally <jwmullally@gmail.com>
[shorten commit title, minor commit message adjustments]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-08-22 15:13:15 +02:00
..
base-files/etc/hotplug.d/ieee80211 ath79: add mikrotik subtarget 2020-03-17 11:50:47 +01:00
dts ath79: fix/improve LED control for TL-WPA8630 v1/v2 2020-08-22 15:13:15 +02:00
files kernel: Update kernel 4.19 to version 4.19.131 2020-07-04 21:12:42 +02:00
generic treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
image ath79: add support for TP-Link TL-WR710N v2.1 2020-08-21 11:34:55 +02:00
mikrotik treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
nand treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
patches-4.19 kernel: Update kernel 4.19 to version 4.19.138 2020-08-10 19:34:37 +02:00
patches-5.4 kernel: bump 5.4 to 5.4.58 2020-08-18 18:14:54 +02:00
tiny treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
config-4.19 kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-06 12:37:04 +02:00
config-5.4 kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-06 12:37:04 +02:00
Makefile ath79: switch to kernel 5.4 2020-07-07 10:33:17 +02:00
modules.mk