drivers: led: lp5569: add charge pump configuration

The lp5569 controller contains an internal charge pump which can be useful
for driving LEDs with a forward voltage greater than the lp5569 supply.
Taking advantage of the charge pump can alleviate the need for an external
boost converter.

Add a dts property, charge-pump-mode, to the ti,lp5569 binding with which
the cp_mode bits of the MISC register will be configured.

Following the datasheet, the possible configurations are:
    0x00 -> disabled (default)
    0x01 -> 1x mode
    0x10 -> 1.5x mode
    0x11 -> auto mode

Signed-off-by: Emil Juhl <emdj@bang-olufsen.dk>
This commit is contained in:
Emil Juhl 2024-03-21 10:07:46 +01:00 committed by Fabio Baltieri
commit 47f9040bfa
3 changed files with 22 additions and 1 deletions

View file

@ -137,6 +137,8 @@ Drivers and Sensors
* LED
* lp5569: added ``charge-pump-mode`` property to configure the charge pump of the lp5569.
* LED Strip
* LoRa