Skip to content

Commit 2573c25

Browse files
M0Rf30lag-linaro
authored andcommitted
leds: qcom-lpg: Add support for PMI8950 PWM
The PMI8950 PMIC contains 1 PWM channel Signed-off-by: Gianluca Boiano <[email protected]> Reviewed-by: Konrad Dybcio <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 4bea1ca commit 2573c25

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/leds/rgb/leds-qcom-lpg.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,6 +1693,13 @@ static const struct lpg_data pm8941_lpg_data = {
16931693
},
16941694
};
16951695

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+
16961703
static const struct lpg_data pm8994_lpg_data = {
16971704
.lut_base = 0xb000,
16981705
.lut_size = 64,
@@ -1819,6 +1826,7 @@ static const struct of_device_id lpg_of_table[] = {
18191826
{ .compatible = "qcom,pm8941-lpg", .data = &pm8941_lpg_data },
18201827
{ .compatible = "qcom,pm8994-lpg", .data = &pm8994_lpg_data },
18211828
{ .compatible = "qcom,pmi632-lpg", .data = &pmi632_lpg_data },
1829+
{ .compatible = "qcom,pmi8950-pwm", .data = &pmi8950_pwm_data },
18221830
{ .compatible = "qcom,pmi8994-lpg", .data = &pmi8994_lpg_data },
18231831
{ .compatible = "qcom,pmi8998-lpg", .data = &pmi8998_lpg_data },
18241832
{ .compatible = "qcom,pmc8180c-lpg", .data = &pm8150l_lpg_data },

0 commit comments

Comments
 (0)