summaryrefslogtreecommitdiffstats
path: root/drivers/leds/rgb/leds-qcom-lpg.c
diff options
context:
space:
mode:
authorAnjelique Melendez <quic_amelende@quicinc.com>2023-12-21 10:58:35 -0800
committerLee Jones <lee@kernel.org>2024-03-07 08:47:53 +0000
commit05338ba56c7f8731b18f36b6db178d3cb79fe64f (patch)
tree35a9f716c72fcfe2fb199c1e432f1a6b16adfca0 /drivers/leds/rgb/leds-qcom-lpg.c
parent6ab1f766a80a6f46c7196f588e867cef51f4f26a (diff)
downloadlinux-stable-05338ba56c7f8731b18f36b6db178d3cb79fe64f.tar.gz
linux-stable-05338ba56c7f8731b18f36b6db178d3cb79fe64f.tar.bz2
linux-stable-05338ba56c7f8731b18f36b6db178d3cb79fe64f.zip
leds: rgb: leds-qcom-lpg: Update PMI632 lpg_data to support PPG
Update the pmi632 lpg_data struct so that pmi632 devices use PPG for LUT pattern. Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com> Tested-by: Luca Weiss <luca.weiss@fairphone.com> Link: https://lore.kernel.org/r/20231221185838.28440-6-quic_amelende@quicinc.com Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/leds/rgb/leds-qcom-lpg.c')
-rw-r--r--drivers/leds/rgb/leds-qcom-lpg.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/leds/rgb/leds-qcom-lpg.c b/drivers/leds/rgb/leds-qcom-lpg.c
index 2bdcf17e5107..d1b82dfcbb99 100644
--- a/drivers/leds/rgb/leds-qcom-lpg.c
+++ b/drivers/leds/rgb/leds-qcom-lpg.c
@@ -1627,11 +1627,13 @@ static const struct lpg_data pm8994_lpg_data = {
static const struct lpg_data pmi632_lpg_data = {
.triled_base = 0xd000,
+ .lut_size = 64,
+
.num_channels = 5,
.channels = (const struct lpg_channel_data[]) {
- { .base = 0xb300, .triled_mask = BIT(7) },
- { .base = 0xb400, .triled_mask = BIT(6) },
- { .base = 0xb500, .triled_mask = BIT(5) },
+ { .base = 0xb300, .triled_mask = BIT(7), .sdam_offset = 0x48 },
+ { .base = 0xb400, .triled_mask = BIT(6), .sdam_offset = 0x56 },
+ { .base = 0xb500, .triled_mask = BIT(5), .sdam_offset = 0x64 },
{ .base = 0xb600 },
{ .base = 0xb700 },
},