aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds/Kconfig
diff options
context:
space:
mode:
authorLuca Weiss <luca@z3ntu.xyz>2020-04-21 21:13:54 +0200
committerPavel Machek <pavel@ucw.cz>2020-04-27 11:44:51 +0200
commitcef8ec8cbd21ac3dbb4e22adc752c8c183efa4a8 (patch)
tree65860ba01212354f7143a482120c2ca2240ea062 /drivers/leds/Kconfig
parentdt-bindings: leds: Add binding for sgm3140 (diff)
downloadlinux-dev-cef8ec8cbd21ac3dbb4e22adc752c8c183efa4a8.tar.xz
linux-dev-cef8ec8cbd21ac3dbb4e22adc752c8c183efa4a8.zip
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>
Diffstat (limited to 'drivers/leds/Kconfig')
-rw-r--r--drivers/leds/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig
index a20149e9581f..9cdc4cfc5d11 100644
--- a/drivers/leds/Kconfig
+++ b/drivers/leds/Kconfig
@@ -868,6 +868,14 @@ config LEDS_IP30
To compile this driver as a module, choose M here: the module
will be called leds-ip30.
+config LEDS_SGM3140
+ tristate "LED support for the SGM3140"
+ depends on LEDS_CLASS_FLASH
+ depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
+ help
+ This option enables support for the SGM3140 500mA Buck/Boost Charge
+ Pump LED Driver.
+
comment "LED Triggers"
source "drivers/leds/trigger/Kconfig"