leds: qcom-lpg: Add support for PMI632 LPG
authorLuca Weiss <luca@z3ntu.xyz>
Tue, 18 Apr 2023 16:43:20 +0000 (18:43 +0200)
committerLee Jones <lee@kernel.org>
Thu, 25 May 2023 11:16:07 +0000 (12:16 +0100)
commitd11a79dd047e18dd0b76bc9abebb8470858856d6
tree813f3dfc0bd4ae41405e69980fea000b55e35fbe
parent8e25e2a0af551e084c596c03999f7e8ef7205778
leds: qcom-lpg: Add support for PMI632 LPG

The PMI632 PMIC contains 5 PWM channels, 3 of which can be used for
LEDs.

For the LED pattern it doesn't have LUT like other PMICs but uses SDAM
instead. This is not currently implemented in the driver but since LPG
works fine without it, add support for the PMIC now.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Acked-by: Pavel Machek <pavel@ucw.cz>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230414-pmi632-v2-4-98bafa909c36@z3ntu.xyz
drivers/leds/rgb/leds-qcom-lpg.c