diff options
author | Joe Mullally <jwmullally@gmail.com> | 2020-08-21 07:02:23 +0100 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-08-22 15:13:15 +0200 |
commit | 685d2513b51094f183d0a93f207b73c8b1c598f3 (patch) | |
tree | d07238ba96ec324f7b42a8b4bc6ee9cee916ddcf /target/linux/gemini | |
parent | 441b36236f9830b4b3a9c2509908a55471a56f1c (diff) | |
download | upstream-685d2513b51094f183d0a93f207b73c8b1c598f3.tar.gz upstream-685d2513b51094f183d0a93f207b73c8b1c598f3.tar.bz2 upstream-685d2513b51094f183d0a93f207b73c8b1c598f3.zip |
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: ab74def0db93 ("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>
Diffstat (limited to 'target/linux/gemini')
0 files changed, 0 insertions, 0 deletions