summaryrefslogtreecommitdiff
path: root/drivers/leds/Kconfig
diff options
context:
space:
mode:
authorLuca Weiss <luca@z3ntu.xyz>2020-04-21 22:13:54 +0300
committerPavel Machek <pavel@ucw.cz>2020-04-27 12:44:51 +0300
commitcef8ec8cbd21ac3dbb4e22adc752c8c183efa4a8 (patch)
tree65860ba01212354f7143a482120c2ca2240ea062 /drivers/leds/Kconfig
parentea4407fa905aa5334a9176da21f3395bdcbe7bcd (diff)
downloadlinux-cef8ec8cbd21ac3dbb4e22adc752c8c183efa4a8.tar.xz
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"