From: Bjorn Andersson <andersson@kernel.org>
To: emcp@enser.io
Cc: 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>,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ARM: dts: qcom: msm8974-hammerhead: Link the fuel gauge to its charger
Date: Fri, 4 Dec 2026 16:24:32 -0600 [thread overview]
Message-ID: <axM9kuOGxd_c6Uit@zenbook> (raw)
In-Reply-To: <20261122-b4-hammerhead-gauge-supply-v1-1-7ea708ee19a7@enser.io>
On Sun, Nov 22, 2026 at 05:12:49AM +0000, EMCP333 via B4 Relay wrote:
> From: EMCP333 <emcp@enser.io>
>
> The max17048 fuel gauge takes its STATUS from the power supply that
> feeds it, but its node does not say which one that is, so the gauge
> reports Unknown however the battery is being charged. Point it at the
> bq24192 charger with power-supplies, as the max17040 binding's own
> example does.
>
> The driver only reads the property since "power: supply: max17040: pass
> the device fwnode to the power supply core", now in the power-supply
> tree. Tested on an LG Nexus 5 with that same one-line driver change:
> with a charger attached the battery's status reads Charging, as the
> charger's does. Without the driver change this patch is harmless and
> has no effect.
>
> The code and this changelog were prepared with the help of an AI coding
> assistant. The submitter has reviewed both and takes responsibility for
> them.
>
> Signed-off-by: EMCP333 <emcp@enser.io>
Please use your real/full name.
Thanks,
Bjorn
> ---
> arch/arm/boot/dts/qcom/qcom-msm8974-lge-nexus5-hammerhead.dts | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/boot/dts/qcom/qcom-msm8974-lge-nexus5-hammerhead.dts b/arch/arm/boot/dts/qcom/qcom-msm8974-lge-nexus5-hammerhead.dts
> index e34d7b864e..48be1f9835 100644
> --- a/arch/arm/boot/dts/qcom/qcom-msm8974-lge-nexus5-hammerhead.dts
> +++ b/arch/arm/boot/dts/qcom/qcom-msm8974-lge-nexus5-hammerhead.dts
> @@ -120,6 +120,7 @@ charger: bq24192@6b {
> fuelgauge: max17048@36 {
> compatible = "maxim,max17048";
> reg = <0x36>;
> + power-supplies = <&charger>;
>
> maxim,double-soc;
> maxim,rcomp = /bits/ 8 <0x4d>;
>
> ---
> base-commit: 7475ea8b58616b33c04afb976cf0fbaad9dd63fb
> change-id: 20261122-b4-hammerhead-gauge-supply-6c0cf213ae0f
>
> Best regards,
> --
> EMCP333 <emcp@enser.io>
>
>
prev parent reply other threads:[~2026-12-04 22:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-22 5:12 [PATCH] ARM: dts: qcom: msm8974-hammerhead: Link the fuel gauge to its charger EMCP333 via B4 Relay
2026-12-04 22:24 ` Bjorn Andersson [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=axM9kuOGxd_c6Uit@zenbook \
--to=andersson@kernel.org \
--cc=abelvesa@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=emcp@enser.io \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
/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