xref: /openbmc/linux/drivers/leds/flash/Kconfig (revision 293fee7f)
1e1c6edcbSLinus Walleij# SPDX-License-Identifier: GPL-2.0
2e1c6edcbSLinus Walleij
3e1c6edcbSLinus Walleijif LEDS_CLASS_FLASH
4e1c6edcbSLinus Walleij
5*293fee7fSLinus Walleijconfig LEDS_AAT1290
6*293fee7fSLinus Walleij	tristate "LED support for the AAT1290"
7*293fee7fSLinus Walleij	depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
8*293fee7fSLinus Walleij	depends on GPIOLIB || COMPILE_TEST
9*293fee7fSLinus Walleij	depends on OF
10*293fee7fSLinus Walleij	depends on PINCTRL
11*293fee7fSLinus Walleij	help
12*293fee7fSLinus Walleij	  This option enables support for the LEDs on the AAT1290.
13*293fee7fSLinus Walleij
14d9dfac54SChiYuan Huangconfig LEDS_RT4505
15d9dfac54SChiYuan Huang	tristate "LED support for RT4505 flashlight controller"
16d9dfac54SChiYuan Huang	depends on I2C && OF
17d9dfac54SChiYuan Huang	depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
18d9dfac54SChiYuan Huang	select REGMAP_I2C
19d9dfac54SChiYuan Huang	help
20d9dfac54SChiYuan Huang	  This option enables support for the RT4505 flash LED controller.
21d9dfac54SChiYuan Huang	  RT4505 includes torch and flash functions with programmable current.
22d9dfac54SChiYuan Huang	  And it's commonly used to compensate the illuminance for the camera
23d9dfac54SChiYuan Huang	  inside the mobile product like as phones or tablets.
24d9dfac54SChiYuan Huang
25e1c6edcbSLinus Walleijconfig LEDS_RT8515
26e1c6edcbSLinus Walleij	tristate "LED support for Richtek RT8515 flash/torch LED"
27e1c6edcbSLinus Walleij	depends on GPIOLIB
28dbeb02a0SArnd Bergmann	depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
29e1c6edcbSLinus Walleij	help
30e1c6edcbSLinus Walleij	  This option enables support for the Richtek RT8515 flash
31e1c6edcbSLinus Walleij	  and torch LEDs found on some mobile phones.
32e1c6edcbSLinus Walleij
33e1c6edcbSLinus Walleij	  To compile this driver as a module, choose M here: the module
34e1c6edcbSLinus Walleij	  will be called leds-rt8515.
35e1c6edcbSLinus Walleij
36e1c6edcbSLinus Walleijendif # LEDS_CLASS_FLASH
37