leds: add support for QTI flash LED driver

QTI flash LED driver supports flash LED module on PM8350C. It is used
for illumination by camera sensor and also for torch application.

Change-Id: Iaa4754591e37db48c0ab360cdf4660d50c908337
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
This commit is contained in:
Shyam Kumar Thella 2019-11-19 22:02:13 +05:30 committed by David Collins
parent ec8afe7e56
commit a0506cb3d4
3 changed files with 1136 additions and 0 deletions

View File

@ -552,6 +552,21 @@ config LEDS_PWM
help
This option enables support for pwm driven LEDs
config LEDS_QTI_FLASH
tristate "Support for QTI Flash LEDs"
depends on LEDS_CLASS_FLASH
depends on MFD_SPMI_PMIC
select LEDS_TRIGGERS
help
This driver supports flash LED peripheral that is present on
some Qualcomm Technologies, Inc. PMICs (e.g. PM8350C). It can
configure the flash LED target current for several independent
channels. It also supports various over current and over
temperature mitigation features.
To compile this driver as a module, choose M here: the
module will be called leds-qti-flash.
config LEDS_REGULATOR
tristate "REGULATOR driven LED support"
depends on LEDS_CLASS

View File

@ -73,6 +73,7 @@ obj-$(CONFIG_LEDS_PCA963X) += leds-pca963x.o
obj-$(CONFIG_LEDS_PM8058) += leds-pm8058.o
obj-$(CONFIG_LEDS_POWERNV) += leds-powernv.o
obj-$(CONFIG_LEDS_PWM) += leds-pwm.o
obj-$(CONFIG_LEDS_QTI_FLASH) += leds-qti-flash.o
obj-$(CONFIG_LEDS_REGULATOR) += leds-regulator.o
obj-$(CONFIG_LEDS_S3C24XX) += leds-s3c24xx.o
obj-$(CONFIG_LEDS_SC27XX_BLTC) += leds-sc27xx-bltc.o

File diff suppressed because it is too large Load Diff