openwrt/target/linux
Florian Beier 9740523763 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 22:59:20 +01:00
..
adm5120 Mark targets using kernel 3.18 as source-only 2017-02-17 06:58:33 +01:00
adm8668 Mark targets using kernel 3.18 as source-only 2017-02-17 06:58:33 +01:00
apm821xx kernel: update 4.4 to 4.4.86 2017-09-04 14:41:56 +02:00
ar7 ar7: add NULL clock fix send upstream 2017-07-29 09:24:47 +02:00
ar71xx ar71xx: fix LED config for DIR-869 A1 2017-11-03 22:59:20 +01:00
arc770 arc770: only calculate entry point address when necessary 2017-03-01 20:37:37 +01:00
archs38 archs38: only calculate entry point address when necessary 2017-03-01 20:37:37 +01:00
arm64 Revert "arm64: boot-wrapper: Add mirror" 2016-12-22 21:08:17 +01:00
armvirt armvirt: add kernel config change missing from 0d44f0cb 2017-01-13 11:05:32 +01:00
at91 kernel: remove ubifs xz decompression support 2017-01-09 14:07:06 +01:00
ath25 kernel: backport MIPS changes introducing a separate IRQ stack 2017-01-15 18:25:54 +01:00
au1000 Mark targets using kernel 3.18 as source-only 2017-02-17 06:58:33 +01:00
bcm53xx bcm53xx: backport DTS changes up to the first 4.15 queued commits 2017-10-10 10:24:49 +02:00
brcm47xx brcm47xx: refresh Linux 4.4 config 2017-09-04 08:07:42 +02:00
brcm63xx brcm63xx: add NULL clock fix send upstream 2017-07-29 09:24:55 +02:00
brcm2708 kernel: bump 4.4 to 4.4.93 for 17.01 2017-10-18 19:58:02 +03:00
cns3xxx kernel: bump 4.4 to 4.4.92 2017-10-16 13:35:06 +03:00
gemini gemini: rename config-default to config-4.4 2016-08-24 01:44:05 +03:00
generic kernel: bump 4.4 to 4.4.92 2017-10-16 13:35:06 +03:00
imx6 imx6: fix DualLite/Solo GW551X board detection 2017-07-14 08:04:58 +02:00
ipq806x ipq806x: nbg6817: sync MAC addresses to the upstream values 2017-11-03 22:59:20 +01:00
ixp4xx kernel: update 4.4 to 4.4.86 2017-09-04 14:41:56 +02:00
kirkwood kirkwood: fix include in etc/board.d/02_network 2017-03-01 20:37:37 +01:00
lantiq lantiq: add missing default lan interface 2017-10-25 08:45:53 +02:00
layerscape kernel: update kernel 4.4 to version 4.4.79 2017-07-28 23:49:35 +02:00
malta malta: mark as source-only to avoid wasting build resources 2017-01-24 13:35:47 +01:00
mcs814x Mark targets using kernel 3.18 as source-only 2017-02-17 06:58:33 +01:00
mediatek kernel: update 4.4 to 4.4.89 2017-09-30 13:58:00 +02:00
mpc85xx kernel: remove DEVMEM/DEVKMEM platform overrides 2017-01-10 13:48:53 +01:00
mvebu kernel: update 4.4 to 4.4.89 2017-09-30 13:58:00 +02:00
mxs mxs: remove stale references to obsolete kernel module packages 2017-01-28 20:32:39 +01:00
octeon octeon: only copy sysupgrade file if present 2017-02-15 09:37:15 +01:00
omap omap: build various core drivers into the kernel instead of packaging them 2017-01-10 13:44:26 +01:00
omap24xx kernel: clean up usb gadget support 2016-09-15 13:11:21 +02:00
orion kernel: remove DEVMEM/DEVKMEM platform overrides 2017-01-10 13:48:53 +01:00
oxnas kernel: bump 4.4 to 4.4.92 2017-10-16 13:35:06 +03:00
ppc40x build: fix subtarget descriptions 2016-09-04 13:35:11 +02:00
ppc44x ppc44x: mark as broken 2017-01-10 12:49:34 +01:00
ramips ramips: fix Youku-YK1 support 2017-10-27 11:19:07 +02:00
rb532 kernel: update kernel 4.4 to version 4.4.79 2017-07-28 23:49:35 +02:00
sunxi sunxi: clean up modules definitions 2017-10-01 10:04:12 +02:00
uml uml: mark as source-only 2017-01-24 13:35:47 +01:00
x86 x86: partly revert cabf775 2017-10-16 17:21:43 +02:00
xburst Mark targets using kernel 3.18 as source-only 2017-02-17 06:58:33 +01:00
zynq kernel: remove DEVTMPFS platform overrides 2017-01-10 13:48:53 +01:00
Makefile