power: supply: Add driver for pm8916 lbc
authorNikita Travkin <nikita@trvn.ru>
Fri, 15 Sep 2023 05:01:21 +0000 (10:01 +0500)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 15 Sep 2023 19:52:00 +0000 (21:52 +0200)
commitf8d7a3d21160a0cab4d15b81231f2a76b0fcee13
tree6459322607fb2880a8575bdaac603cc0a997b9c2
parent098bce1838e0549228c8d426e5de72ec5594b5c4
power: supply: Add driver for pm8916 lbc

pm8916 LBC is a Linear Battery Charger hardware block in pm8916 PMIC.

This block implements simple CC/CV charging for Li-Po batteries.
The hardware has internal state machine to switch between modes and
works mostly autonomously, only needing the limits and targets to be
set to operate.

This driver allows setting limits and enabling the LBC block, monitoring
it's state.

Signed-off-by: Nikita Travkin <nikita@trvn.ru>
Link: https://lore.kernel.org/r/20230915-pm8916-bms-lbc-v3-4-f30881e951a0@trvn.ru
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/Kconfig
drivers/power/supply/Makefile
drivers/power/supply/pm8916_lbc.c [new file with mode: 0644]