You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
leds: Add mt6360 driver
Add MT6360 LED driver include 2-channel Flash LED with torch/strobe mode, 3-channel RGB LED support Register/Flash/Breath Mode, and 1-channel for moonlight LED. Signed-off-by: Gene Chen <gene_chen@richtek.com> Acked-by: Jacek Anaszewski <jacek.anaszewski@gmail.com> Signed-off-by: Pavel Machek <pavel@ucw.cz>
This commit is contained in:
@@ -48,6 +48,19 @@ config LEDS_MAX77693
|
||||
multifunction device. It has build in control for two leds in flash
|
||||
and torch mode.
|
||||
|
||||
config LEDS_MT6360
|
||||
tristate "LED Support for Mediatek MT6360 PMIC"
|
||||
depends on LEDS_CLASS && OF
|
||||
depends on LEDS_CLASS_FLASH || !LEDS_CLASS_FLASH
|
||||
depends on LEDS_CLASS_MULTICOLOR || !LEDS_CLASS_MULTICOLOR
|
||||
depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
|
||||
depends on MFD_MT6360
|
||||
help
|
||||
This option enables support for dual Flash LED drivers found on
|
||||
Mediatek MT6360 PMIC.
|
||||
Independent current sources supply for each flash LED support torch
|
||||
and strobe mode.
|
||||
|
||||
config LEDS_RT4505
|
||||
tristate "LED support for RT4505 flashlight controller"
|
||||
depends on I2C && OF
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
obj-$(CONFIG_LEDS_MT6360) += leds-mt6360.o
|
||||
obj-$(CONFIG_LEDS_AAT1290) += leds-aat1290.o
|
||||
obj-$(CONFIG_LEDS_AS3645A) += leds-as3645a.o
|
||||
obj-$(CONFIG_LEDS_KTD2692) += leds-ktd2692.o
|
||||
|
||||
910
drivers/leds/flash/leds-mt6360.c
Normal file
910
drivers/leds/flash/leds-mt6360.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user