summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/leds-lp55xx.h
diff options
context:
space:
mode:
authorMaarten Zanders <maarten.zanders@mind.be>2023-04-21 09:53:05 +0200
committerLee Jones <lee@kernel.org>2023-05-25 12:16:05 +0100
commit54a7bef5aa8d5247a78d79460bac47849b91a28b (patch)
tree1e92eed8d6419643d6a19b103ee6d77bd32ceadf /include/linux/platform_data/leds-lp55xx.h
parent91e47d4083dd935f547ea55d0dffeeba4b210b4b (diff)
leds: lp55xx: Configure internal charge pump
The LP55xx range of devices have an internal charge pump which can (automatically) increase the output voltage towards the LED's, boosting the output voltage to 4.5V. Implement this option from the devicetree. When the setting is not present it will operate in automatic mode as before. Tested on LP55231. Datasheet analysis shows that LP5521, LP5523 and LP8501 are identical in topology and are modified in the same way. Signed-off-by: Maarten Zanders <maarten.zanders@mind.be> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20230421075305.37597-3-maarten.zanders@mind.be
Diffstat (limited to 'include/linux/platform_data/leds-lp55xx.h')
-rw-r--r--include/linux/platform_data/leds-lp55xx.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/platform_data/leds-lp55xx.h b/include/linux/platform_data/leds-lp55xx.h
index 3441064713a3..3cc8db0b12b5 100644
--- a/include/linux/platform_data/leds-lp55xx.h
+++ b/include/linux/platform_data/leds-lp55xx.h
@@ -73,6 +73,9 @@ struct lp55xx_platform_data {
/* Clock configuration */
u8 clock_mode;
+ /* Charge pump mode */
+ u32 charge_pump_mode;
+
/* optional enable GPIO */
struct gpio_desc *enable_gpiod;