leds: add sgm3140 driver
authorLuca Weiss <luca@z3ntu.xyz>
Tue, 21 Apr 2020 19:13:54 +0000 (21:13 +0200)
committerPavel Machek <pavel@ucw.cz>
Mon, 27 Apr 2020 09:44:51 +0000 (11:44 +0200)
commitcef8ec8cbd21ac3dbb4e22adc752c8c183efa4a8
tree65860ba01212354f7143a482120c2ca2240ea062
parentea4407fa905aa5334a9176da21f3395bdcbe7bcd
leds: add sgm3140 driver

Add a driver for the SGMICRO SGM3140 Buck/Boost Charge Pump LED driver.

This device is controlled by two GPIO pins, one for enabling and the
second one for switching between torch and flash mode.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/Kconfig
drivers/leds/Makefile
drivers/leds/leds-sgm3140.c [new file with mode: 0644]