Hi, this adds support for the LED controller of the 8 RGB LEDs on the front side of CZ.NIC's Turris 1.x router. This is the first version, please review, especially my solution of the HW trigger problem. At first I wanted to create a classic led-trigger for the HW triggers for these LEDs, but because of the RGB model I went with the solution where there are three separate LEDs (R, G and B) for each RGB LED, and the HW trigger controls the whole RGB group, so setting HW trigger on one channel should set it on all three channels. Another solution would be to create 8 LEDs, where their color could be changed via a special attribute file named "color", and a classic led-trigger could be used for implementing the HW trigger. This solution though would not allow to use kernel SW triggers for the each color channel separately. Marek Marek Behún (3): leds: Add support for Turris 1.x LEDs dt-bindings: leds: Document Turris 1.x LED controller binding leds: turris: Add sysfs documentation .../ABI/testing/sysfs-class-leds-turris | 21 ++ .../devicetree/bindings/leds/leds-turris.txt | 12 + drivers/leds/Kconfig | 12 + drivers/leds/Makefile | 1 + drivers/leds/leds-turris.c | 346 ++++++++++++++++++ 5 files changed, 392 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-class-leds-turris create mode 100644 Documentation/devicetree/bindings/leds/leds-turris.txt create mode 100644 drivers/leds/leds-turris.c -- 2.19.2