]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
power: supply: add support for S2MU005 battery fuel gauge device
authorYassine Oudjana <y.oudjana@protonmail.com>
Wed, 4 Mar 2026 17:03:56 +0000 (22:33 +0530)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 11 Mar 2026 09:34:44 +0000 (10:34 +0100)
commitaa2132799817fb052d95a87f0c23cc6af38541c0
tree435ae447fca20c069da1691e4206dbc451b131be
parentd74b4fcc8093f9dc84172adf15f93b858d3daaac
power: supply: add support for S2MU005 battery fuel gauge device

Samsung's S2MU005 PMIC, which contains battery charger functionality
also includes a battery fuel gauge device, which is separate from the
PMIC itself, and typically connected to an I2C bus. Add a generic driver
to support said device.

Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com>
Co-developed-by: Kaustabh Chakraborty <kauschluss@disroot.org>
Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
Link: https://patch.msgid.link/20260304-s2mu005-fuelgauge-v3-2-e4dc4e47cde8@disroot.org
[Moved mutex init before power-supply registration]
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/Kconfig
drivers/power/supply/Makefile
drivers/power/supply/s2mu005-battery.c [new file with mode: 0644]