Devicetree
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Erikas Bitovtas <xerikasxx@gmail.com>,
	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: Wed, 2 Dec 2026 13:11:05 +0100	[thread overview]
Message-ID: <f7ff77a0-0857-4a8f-92d3-bfb2cbbc9a9f@oss.qualcomm.com> (raw)
In-Reply-To: <354e99d1-da3b-4ce8-a52a-aaa4db41cd62@gmail.com>

On 12/2/26 1:04 PM, Erikas Bitovtas wrote:
> 
> 
> On 11/30/26 13:01, Konrad Dybcio wrote:
>> 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.
>>>
> 
> [---snip---]
> 
>>> +&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
> 
> Hello Konrad,
> 
> Samsung has its own bindings for describing battery which are different
> from batterydata:
> https://github.com/LineageOS/android_kernel_samsung_sm7125/blob/lineage-24.0/arch/arm64/boot/dts/samsung/drivers/atoll-sec-a72q-battery-common.dtsi
> trickle-charge-current-microamp can be taken from
> battery,low_temp_topoff and constant-charge-current-max-microamp from
> battery,max_charging_current.
> There are probably more, but I'm not sure.

Right, these custom properties ultimately translate into some
values that are either directly written into registers or that
influence the values written into registers, just like the
upstream ones (which carry different names but often similar
semantic meaning since they both describe a battery)

Please throw some clanker at it (or well, I don't insist on that,
you may as well do it manually) and try to map them.

Konrad

      reply	other threads:[~2026-12-02 12:11 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
2026-12-02 12:04   ` Erikas Bitovtas
2026-12-02 12:11     ` Konrad Dybcio [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=f7ff77a0-0857-4a8f-92d3-bfb2cbbc9a9f@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=xerikasxx@gmail.com \
    --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