From: sashiko-bot@kernel.org
To: "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, 02 Dec 2026 18:06:43 +0000 [thread overview]
Message-ID: <sashiko-outbox-246405@kernel.org> (raw)
In-Reply-To: <20261202-sm7125-samsung-fuelgauge-v2-1-4a8f2977d50f@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] arm64: dts: qcom: sm7125-samsung: wrong battery top-off and
max voltage props
- [Low] arm64: dts: qcom: sm7125-samsung: unused gpi_dma1 and qupv3_id_1
enabled
--
commit d1e4e816712da396c29d01ec3a61c854786a3077
Author: Erikas Bitovtas <erikas99876@gmail.com>
arm64: dts: qcom: sm7125-samsung: add fuel gauge
This commit adds simple-battery nodes, enables QUPv3, GPI DMA and I2C4
controllers, and enables the Silicon Mitus SM5714 fuel gauge on the
Samsung Galaxy A52 and Galaxy A72.
> diff --git a/arch/arm64/boot/dts/qcom/sm7125-samsung-a52q.dts b/arch/arm64/boot/dts/qcom/sm7125-samsung-a52q.dts
> index ecba5be8164ea..33ce9e454017d 100644
> --- a/arch/arm64/boot/dts/qcom/sm7125-samsung-a52q.dts
> +++ b/arch/arm64/boot/dts/qcom/sm7125-samsung-a52q.dts
> @@ -15,6 +15,12 @@ / {
> qcom,board-id = <0x22 0x6>;
> };
>
> +&battery {
> + charge-full-design-microamp-hours = <4500000>;
> + trickle-charge-current-microamp = <225000>;
> + constant-charge-current-max-microamp = <2800000>;
> +};
> +
> &rmtfs_mem {
> reg = <0x0 0xf4f00000 0x0 0x202000>;
> };
> diff --git a/arch/arm64/boot/dts/qcom/sm7125-samsung-a72q.dts b/arch/arm64/boot/dts/qcom/sm7125-samsung-a72q.dts
> index f18d03de1585e..fef0db054e1f7 100644
> --- a/arch/arm64/boot/dts/qcom/sm7125-samsung-a72q.dts
> +++ b/arch/arm64/boot/dts/qcom/sm7125-samsung-a72q.dts
> @@ -15,6 +15,12 @@ / {
> qcom,board-id = <0x22 0x5>;
> };
>
> +&battery {
> + charge-full-design-microamp-hours = <5000000>;
> + trickle-charge-current-microamp = <250000>;
> + constant-charge-current-max-microamp = <2700000>;
> +};
> +
> &rmtfs_mem {
> reg = <0x0 0xf3700000 0x0 0x202000>;
> };
> diff --git a/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi b/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi
> index 59ef4921f31e9..a90e3b3184cd9 100644
> --- a/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi
> @@ -22,6 +22,14 @@ / {
>
> qcom,msm-id = <QCOM_ID_SM7125 0x0>;
>
> + battery: battery {
> + compatible = "simple-battery";
> + device-chemistry = "lithium-ion";
> + voltage-min-design-microvolt = <3200000>;
> + voltage-max-design-microvolt = <4330000>;
> + re-charge-voltage-microvolt = <4310000>;
> + };
[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.
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.
> @@ -379,6 +387,25 @@ &dispcc {
> status = "disabled";
> };
>
> +&gpi_dma0 {
> + status = "okay";
> +};
> +
> +&gpi_dma1 {
> + status = "okay";
> +};
[ ... ]
> +&qupv3_id_0 {
> + status = "okay";
> +};
> +
> +&qupv3_id_1 {
> + status = "okay";
> +};
[Severity: Low]
Should gpi_dma1 and qupv3_id_1 remain disabled here? The only enabled
QUPv3 serial engine in the SM7125 Samsung device trees is i2c4, which sits
under qupv3_id_0 and uses gpi_dma0, so enabling gpi_dma1 and qupv3_id_1
probes the second QUPv3 wrapper and GPI DMA controller with no active
consumers.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202-sm7125-samsung-fuelgauge-v2-1-4a8f2977d50f@gmail.com?part=1
prev parent reply other threads:[~2026-12-02 18:06 UTC|newest]
Thread overview: 2+ 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 [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=sashiko-outbox-246405@kernel.org \
--to=sashiko-bot@kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox