This introduces a new LED driver that enables us to create a virtual LED level meter device that consists of multiple LED devices by different drivers. Previously I developed the level meter feature for leds-gpio ("leds: gpio: support multi-level brightness") [1]. Then I got a feedback from Bjorn Andersson and made more generic new driver. This driver is also inspired by led-backlight driver patchset [2] and actually requires devm_of_led_get() function provided by the patchset. [1] https://lore.kernel.org/linux-leds/1570203299-4270-1-git-send-email-akinobu.mita@xxxxxxxxx/ [2] https://lore.kernel.org/linux-leds/20191009085127.22843-1-jjhiblot@xxxxxx/ Akinobu Mita (2): leds: add LED level meter driver leds: meter: add leds-meter binding .../devicetree/bindings/leds/leds-meter.yaml | 42 +++++++ drivers/leds/Kconfig | 10 ++ drivers/leds/Makefile | 1 + drivers/leds/leds-meter.c | 134 +++++++++++++++++++++ 4 files changed, 187 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-meter.yaml create mode 100644 drivers/leds/leds-meter.c Cc: Rob Herring <robh+dt@xxxxxxxxxx> Cc: Mark Rutland <mark.rutland@xxxxxxx> Cc: Bjorn Andersson <bjorn@xxxxxxx> Cc: Tomi Valkeinen <tomi.valkeinen@xxxxxx> Cc: Jean-Jacques Hiblot <jjhiblot@xxxxxx> Cc: Jacek Anaszewski <jacek.anaszewski@xxxxxxxxx> Cc: Pavel Machek <pavel@xxxxxx> Cc: Dan Murphy <dmurphy@xxxxxx> -- 2.7.4