openwrt/target/linux/ar71xx
Florian Beier c4c72a9a42 ar71xx: fix LED config for DIR-869 A1
This fixes the LED configuration for the D-Link DIR-869 A1. In order to
support the device I probed around using an initramfs image for the
UniFi AC. Pulling GPIO 15 to low enabled the LEDs while high disabled them.
GPIO 16 set to low meant that the color was white while pulling it to high
made the color change to orange. The past code was written based upon these
findings.
However, running a flashed image I now discovered that GPIO 15 controls the
orange LEDs while GPIO 16 controls the white ones and that both are active
when low. This means that the GPIOs were inverted and one active_low was set
wrong which this patch fixes.

Behavior of the LED front after this patch is applied:

cat /sys/devices/platform/leds-gpio/leds/d-link:white:status/brightness
0   -> white LEDs are OFF
255 -> white LEDs are ON

cat /sys/devices/platform/leds-gpio/leds/d-link🍊status/brightness
0   -> orange LEDs are OFF
255 -> orange LEDs are ON

If the brightness of both is set to 255 the LED front will be white.
If the brightness of both is set to 0 the LED front will be off.

Signed-off-by: Florian Beier <beier.florian@gmail.com>
2017-11-03 20:04:52 +01:00
..
base-files ar71xx: fix board.bin used by QCA9886 in Archer C58/C59/C60 2017-10-27 00:45:32 +02:00
files ar71xx: fix LED config for DIR-869 A1 2017-11-03 20:04:52 +01:00
generic ar71xx: unify CONFIG_CMDLINE 2017-09-28 22:45:39 +02:00
image ar71xx: Archer C58/C59/C60 fix qca9886 wireless interface 2017-10-26 14:44:08 +02:00
mikrotik ar71xx: re-enable 4k sectors for the mikrotik subtargets 2017-10-24 13:24:05 +02:00
nand ar71xx: add support for Nokia WI2A-AC200i 2017-10-19 12:27:42 +02:00
patches-4.4 kernel: bump 4.4 to 4.4.91 2017-10-08 20:51:03 +03:00
patches-4.9 ar71xx: Add kernel 4.9 support 2017-10-11 22:32:39 +02:00
config-4.4 ar71xx: add support for Nokia WI2A-AC200i 2017-10-19 12:27:42 +02:00
config-4.9 ar71xx: add support for Nokia WI2A-AC200i 2017-10-19 12:27:42 +02:00
Makefile ar71xx: use kernel 4.9 by default 2017-10-22 15:22:51 +02:00
modules.mk ar71xx: add LED driver NU801 2015-12-11 15:04:57 +00:00