Skip to content

Commit c581f17

Browse files
André Apitzschlag-linaro
authored andcommitted
leds: sy7802: Add support for Silergy SY7802 flash LED controller
The SY7802 is a current-regulated charge pump which can regulate two current levels for Flash and Torch modes. It is a high-current synchronous boost converter with 2-channel high side current sources. Each channel is able to deliver 900mA current. Acked-by: Lee Jones <lee@kernel.org> Signed-off-by: André Apitzsch <git@apitzsch.eu> Link: https://lore.kernel.org/r/20240624-sy7802-v5-2-7abc9d96bfa6@apitzsch.eu Signed-off-by: Lee Jones <lee@kernel.org>
1 parent a5aff5d commit c581f17

3 files changed

Lines changed: 551 additions & 0 deletions

File tree

drivers/leds/flash/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,15 @@ config LEDS_SGM3140
121121
This option enables support for the SGM3140 500mA Buck/Boost Charge
122122
Pump LED Driver.
123123

124+
config LEDS_SY7802
125+
tristate "LED support for the Silergy SY7802"
126+
depends on I2C && OF
127+
depends on GPIOLIB
128+
select REGMAP_I2C
129+
help
130+
This option enables support for the SY7802 flash LED controller.
131+
SY7802 includes torch and flash functions with programmable current.
132+
133+
This driver can be built as a module, it will be called "leds-sy7802".
134+
124135
endif # LEDS_CLASS_FLASH

drivers/leds/flash/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ obj-$(CONFIG_LEDS_QCOM_FLASH) += leds-qcom-flash.o
1111
obj-$(CONFIG_LEDS_RT4505) += leds-rt4505.o
1212
obj-$(CONFIG_LEDS_RT8515) += leds-rt8515.o
1313
obj-$(CONFIG_LEDS_SGM3140) += leds-sgm3140.o
14+
obj-$(CONFIG_LEDS_SY7802) += leds-sy7802.o

0 commit comments

Comments
 (0)