From: Erikas Bitovtas <xerikasxx@gmail.com>
To: sashiko-reviews@lists.linux.dev, Erikas Bitovtas <erikas99876@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2] arm64: dts: qcom: sm7125-samsung: add fuel gauge
Date: Wed, 2 Dec 2026 20:31:16 +0200 [thread overview]
Message-ID: <99e44c79-d7d2-4800-a72d-567c61a492db@gmail.com> (raw)
In-Reply-To: <sashiko-outbox-246405@kernel.org>
> [Severity: Medium]
> Do trickle-charge-current-microamp and voltage-max-design-microvolt match
> the vendor properties they were mapped from?
>
> According to Documentation/devicetree/bindings/power/supply/battery.yaml,
> trickle-charge-current-microamp is the wake-up or pre-pre-charge current
> for very empty batteries, and explicitly notes that top-off charging is
> different and not controlled by this property (CV-phase charge
> termination current uses charge-term-current-microamp, and the vendor
> battery,low_temp_topoff property is a low-temperature top-off
> termination threshold). Passing it as trickle-charge-current-microamp
> causes power_supply_get_battery_info() to populate
> info->tricklecharge_current_ua instead of info->charge_term_current_ua.
>
I assumed Samsung uses the term "topoff" in the same sense as in
mainline. They don't. Will fix in v3.
> Similarly, the vendor battery,full_condition_vcell property (4.33 V) is
> the minimum voltage threshold required to declare the battery full at
> end-of-charge rather than the battery's maximum design voltage, so
> POWER_SUPPLY_PROP_VOLTAGE_MAX_DESIGN will report 4.33 V.
> Vendor code reports battery0,battery_type = <4430 0x21B3>; where 4430 is
batt_v_max, but this value is not used anywhere in
drivers/battery/fuelgauge/sm5714_fuelgauge.c, where it's read. Probably
for the best if I drop this property in v3.
prev parent reply other threads:[~2026-12-02 18:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 17:56 [PATCH v2] arm64: dts: qcom: sm7125-samsung: add fuel gauge Erikas Bitovtas
2026-12-02 18:06 ` sashiko-bot
2026-12-02 18:31 ` Erikas Bitovtas [this message]
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=99e44c79-d7d2-4800-a72d-567c61a492db@gmail.com \
--to=xerikasxx@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=erikas99876@gmail.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.