Skip to content

Commit 96c59c8

Browse files
Satya Priyapavelmachek
authored andcommitted
leds: Add pm8350c support to Qualcomm LPG driver
Add pm8350c compatible and lpg_data to the driver. Signed-off-by: Satya Priya <quic_c_skakit@quicinc.com> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> Reviewed-by: Stephen Boyd <swboyd@chromium.org> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Tested-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Pavel Machek <pavel@ucw.cz>
1 parent da19d10 commit 96c59c8

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,9 +1378,22 @@ static const struct lpg_data pm8150l_lpg_data = {
13781378
},
13791379
};
13801380

1381+
static const struct lpg_data pm8350c_pwm_data = {
1382+
.triled_base = 0xef00,
1383+
1384+
.num_channels = 4,
1385+
.channels = (const struct lpg_channel_data[]) {
1386+
{ .base = 0xe800, .triled_mask = BIT(7) },
1387+
{ .base = 0xe900, .triled_mask = BIT(6) },
1388+
{ .base = 0xea00, .triled_mask = BIT(5) },
1389+
{ .base = 0xeb00 },
1390+
},
1391+
};
1392+
13811393
static const struct of_device_id lpg_of_table[] = {
13821394
{ .compatible = "qcom,pm8150b-lpg", .data = &pm8150b_lpg_data },
13831395
{ .compatible = "qcom,pm8150l-lpg", .data = &pm8150l_lpg_data },
1396+
{ .compatible = "qcom,pm8350c-pwm", .data = &pm8350c_pwm_data },
13841397
{ .compatible = "qcom,pm8916-pwm", .data = &pm8916_pwm_data },
13851398
{ .compatible = "qcom,pm8941-lpg", .data = &pm8941_lpg_data },
13861399
{ .compatible = "qcom,pm8994-lpg", .data = &pm8994_lpg_data },

0 commit comments

Comments
 (0)