Hi Marek, Thank you for the patch set. You seem to touch here two areas that were being discussed throughout last months, but with no final effect so far: 1) hw trigger 2) multi color LED support Regarding 1) you can refer to the thread [0] for a reference. And we'd need more information on how this hardware trigger works, e.g. whether its blinking rate is configurable. Regarding 2) I think it would be best to consult Dan Murphy as he was working on this few weeks ago. Cc Dan. Best regards, Jacek Anaszewski On 3/21/19 7:21 PM, Marek Behún wrote:
This adds proper kernel support for the 8 RGB LEDs on the front panel of CZ.NIC's Turris 1.x router. The LEDs are controlled by a CPLD device which manages the whole router. This CPLD controls the LEDs with PWMs and exposes to CPU these functions via memory mapped registers: - enabling/disabling each RGB LED - for every LED (*) separately setting brightness for the R, G, and B color channel (and also reading this values) - setting/getting current global intensity level (there are 8 levels and the level can also be changed by pressing a button on the back side of the router) - setting/getting the intensity of each global intensity level - enabling/disabling HW trigger for each LED - changing WIFI LED to STATUS LED and back (in the sense of HW trigger) (*) The colors of the LAN LEDs, LAN1-LAN5, are controlled together. These LEDs cannot have different colors.
[...] [0] https://lkml.org/lkml/2019/2/16/113