leds: flash: Add driver to support flash LED module in QCOM PMICs
authorFenglin Wu <quic_fenglinw@quicinc.com>
Fri, 3 Mar 2023 09:50:22 +0000 (17:50 +0800)
committerLee Jones <lee@kernel.org>
Thu, 16 Mar 2023 15:08:45 +0000 (15:08 +0000)
commit96a2e242a5dcb677fe3063be38bda335c17849d3
tree7c6375872aaf77df0754c030efe1cb3bd82c1cd9
parent8f0adae1cb1a3cf83e38dd435831baa38dd84b4c
leds: flash: Add driver to support flash LED module in QCOM PMICs

Add initial driver to support flash LED module found in Qualcomm
Technologies, Inc. PMICs. The flash module can have 3 or 4 channels
and each channel can be controlled indepedently and support full scale
current up to 1.5 A. It also supports connecting two channels together
to supply one LED component with full scale current up to 2 A. In that
case, the current will be split on each channel symmetrically and the
channels will be enabled and disabled at the same time.

Signed-off-by: Fenglin Wu <quic_fenglinw@quicinc.com>
Tested-by: Luca Weiss <luca.weiss@fairphone.com> # sm7225-fairphone-fp4 + pm6150l
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230303095023.538917-2-quic_fenglinw@quicinc.com
drivers/leds/flash/Kconfig
drivers/leds/flash/Makefile
drivers/leds/flash/leds-qcom-flash.c [new file with mode: 0644]