xref: /openbmc/linux/drivers/leds/flash/Kconfig (revision 9a7c066f)
1e1c6edcbSLinus Walleij# SPDX-License-Identifier: GPL-2.0
2e1c6edcbSLinus Walleij
3e1c6edcbSLinus Walleijif LEDS_CLASS_FLASH
4e1c6edcbSLinus Walleij
5293fee7fSLinus Walleijconfig LEDS_AAT1290
6293fee7fSLinus Walleij	tristate "LED support for the AAT1290"
7293fee7fSLinus Walleij	depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
8293fee7fSLinus Walleij	depends on GPIOLIB || COMPILE_TEST
9293fee7fSLinus Walleij	depends on OF
10293fee7fSLinus Walleij	depends on PINCTRL
11293fee7fSLinus Walleij	help
12293fee7fSLinus Walleij	  This option enables support for the LEDs on the AAT1290.
13293fee7fSLinus Walleij
14f5d69f62SLinus Walleijconfig LEDS_AS3645A
15f5d69f62SLinus Walleij	tristate "AS3645A and LM3555 LED flash controllers support"
16f5d69f62SLinus Walleij	depends on I2C
17f5d69f62SLinus Walleij	depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
18f5d69f62SLinus Walleij	help
19f5d69f62SLinus Walleij	  Enable LED flash class support for AS3645A LED flash
20f5d69f62SLinus Walleij	  controller. V4L2 flash API is provided as well if
21f5d69f62SLinus Walleij	  CONFIG_V4L2_FLASH_API is enabled.
22f5d69f62SLinus Walleij
23eb5a4422SLinus Walleijconfig LEDS_MAX77693
24eb5a4422SLinus Walleij	tristate "LED support for MAX77693 Flash"
25eb5a4422SLinus Walleij	depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
26eb5a4422SLinus Walleij	depends on MFD_MAX77693
27eb5a4422SLinus Walleij	depends on OF
28eb5a4422SLinus Walleij	help
29eb5a4422SLinus Walleij	  This option enables support for the flash part of the MAX77693
30eb5a4422SLinus Walleij	  multifunction device. It has build in control for two leds in flash
31eb5a4422SLinus Walleij	  and torch mode.
32eb5a4422SLinus Walleij
33d9dfac54SChiYuan Huangconfig LEDS_RT4505
34d9dfac54SChiYuan Huang	tristate "LED support for RT4505 flashlight controller"
35d9dfac54SChiYuan Huang	depends on I2C && OF
36d9dfac54SChiYuan Huang	depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
37d9dfac54SChiYuan Huang	select REGMAP_I2C
38d9dfac54SChiYuan Huang	help
39d9dfac54SChiYuan Huang	  This option enables support for the RT4505 flash LED controller.
40d9dfac54SChiYuan Huang	  RT4505 includes torch and flash functions with programmable current.
41d9dfac54SChiYuan Huang	  And it's commonly used to compensate the illuminance for the camera
42d9dfac54SChiYuan Huang	  inside the mobile product like as phones or tablets.
43d9dfac54SChiYuan Huang
44e1c6edcbSLinus Walleijconfig LEDS_RT8515
45e1c6edcbSLinus Walleij	tristate "LED support for Richtek RT8515 flash/torch LED"
46e1c6edcbSLinus Walleij	depends on GPIOLIB
47dbeb02a0SArnd Bergmann	depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
48e1c6edcbSLinus Walleij	help
49e1c6edcbSLinus Walleij	  This option enables support for the Richtek RT8515 flash
50e1c6edcbSLinus Walleij	  and torch LEDs found on some mobile phones.
51e1c6edcbSLinus Walleij
52e1c6edcbSLinus Walleij	  To compile this driver as a module, choose M here: the module
53e1c6edcbSLinus Walleij	  will be called leds-rt8515.
54e1c6edcbSLinus Walleij
55*9a7c066fSLinus Walleijconfig LEDS_SGM3140
56*9a7c066fSLinus Walleij	tristate "LED support for the SGM3140"
57*9a7c066fSLinus Walleij	depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
58*9a7c066fSLinus Walleij	help
59*9a7c066fSLinus Walleij	  This option enables support for the SGM3140 500mA Buck/Boost Charge
60*9a7c066fSLinus Walleij	  Pump LED Driver.
61*9a7c066fSLinus Walleij
62e1c6edcbSLinus Walleijendif # LEDS_CLASS_FLASH
63