d9dfac5419
Add support for RT4505 flash LED controller. It can support up to 1.5A flash current with hardware timeout and low input voltage protection. Signed-off-by: ChiYuan Huang <cy_huang@richtek.com> Acked-by: Jacek Anaszewski <jacek.anaszewski@gmail.com> Signed-off-by: Pavel Machek <pavel@ucw.cz>
28 lines
898 B
Plaintext
28 lines
898 B
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
if LEDS_CLASS_FLASH
|
|
|
|
config LEDS_RT4505
|
|
tristate "LED support for RT4505 flashlight controller"
|
|
depends on I2C && OF
|
|
depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
|
|
select REGMAP_I2C
|
|
help
|
|
This option enables support for the RT4505 flash LED controller.
|
|
RT4505 includes torch and flash functions with programmable current.
|
|
And it's commonly used to compensate the illuminance for the camera
|
|
inside the mobile product like as phones or tablets.
|
|
|
|
config LEDS_RT8515
|
|
tristate "LED support for Richtek RT8515 flash/torch LED"
|
|
depends on GPIOLIB
|
|
depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
|
|
help
|
|
This option enables support for the Richtek RT8515 flash
|
|
and torch LEDs found on some mobile phones.
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
will be called leds-rt8515.
|
|
|
|
endif # LEDS_CLASS_FLASH
|