leds: lp55xx: Configure internal charge pump
authorMaarten Zanders <maarten.zanders@mind.be>
Fri, 21 Apr 2023 07:53:05 +0000 (09:53 +0200)
committerLee Jones <lee@kernel.org>
Thu, 25 May 2023 11:16:05 +0000 (12:16 +0100)
commit54a7bef5aa8d5247a78d79460bac47849b91a28b
tree1e92eed8d6419643d6a19b103ee6d77bd32ceadf
parent91e47d4083dd935f547ea55d0dffeeba4b210b4b
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
drivers/leds/leds-lp5521.c
drivers/leds/leds-lp5523.c
drivers/leds/leds-lp55xx-common.c
drivers/leds/leds-lp8501.c
include/linux/platform_data/leds-lp55xx.h