Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

leds: qcom-lpg: Add support for PMI8950 PWM

The PMI8950 PMIC contains 1 PWM channel

Signed-off-by: Gianluca Boiano <morf3089@gmail.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20240402-pmi8950-pwm-support-v1-1-1a66899eeeb3@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Gianluca Boiano and committed by
Lee Jones
2573c25e 4bea1ca9

+8
+8
drivers/leds/rgb/leds-qcom-lpg.c
··· 1693 1693 }, 1694 1694 }; 1695 1695 1696 + static const struct lpg_data pmi8950_pwm_data = { 1697 + .num_channels = 1, 1698 + .channels = (const struct lpg_channel_data[]) { 1699 + { .base = 0xb000 }, 1700 + }, 1701 + }; 1702 + 1696 1703 static const struct lpg_data pm8994_lpg_data = { 1697 1704 .lut_base = 0xb000, 1698 1705 .lut_size = 64, ··· 1826 1819 { .compatible = "qcom,pm8941-lpg", .data = &pm8941_lpg_data }, 1827 1820 { .compatible = "qcom,pm8994-lpg", .data = &pm8994_lpg_data }, 1828 1821 { .compatible = "qcom,pmi632-lpg", .data = &pmi632_lpg_data }, 1822 + { .compatible = "qcom,pmi8950-pwm", .data = &pmi8950_pwm_data }, 1829 1823 { .compatible = "qcom,pmi8994-lpg", .data = &pmi8994_lpg_data }, 1830 1824 { .compatible = "qcom,pmi8998-lpg", .data = &pmi8998_lpg_data }, 1831 1825 { .compatible = "qcom,pmc8180c-lpg", .data = &pm8150l_lpg_data },