aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/arm64
diff options
context:
space:
mode:
authorFlorian Beier <beier.florian@gmail.com>2017-10-25 20:12:24 +0200
committerMathias Kresin <dev@kresin.me>2017-11-03 22:59:20 +0100
commit97405237638f02e6974e30959787d3d23dead5b0 (patch)
tree4323693475b173be71760c177ecaceb873c85789 /target/linux/arm64
parentbdf19eec356a8f53c3ddd9785c99d7029a38b4b1 (diff)
downloadupstream-97405237638f02e6974e30959787d3d23dead5b0.tar.gz
upstream-97405237638f02e6974e30959787d3d23dead5b0.tar.bz2
upstream-97405237638f02e6974e30959787d3d23dead5b0.zip
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:orange: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>
Diffstat (limited to 'target/linux/arm64')
0 files changed, 0 insertions, 0 deletions