Skip to content

Commit 7fec651

Browse files
Anjelique Melendezlag-linaro
authored andcommitted
leds: rgb: leds-qcom-lpg: Add support for PMK8550 PWM
Add support for pmk8550 compatible and lpg_data. Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20230407223849.17623-4-quic_amelende@quicinc.com
1 parent b00d2ed commit 7fec651

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,6 +1490,14 @@ static const struct lpg_data pm8350c_pwm_data = {
14901490
},
14911491
};
14921492

1493+
static const struct lpg_data pmk8550_pwm_data = {
1494+
.num_channels = 2,
1495+
.channels = (const struct lpg_channel_data[]) {
1496+
{ .base = 0xe800 },
1497+
{ .base = 0xe900 },
1498+
},
1499+
};
1500+
14931501
static const struct of_device_id lpg_of_table[] = {
14941502
{ .compatible = "qcom,pm8150b-lpg", .data = &pm8150b_lpg_data },
14951503
{ .compatible = "qcom,pm8150l-lpg", .data = &pm8150l_lpg_data },
@@ -1500,6 +1508,7 @@ static const struct of_device_id lpg_of_table[] = {
15001508
{ .compatible = "qcom,pmi8994-lpg", .data = &pmi8994_lpg_data },
15011509
{ .compatible = "qcom,pmi8998-lpg", .data = &pmi8998_lpg_data },
15021510
{ .compatible = "qcom,pmc8180c-lpg", .data = &pm8150l_lpg_data },
1511+
{ .compatible = "qcom,pmk8550-pwm", .data = &pmk8550_pwm_data },
15031512
{}
15041513
};
15051514
MODULE_DEVICE_TABLE(of, lpg_of_table);

0 commit comments

Comments
 (0)