Re: [PATCH 1/2] dt-bindings: power: supply: add samsung,s2mu106-fuelgauge
From: Krzysztof Kozlowski
Date: Mon Nov 23 2026 - 07:29:20 EST
On Tue, Nov 17, 2026 at 01:43:27PM +0300, Adil Hüsrev Tepe wrote:
> Add a binding for the Samsung S2MU106 PMIC's fuel gauge, as a
> standalone I2C device (own address, 0x3b) rather than a fallback
> compatible on samsung,s2mu005-fuel-gauge.
>
> A previous version of this series
> (https://lore.kernel.org/all/20261116074000.355176-1-tadilhusrev@xxxxxxxxx/)
> extended the S2MU005 fuel-gauge binding and driver instead, with
> samsung,s2mu106-fuel-gauge falling back to samsung,s2mu005-fuel-gauge.
> Sashiko AI's review of that series pointed out that the fallback let a
> board bind through the plain samsung,s2mu005-fuel-gauge compatible
Why is this relevant to commit msg? Whatever was decided in previous
review, stays in previous review. If you had bugs, would you be
describing each bug?
> with no guard at all, which runs s2mu005_fg_get_voltage_avg()/
> get_current_avg() against MONOUT registers the S2MU106 doesn't have,
> and can misreport charging status from the resulting garbage reads.
Explain simply differences between devices.
>
> Rather than add a flag to close that specific hole, this binding
> avoids the fallback-compatible construction entirely: the S2MU106
> fuel gauge only shares the S2MU005's STATUS/RVBAT/RCURCC/RSOC register
> layout and scaling, not its device-tree node shape, so it gets its own
> compatible and its own driver
> ("power: supply: s2mu106-fuelgauge: add standalone driver").
> samsung,s2mu005-fuel-gauge is left untouched.
This is completely redundant paragraph. Are you pasting here LLM stuff?
LLM has no place in commit msg. Usage of LLM means you do not understand
what you did.
>
> Signed-off-by: Adil Hüsrev Tepe <tadilhusrev@xxxxxxxxx>
> ---
> .../supply/samsung,s2mu106-fuelgauge.yaml | 51 +++++++++++++++++++
> 1 file changed, 51 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/power/supply/samsung,s2mu106-fuelgauge.yaml
>
> diff --git a/Documentation/devicetree/bindings/power/supply/samsung,s2mu106-fuelgauge.yaml b/Documentation/devicetree/bindings/power/supply/samsung,s2mu106-fuelgauge.yaml
> new file mode 100644
> index 000000000..3dd91412e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/power/supply/samsung,s2mu106-fuelgauge.yaml
> @@ -0,0 +1,51 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/power/supply/samsung,s2mu106-fuelgauge.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Samsung S2MU106 Fuel Gauge
> +
> +maintainers:
> + - Adil Hüsrev Tepe <tadilhusrev@xxxxxxxxx>
> +
> +description:
> + Fuel-gauge sub-function of the Samsung S2MU106 PMIC, on its own I2C address
> + (separate from the 0x3d charger/MUIC/FLED block). As on the Galaxy XCover5.
> +
> +allOf:
> + - $ref: power-supply.yaml#
> +
> +properties:
> + compatible:
> + const: samsung,s2mu106-fuelgauge
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + monitored-battery: true
Exactly the same as s2mu005. I do not understand why do you need a new
binding file and no one suggested that.
Best regards,
Krzysztof