xref: /openbmc/linux/drivers/leds/rgb/Kconfig (revision 5c38376e)
124e2d05dSBjorn Andersson# SPDX-License-Identifier: GPL-2.0
224e2d05dSBjorn Andersson
324e2d05dSBjorn Anderssonif LEDS_CLASS_MULTICOLOR
424e2d05dSBjorn Andersson
5818d03b3SSven Schwermerconfig LEDS_PWM_MULTICOLOR
6818d03b3SSven Schwermer	tristate "PWM driven multi-color LED Support"
7818d03b3SSven Schwermer	depends on PWM
8818d03b3SSven Schwermer	help
9818d03b3SSven Schwermer	  This option enables support for PWM driven monochrome LEDs that are
10818d03b3SSven Schwermer	  grouped into multicolor LEDs.
11818d03b3SSven Schwermer
12818d03b3SSven Schwermer	  To compile this driver as a module, choose M here: the module
13818d03b3SSven Schwermer	  will be called leds-pwm-multicolor.
14818d03b3SSven Schwermer
1524e2d05dSBjorn Anderssonconfig LEDS_QCOM_LPG
1624e2d05dSBjorn Andersson	tristate "LED support for Qualcomm LPG"
1724e2d05dSBjorn Andersson	depends on OF
181d6a1b5eSJohan Hovold	depends on PWM
1924e2d05dSBjorn Andersson	depends on SPMI
2024e2d05dSBjorn Andersson	help
2124e2d05dSBjorn Andersson	  This option enables support for the Light Pulse Generator found in a
2224e2d05dSBjorn Andersson	  wide variety of Qualcomm PMICs. The LPG consists of a number of PWM
2324e2d05dSBjorn Andersson	  channels and typically a shared pattern lookup table and a current
2424e2d05dSBjorn Andersson	  sink, intended to drive RGB LEDs. Each channel can either be used as
2524e2d05dSBjorn Andersson	  a LED, grouped to represent a RGB LED or exposed as PWM channels.
2624e2d05dSBjorn Andersson
2724e2d05dSBjorn Andersson	  If compiled as a module, the module will be named leds-qcom-lpg.
2824e2d05dSBjorn Andersson
29*5c38376eSChiYuan Huangconfig LEDS_MT6370_RGB
30*5c38376eSChiYuan Huang	tristate "LED Support for MediaTek MT6370 PMIC"
31*5c38376eSChiYuan Huang	depends on MFD_MT6370
32*5c38376eSChiYuan Huang	select LINEAR_RANGE
33*5c38376eSChiYuan Huang	help
34*5c38376eSChiYuan Huang	  Say Y here to enable support for MT6370_RGB LED device.
35*5c38376eSChiYuan Huang	  In MT6370, there are four channel current-sink LED drivers that
36*5c38376eSChiYuan Huang	  support hardware pattern for constant current, PWM, and breath mode.
37*5c38376eSChiYuan Huang	  Isink4 channel can also be used as a CHG_VIN power good indicator.
38*5c38376eSChiYuan Huang
39*5c38376eSChiYuan Huang	  This driver can also be built as a module. If so, the module
40*5c38376eSChiYuan Huang	  will be called "leds-mt6370-rgb".
41*5c38376eSChiYuan Huang
4224e2d05dSBjorn Anderssonendif # LEDS_CLASS_MULTICOLOR
43