xref: /openbmc/linux/drivers/leds/flash/Kconfig (revision 375cccc6)
1# SPDX-License-Identifier: GPL-2.0
2
3if LEDS_CLASS_FLASH
4
5config LEDS_AAT1290
6	tristate "LED support for the AAT1290"
7	depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
8	depends on GPIOLIB || COMPILE_TEST
9	depends on OF
10	depends on PINCTRL
11	help
12	  This option enables support for the LEDs on the AAT1290.
13
14config LEDS_AS3645A
15	tristate "AS3645A and LM3555 LED flash controllers support"
16	depends on I2C
17	depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
18	help
19	  Enable LED flash class support for AS3645A LED flash
20	  controller. V4L2 flash API is provided as well if
21	  CONFIG_V4L2_FLASH_API is enabled.
22
23config LEDS_KTD2692
24	tristate "LED support for Kinetic KTD2692 flash LED controller"
25	depends on OF
26	depends on GPIOLIB || COMPILE_TEST
27	help
28	  This option enables support for Kinetic KTD2692 LED flash connected
29	  through ExpressWire interface.
30
31	  Say Y to enable this driver.
32
33config LEDS_LM3601X
34	tristate "LED support for LM3601x Chips"
35	depends on LEDS_CLASS && I2C
36	select REGMAP_I2C
37	help
38	  This option enables support for the TI LM3601x family
39	  of flash, torch and indicator classes.
40
41config LEDS_MAX77693
42	tristate "LED support for MAX77693 Flash"
43	depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
44	depends on MFD_MAX77693
45	depends on OF
46	help
47	  This option enables support for the flash part of the MAX77693
48	  multifunction device. It has build in control for two leds in flash
49	  and torch mode.
50
51config 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
64config LEDS_MT6370_FLASH
65	tristate "Flash LED Support for MediaTek MT6370 PMIC"
66	depends on LEDS_CLASS
67	depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
68	depends on MFD_MT6370
69	help
70	  Support 2 channels and torch/strobe mode.
71	  Say Y here to enable support for
72	  MT6370_FLASH_LED device.
73
74	  This driver can also be built as a module. If so, the module
75	  will be called "leds-mt6370-flash".
76
77config LEDS_QCOM_FLASH
78	tristate "LED support for flash module inside Qualcomm Technologies, Inc. PMIC"
79	depends on MFD_SPMI_PMIC || COMPILE_TEST
80	depends on LEDS_CLASS && OF
81	depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
82	select REGMAP
83	help
84	  This option enables support for the flash module found in Qualcomm
85	  Technologies, Inc. PMICs. The flash module can have 3 or 4 flash LED
86	  channels and each channel is programmable to support up to 1.5 A full
87	  scale current. It also supports connecting two channels' output together
88	  to supply one LED component to achieve current up to 2 A. In such case,
89	  the total LED current will be split symmetrically on each channel and
90	  they will be enabled/disabled at the same time.
91
92config LEDS_RT4505
93	tristate "LED support for RT4505 flashlight controller"
94	depends on I2C && OF
95	depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
96	select REGMAP_I2C
97	help
98	  This option enables support for the RT4505 flash LED controller.
99	  RT4505 includes torch and flash functions with programmable current.
100	  And it's commonly used to compensate the illuminance for the camera
101	  inside the mobile product like as phones or tablets.
102
103config LEDS_RT8515
104	tristate "LED support for Richtek RT8515 flash/torch LED"
105	depends on GPIOLIB
106	depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
107	help
108	  This option enables support for the Richtek RT8515 flash
109	  and torch LEDs found on some mobile phones.
110
111	  To compile this driver as a module, choose M here: the module
112	  will be called leds-rt8515.
113
114config LEDS_SGM3140
115	tristate "LED support for the SGM3140"
116	depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
117	help
118	  This option enables support for the SGM3140 500mA Buck/Boost Charge
119	  Pump LED Driver.
120
121endif # LEDS_CLASS_FLASH
122