openwrt/target/linux/ramips
Thibaut VARÈNE a0e1d3ab7b
ramips: improve YunCore AX820 LEDs
At least two AX820 hardware variants are known to exist, but they cannot
be distinguished (same hardware revision, no specific markings).

They appear to have the same LED hardware, but wired differently:

- One has a red system LED at GPIO 15, a green wlan2g LED at GPIO 14 and
  a blue wlan5g LED at GPIO 16;
- The other only offers a green system LED at GPIO 15, with GPIO 14 and
  16 being apparently not connected

Finally, a Yuncore datasheet says the canonical wiring should be:
- Blue wlan2g GPIO 14, green system GPIO 15, red wlan5g GPIO 16

All GPIOs are tied to a single RGB LED which is exposed via lightpipe on
the device front casing.

Considering the above, this patch exposes all three LEDs, preserves the
common system LED (GPIO 15) as the openwrt status LED, and removes the
color information from the LEDs names since it is not consistent across
hardware. The LED naming is made consistent with other YunCore devices.
A note is added in DTS to ensure this information is always available
and prevent unwanted changes in the future.

Fixes: #10131 "YunCore AX820: GPIO LED not correct"

Reviewed-by: Sander Vanheule <sander@svanheule.net>
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
2022-07-01 20:13:46 +02:00
..
base-files/etc ramips: remove model name from LED labels 2020-10-02 14:51:57 +02:00
dts ramips: improve YunCore AX820 LEDs 2022-07-01 20:13:46 +02:00
files/drivers ramips: ethernet: ralink: add led_source dts-binding 2022-05-01 13:40:13 +09:00
image ramips: add support for ASUS RP-AC87 2022-06-29 00:57:56 +02:00
mt76x8 generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-24 17:10:24 +02:00
mt7620 kernel: cut broken SPI_NOR 4K eraseblock LIMIT patch 2022-06-29 12:34:49 +02:00
mt7621 ramips: add support for ASUS RP-AC87 2022-06-29 00:57:56 +02:00
patches-5.10 kernel: bump 5.10 to 5.10.125 2022-06-27 00:57:16 +02:00
patches-5.15 kernel: bump 5.15 to 5.15.47 2022-06-27 00:57:16 +02:00
rt288x generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-24 17:10:24 +02:00
rt305x kernel: cut broken SPI_NOR 4K eraseblock LIMIT patch 2022-06-29 12:34:49 +02:00
rt3883 kernel: cut broken SPI_NOR 4K eraseblock LIMIT patch 2022-06-29 12:34:49 +02:00
Makefile ramips: add linux 5.15 support for mt7621 2022-03-27 21:36:40 +02:00
modules.mk ramips: rename mtk-hsdma to hsdma-mt7621 2021-03-04 23:43:02 -10:00