leds: qcom-lpg: Add PM660L
This commit is contained in:
parent
9a151a1e8d
commit
86f859fc4b
1 changed files with 20 additions and 0 deletions
|
|
@ -1139,6 +1139,25 @@ static int lpg_remove(struct platform_device *pdev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static const struct lpg_data pm660l_lpg_data = {
|
||||
.lut_base = 0xb000,
|
||||
.lut_size = 0x100,
|
||||
|
||||
.triled_base = 0xd000,
|
||||
|
||||
// UHH?
|
||||
// Subtype is 0x11, LPG_LITE, uses this downstream:
|
||||
.pwm_9bit_mask = BIT(4),
|
||||
|
||||
.num_channels = 4,
|
||||
.channels = (struct lpg_channel_data[]) {
|
||||
{ .base = 0xb100, .triled_mask = BIT(5) },
|
||||
{ .base = 0xb200, .triled_mask = BIT(6) },
|
||||
{ .base = 0xb300, .triled_mask = BIT(7) },
|
||||
{ .base = 0xb400 },
|
||||
},
|
||||
};
|
||||
|
||||
static const struct lpg_data pm8916_pwm_data = {
|
||||
.pwm_9bit_mask = BIT(2),
|
||||
|
||||
|
|
@ -1261,6 +1280,7 @@ static const struct lpg_data pm8150l_lpg_data = {
|
|||
};
|
||||
|
||||
static const struct of_device_id lpg_of_table[] = {
|
||||
{ .compatible = "qcom,pm660l-lpg", .data = &pm660l_lpg_data },
|
||||
{ .compatible = "qcom,pm8150b-lpg", .data = &pm8150b_lpg_data },
|
||||
{ .compatible = "qcom,pm8150l-lpg", .data = &pm8150l_lpg_data },
|
||||
{ .compatible = "qcom,pm8916-pwm", .data = &pm8916_pwm_data },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue