From: "Adil Hüsrev Tepe" <tadilhusrev@gmail.com>
To: Sebastian Reichel <sre@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Kaustabh Chakraborty <kauschluss@disroot.org>
Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
"Krzysztof Kozlowski" <krzk@kernel.org>,
"Yassine Oudjana" <y.oudjana@protonmail.com>,
"Adil Hüsrev Tepe" <tadilhusrev@gmail.com>
Subject: [PATCH v2 0/3] power: supply: s2mu005-battery: add S2MU106
Date: Sat, 28 Nov 2026 01:32:52 +0300 [thread overview]
Message-ID: <20261128-s2mu106-fg-v2-0-2c3142e05aaf@gmail.com> (raw)
Add the Samsung S2MU106 fuel gauge (found on the Samsung Galaxy XCover5,
Exynos850) to the s2mu005-battery driver. It has the same direct
voltage, current and state-of-charge registers as the S2MU005 but no
MONOUT averaging, so it gets its own compatible and match data. The
XCover5 does not wire the gauge's alert line, hence patch 2.
This supersedes the standalone s2mu106-fuelgauge series [1], as asked
by Kaustabh and Krzysztof.
[1] https://lore.kernel.org/all/20261117104328.1176951-1-tadilhusrev@gmail.com/
An AI coding assistant (Claude Code) helped compare the register maps
and draft these patches. I reviewed and tested them on the device.
Changes in v2:
- binding: add the compatible to the enum, no s2mu005 fallback
- shorter commit messages
- Link to v1: https://lore.kernel.org/all/20261116074000.355176-1-tadilhusrev@gmail.com/
---
Adil Hüsrev Tepe (3):
dt-bindings: power: supply: samsung,s2mu005-fuel-gauge: add S2MU106
power: supply: s2mu005-battery: make the alert interrupt optional
power: supply: s2mu005-battery: add S2MU106 support
.../power/supply/samsung,s2mu005-fuel-gauge.yaml | 1 +
drivers/power/supply/s2mu005-battery.c | 71 ++++++++++++++++++----
2 files changed, 59 insertions(+), 13 deletions(-)
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20261125-s2mu106-fg-5e2fc4490cbe
Best regards,
--
Adil Hüsrev Tepe <tadilhusrev@gmail.com>
next reply other threads:[~2026-11-27 22:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 22:32 Adil Hüsrev Tepe [this message]
2026-11-27 22:32 ` [PATCH v2 1/3] dt-bindings: power: supply: samsung,s2mu005-fuel-gauge: " Adil Hüsrev Tepe
2026-11-27 22:32 ` [PATCH v2 2/3] power: supply: s2mu005-battery: make the alert interrupt optional Adil Hüsrev Tepe
2026-11-27 22:32 ` [PATCH v2 3/3] power: supply: s2mu005-battery: add S2MU106 support Adil Hüsrev Tepe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261128-s2mu106-fg-v2-0-2c3142e05aaf@gmail.com \
--to=tadilhusrev@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=kauschluss@disroot.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sre@kernel.org \
--cc=y.oudjana@protonmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®