Skip to content

Commit 679f865

Browse files
Gene Chenpavelmachek
authored andcommitted
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 <[email protected]> Acked-by: Jacek Anaszewski <[email protected]> Signed-off-by: Pavel Machek <[email protected]>
1 parent e05cab3 commit 679f865

File tree

3 files changed

+924
-0
lines changed

3 files changed

+924
-0
lines changed

drivers/leds/flash/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,19 @@ config LEDS_MAX77693
4848
multifunction device. It has build in control for two leds in flash
4949
and torch mode.
5050

51+
config LEDS_MT6360
52+
tristate "LED Support for Mediatek MT6360 PMIC"
53+
depends on LEDS_CLASS && OF
54+
depends on LEDS_CLASS_FLASH || !LEDS_CLASS_FLASH
55+
depends on LEDS_CLASS_MULTICOLOR || !LEDS_CLASS_MULTICOLOR
56+
depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
57+
depends on MFD_MT6360
58+
help
59+
This option enables support for dual Flash LED drivers found on
60+
Mediatek MT6360 PMIC.
61+
Independent current sources supply for each flash LED support torch
62+
and strobe mode.
63+
5164
config LEDS_RT4505
5265
tristate "LED support for RT4505 flashlight controller"
5366
depends on I2C && OF

drivers/leds/flash/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0
22

3+
obj-$(CONFIG_LEDS_MT6360) += leds-mt6360.o
34
obj-$(CONFIG_LEDS_AAT1290) += leds-aat1290.o
45
obj-$(CONFIG_LEDS_AS3645A) += leds-as3645a.o
56
obj-$(CONFIG_LEDS_KTD2692) += leds-ktd2692.o

0 commit comments

Comments
 (0)