power: supply: Add pm8916 VM-BMS support
authorNikita Travkin <nikita@trvn.ru>
Fri, 15 Sep 2023 05:01:20 +0000 (10:01 +0500)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 15 Sep 2023 19:52:00 +0000 (21:52 +0200)
commit098bce1838e0549228c8d426e5de72ec5594b5c4
tree9552dd6ff24c1380b9b2d5c9ee3ca6d4a5635a8b
parent5cee843d56072135c0d4be4a2d8a20df05155009
power: supply: Add pm8916 VM-BMS support

This driver adds basic support for VM-BMS found in pm8916.

VM-BMS is a very basic fuel-gauge hardware block that is, sadly,
incapable of any gauging. The hardware supports measuring OCV in
sleep mode, where the battery is not in use, or measuring average
voltage over time when the device is active.

This driver implements basic value readout from this block.

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