Re: [PATCH v2 2/2] leds: Add support for Turris 1.x LEDs

From: Marek Behún
Date: Tue Jul 05 2022 - 13:31:08 EST


On Tue, 5 Jul 2022 17:59:29 +0200
Pali Rohár <pali@xxxxxxxxxx> wrote:

> This adds support for the RGB LEDs found on the front panel of the
> Turris 1.x routers. There are 8 RGB LEDs that are controlled by
> CZ.NIC CPLD firmware running on Lattice FPGA.
>
> CPLD firmware provides HW triggering mode for all LEDs except WiFi LED
> which is automatically enabled after power on reset. LAN LEDs share HW
> registers for RGB colors settings, so it is not possible to set different
> colors for individual LAN LEDs.
>
> CZ.NIC CPLD firmware is open source and available at:
> https://gitlab.nic.cz/turris/hw/turris_cpld/-/blob/master/CZ_NIC_Router_CPLD.v
>
> This driver uses the multicolor LED framework and HW led triggers.
>
> Signed-off-by: Pali Rohár <pali@xxxxxxxxxx>

Reviewed-by: Marek Behún <kabel@xxxxxxxxxx>