124e2d05dSBjorn Andersson# SPDX-License-Identifier: GPL-2.0 224e2d05dSBjorn Andersson 324e2d05dSBjorn Anderssonif LEDS_CLASS_MULTICOLOR 424e2d05dSBjorn Andersson 5*37d0849eSJean-Jacques Hiblotconfig LEDS_GROUP_MULTICOLOR 6*37d0849eSJean-Jacques Hiblot tristate "LEDs group multi-color support" 7*37d0849eSJean-Jacques Hiblot depends on OF || COMPILE_TEST 8*37d0849eSJean-Jacques Hiblot help 9*37d0849eSJean-Jacques Hiblot This option enables support for monochrome LEDs that are grouped 10*37d0849eSJean-Jacques Hiblot into multicolor LEDs which is useful in the case where LEDs of 11*37d0849eSJean-Jacques Hiblot different colors are physically grouped in a single multi-color LED 12*37d0849eSJean-Jacques Hiblot and driven by a controller that doesn't have multi-color support. 13*37d0849eSJean-Jacques Hiblot 14*37d0849eSJean-Jacques Hiblot To compile this driver as a module, choose M here: the module 15*37d0849eSJean-Jacques Hiblot will be called leds-group-multicolor. 16*37d0849eSJean-Jacques Hiblot 17818d03b3SSven Schwermerconfig LEDS_PWM_MULTICOLOR 18818d03b3SSven Schwermer tristate "PWM driven multi-color LED Support" 19818d03b3SSven Schwermer depends on PWM 20818d03b3SSven Schwermer help 21818d03b3SSven Schwermer This option enables support for PWM driven monochrome LEDs that are 22818d03b3SSven Schwermer grouped into multicolor LEDs. 23818d03b3SSven Schwermer 24818d03b3SSven Schwermer To compile this driver as a module, choose M here: the module 25818d03b3SSven Schwermer will be called leds-pwm-multicolor. 26818d03b3SSven Schwermer 2724e2d05dSBjorn Anderssonconfig LEDS_QCOM_LPG 2824e2d05dSBjorn Andersson tristate "LED support for Qualcomm LPG" 2924e2d05dSBjorn Andersson depends on OF 301d6a1b5eSJohan Hovold depends on PWM 3124e2d05dSBjorn Andersson depends on SPMI 3224e2d05dSBjorn Andersson help 3324e2d05dSBjorn Andersson This option enables support for the Light Pulse Generator found in a 3424e2d05dSBjorn Andersson wide variety of Qualcomm PMICs. The LPG consists of a number of PWM 3524e2d05dSBjorn Andersson channels and typically a shared pattern lookup table and a current 3624e2d05dSBjorn Andersson sink, intended to drive RGB LEDs. Each channel can either be used as 3724e2d05dSBjorn Andersson a LED, grouped to represent a RGB LED or exposed as PWM channels. 3824e2d05dSBjorn Andersson 3924e2d05dSBjorn Andersson If compiled as a module, the module will be named leds-qcom-lpg. 4024e2d05dSBjorn Andersson 415c38376eSChiYuan Huangconfig LEDS_MT6370_RGB 425c38376eSChiYuan Huang tristate "LED Support for MediaTek MT6370 PMIC" 435c38376eSChiYuan Huang depends on MFD_MT6370 44560f2eb7SLukas Bulwahn select LINEAR_RANGES 455c38376eSChiYuan Huang help 465c38376eSChiYuan Huang Say Y here to enable support for MT6370_RGB LED device. 475c38376eSChiYuan Huang In MT6370, there are four channel current-sink LED drivers that 485c38376eSChiYuan Huang support hardware pattern for constant current, PWM, and breath mode. 495c38376eSChiYuan Huang Isink4 channel can also be used as a CHG_VIN power good indicator. 505c38376eSChiYuan Huang 515c38376eSChiYuan Huang This driver can also be built as a module. If so, the module 525c38376eSChiYuan Huang will be called "leds-mt6370-rgb". 535c38376eSChiYuan Huang 5424e2d05dSBjorn Anderssonendif # LEDS_CLASS_MULTICOLOR 55