You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/target/linux
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>
7 years ago
..
adm5120 treewide: populate boardname and model earlier 7 years ago
adm8668 build: fix subtarget descriptions 8 years ago
apm821xx kernel: bump 4.9 to 4.9.57 7 years ago
ar7 ar7: add kernel 4.9 support 7 years ago
ar71xx ar71xx: fix LED config for DIR-869 A1 7 years ago
arc770 arc770: mark as source-only 7 years ago
archs38 treewide: drop target board_name functions 7 years ago
armvirt armvirt: Enable CONFIG_ARM_PMU 7 years ago
at91 at91: remove unused at91part driver 7 years ago
ath25 kernel: cleanup CONFIG_SCHED_HRTICK 7 years ago
au1000 kernel: update kernel 3.18 to version 3.18.43 8 years ago
bcm53xx bcm53xx: Fix Generic profile description 7 years ago
brcm47xx brcm47xx: use kernel 4.9 by default 7 years ago
brcm63xx kernel: update 4.4 to 4.4.86 7 years ago
brcm2708 kernel: bump 4.9 to 4.9.58 7 years ago
cns3xxx kernel: bump 4.9 to 4.9.57 7 years ago
gemini treewide: do not use IMG_PREFIX in Image/Prepare 7 years ago
generic kernel: enable CONFIG_ADVISE_SYSCALLS 7 years ago
imx6 imx6: add driver for temp/voltage monitoring 7 years ago
ipq806x ipq806x: nbg6817: sync MAC addresses to the upstream values 7 years ago
ixp4xx treewide: drop target board_name functions 7 years ago
kirkwood treewide: drop target board_name functions 7 years ago
lantiq lantiq: xway: rename nas0/ptm0 to dsl0 7 years ago
layerscape layerscape: reverse changes to ndo_get_stats64 7 years ago
malta treewide: do not use IMG_PREFIX in Image/Prepare 7 years ago
mcs814x treewide: drop target board_name functions 7 years ago
mediatek kernel: bump 4.9 to 4.9.57 7 years ago
mpc85xx mpc85xx: use image metadata 7 years ago
mvebu mvebu: clean up ClearFog Base package selection 7 years ago
mxs treewide: drop target board_name functions 7 years ago
octeon treewide: use only board_name function to get name 7 years ago
omap omap: clean up configuration 7 years ago
omap24xx treewide: use only board_name function to get name 7 years ago
orion orion: Switch to 4.9 kernel 7 years ago
oxnas kernel: bump 4.4 to 4.4.91 7 years ago
pistachio kernel: update 4.9 to 4.9.44 7 years ago
ppc40x treewide: drop target board_name functions 7 years ago
ppc44x ppc44x: mark as broken 8 years ago
ramips ramips: add support for switching between 3-byte and 4-byte addressing on w25q256 flash 7 years ago
rb532 treewide: drop obsolete kernel config options 7 years ago
sunxi kernel: bump 4.9 to 4.9.58 7 years ago
uml uml: Switch to 4.9 kernel 7 years ago
x86 x86: fix reboot on apu2 boards 7 years ago
xburst xburst: enable high-res timers, refresh kernel config 7 years ago
zynq treewide: use only board_name function to get name 7 years ago
Makefile