Devicetree
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Erikas Bitovtas <erikas99876@gmail.com>,
	Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	Abel Vesa <abelvesa@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	~postmarketos/upstreaming@lists.sr.ht,
	phone-devel@vger.kernel.org
Subject: Re: [PATCH] arm64: dts: qcom: sm7125-samsung: add fuel gauge
Date: Mon, 30 Nov 2026 12:01:59 +0100	[thread overview]
Message-ID: <ae9fda95-6144-42bf-ac4c-ed9c59628c40@oss.qualcomm.com> (raw)
In-Reply-To: <20261123-sm7125-samsung-fuelgauge-v1-1-edcdef00a6ef@gmail.com>

On 11/23/26 2:02 PM, Erikas Bitovtas wrote:
> Samsung Galaxy A52 and A72 use Silicon Mitus SM5714 interface PMIC,
> which includes a fuel gauge as one of its features. Enable GPI DMA and
> I2C controllers, add battery bindings and enable the interface PMIC fuel
> gauge.
> 
> Signed-off-by: Erikas Bitovtas <erikas99876@gmail.com>
> ---
> Samsung Galaxy A52 and A72 use Silicon Mitus SM5714 interface PMIC which
> includes a fuel gauge to measure battery state of charge. Add device
> tree bindings for their lithium-ion 4,500 and 5,000 mAh batteries
> respectfully, enable GPI DMA and I2C controllers and enable the SM5714
> fuel gauge.
> 
> Tested on Samsung Galaxy A72. The driver reports the same SoC and energy
> as on Android.
> 
> This patch depends on a currently unmerged series for SC7180 GPI DMA:
> https://lore.kernel.org/all/20261112-sc7180-gpi-dma-v1-0-2a8eceb49563@gmail.com/
> ---
>  arch/arm64/boot/dts/qcom/sm7125-samsung-a52q.dts   |  4 +++
>  arch/arm64/boot/dts/qcom/sm7125-samsung-a72q.dts   |  4 +++
>  .../arm64/boot/dts/qcom/sm7125-samsung-common.dtsi | 38 ++++++++++++++++++++++
>  3 files changed, 46 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sm7125-samsung-a52q.dts b/arch/arm64/boot/dts/qcom/sm7125-samsung-a52q.dts
> index ecba5be8164e..cd58f1449290 100644
> --- a/arch/arm64/boot/dts/qcom/sm7125-samsung-a52q.dts
> +++ b/arch/arm64/boot/dts/qcom/sm7125-samsung-a52q.dts
> @@ -15,6 +15,10 @@ / {
>  	qcom,board-id = <0x22 0x6>;
>  };
>  
> +&battery {
> +	charge-full-design-microamp-hours = <4500000>;

This binding:

Documentation/devicetree/bindings/power/supply/battery.yaml

accepts a million properties. Does your downstream tree give you
data for any of them?

Konrad

  reply	other threads:[~2026-11-30 11:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 13:02 [PATCH] arm64: dts: qcom: sm7125-samsung: add fuel gauge Erikas Bitovtas
2026-11-30 11:01 ` Konrad Dybcio [this message]
2026-12-02 12:04   ` Erikas Bitovtas
2026-12-02 12:11     ` Konrad Dybcio

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=ae9fda95-6144-42bf-ac4c-ed9c59628c40@oss.qualcomm.com \
    --to=konrad.dybcio@oss.qualcomm.com \
    --cc=abelvesa@kernel.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=erikas99876@gmail.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=phone-devel@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=~postmarketos/upstreaming@lists.sr.ht \
    /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