[PATCH v3 0/2] Add support for Samsung S2MU005 battery fuel gauge device

Kaustabh Chakraborty posted 2 patches 4 weeks, 1 day ago
.../power/supply/samsung,s2mu005-fuel-gauge.yaml   |  49 ++++
drivers/power/supply/Kconfig                       |  11 +
drivers/power/supply/Makefile                      |   1 +
drivers/power/supply/s2mu005-battery.c             | 307 +++++++++++++++++++++
4 files changed, 368 insertions(+)
[PATCH v3 0/2] Add support for Samsung S2MU005 battery fuel gauge device
Posted by Kaustabh Chakraborty 4 weeks, 1 day ago
This patch series adds supports for the battery fuel gauge device for
Samsung S2MU005 PMIC battery chargers. It reports various metrics,
including incoming voltage, current, battery capacity, etc.

Although this device is independent of the actual PMIC which it
accompanies in functionality, it is used in conjunction with the PMIC's
charger sub-device to provide complete battery status.

Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
---
Changes in v3:
- added missing Acked-by from Conor
- set Kconfig dependencies (Sebastian Reichel) 
- fix superfluous headers in driver (Sebastian Reichel) 
- add missing psy_cfg.fwnode (Sebastian Reichel) 
- Link to v2: https://lore.kernel.org/r/20260208-s2mu005-fuelgauge-v2-0-be3af8969291@disroot.org

Changes in v2:
- s/fuelgauge/fuel-gauge in dt-bindings (Conor Dooley)
- do not print error messages for -ENOMEM (Sebastian Reichel)
- remove redundant irq_get_trigger_type() (Sebastian Reichel)
- set regmap val_bits to 16 (Sebastian Reichel)
- switch to regmap_{read,write}()
- add current_avg and voltage_avg properties
- implement workaround for false positives due to hysteresis
- Link to v1: https://lore.kernel.org/r/20260126-s2mu005-fuelgauge-v1-0-68a146ed0819@disroot.org

---
Kaustabh Chakraborty (1):
      dt-bindings: power: supply: document Samsung S2MU005 battery fuel gauge

Yassine Oudjana (1):
      power: supply: add support for S2MU005 battery fuel gauge device

 .../power/supply/samsung,s2mu005-fuel-gauge.yaml   |  49 ++++
 drivers/power/supply/Kconfig                       |  11 +
 drivers/power/supply/Makefile                      |   1 +
 drivers/power/supply/s2mu005-battery.c             | 307 +++++++++++++++++++++
 4 files changed, 368 insertions(+)
---
base-commit: fc7b1a72c6cd5cbbd989c6c32a6486e3e4e3594d
change-id: 20260126-s2mu005-fuelgauge-25e9d95e30b6

Best regards,
-- 
Kaustabh Chakraborty <kauschluss@disroot.org>
Re: [PATCH v3 0/2] Add support for Samsung S2MU005 battery fuel gauge device
Posted by Sebastian Reichel 3 weeks, 1 day ago
On Wed, 04 Mar 2026 22:33:54 +0530, Kaustabh Chakraborty wrote:
> This patch series adds supports for the battery fuel gauge device for
> Samsung S2MU005 PMIC battery chargers. It reports various metrics,
> including incoming voltage, current, battery capacity, etc.
> 
> Although this device is independent of the actual PMIC which it
> accompanies in functionality, it is used in conjunction with the PMIC's
> charger sub-device to provide complete battery status.
> 
> [...]

Applied, thanks!

[1/2] dt-bindings: power: supply: document Samsung S2MU005 battery fuel gauge
      commit: d74b4fcc8093f9dc84172adf15f93b858d3daaac
[2/2] power: supply: add support for S2MU005 battery fuel gauge device
      commit: aa2132799817fb052d95a87f0c23cc6af38541c0

Best regards,
-- 
Sebastian Reichel <sebastian.reichel@collabora.com>