From: Stanislav Jakubek <stano.jakubek@gmail.com>
To: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Orson Zhai <orsonzhai@gmail.com>,
Baolin Wang <baolin.wang@linux.alibaba.com>,
Chunyan Zhang <zhang.lyra@gmail.com>
Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/3] arm64: dts: sprd: sc2731: fix bat-detect-gpios property
Date: Thu, 31 Oct 2024 08:30:46 +0100 [thread overview]
Message-ID: <ZyMyJrSPTfFrSC-t@standask-GA-A55M-S2HP> (raw)
In-Reply-To: <e57ee9b94f128753d156d77015f6cc3dc24fd9e8.1723716331.git.stano.jakubek@gmail.com>
On Thu, Aug 15, 2024 at 12:13:18PM +0200, Stanislav Jakubek wrote:
> According to DT bindings, the property is called bat-detect-gpios, not
> bat-detect-gpio. Update the property as such.
>
> Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
> ---
> arch/arm64/boot/dts/sprd/sc2731.dtsi | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm64/boot/dts/sprd/sc2731.dtsi b/arch/arm64/boot/dts/sprd/sc2731.dtsi
> index 12136e68dada..c8b30c0479fd 100644
> --- a/arch/arm64/boot/dts/sprd/sc2731.dtsi
> +++ b/arch/arm64/boot/dts/sprd/sc2731.dtsi
> @@ -97,7 +97,7 @@ pmic_adc: adc@480 {
> fuel-gauge@a00 {
> compatible = "sprd,sc2731-fgu";
> reg = <0xa00>;
> - bat-detect-gpio = <&pmic_eic 9 GPIO_ACTIVE_HIGH>;
> + bat-detect-gpios = <&pmic_eic 9 GPIO_ACTIVE_HIGH>;
> io-channels = <&pmic_adc 3>, <&pmic_adc 6>;
> io-channel-names = "bat-temp", "charge-vol";
> monitored-battery = <&bat>;
> --
> 2.34.1
>
Hi all,
looking at this patch again, it seems there's some confusion going on.
The bindings specify the property as "battery-detect-gpios", but the driver
checks for "bat-detect" [1]. I assume the DTS was added with "bat-detect"
to make it work, even though it's not conformant to bindings.
It has been this way since the bindings/driver/DTS were introduced
back in 2018/2019.
What would be the correct way to fix this? Change the bindings to
"bat-detect-gpios" or change the driver/DTS to "battery-detect-gpios"?
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/power/supply/sc27xx_fuel_gauge.c?h=v6.11#n1186
Regards,
Stanislav
next prev parent reply other threads:[~2024-10-31 7:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-15 10:12 [PATCH 0/3] Cleanup Spreadtrum/Unisoc ARM64 DT (part 2) Stanislav Jakubek
2024-08-15 10:12 ` [PATCH 1/3] arm64: dts: sprd: sp9860g-1h10: fix constant-charge-voltage-max-microvolt property Stanislav Jakubek
2024-08-16 1:37 ` Baolin Wang
2024-08-15 10:13 ` [PATCH 2/3] arm64: dts: sprd: sc2731: fix bat-detect-gpios property Stanislav Jakubek
2024-08-16 1:46 ` Baolin Wang
2024-10-31 7:30 ` Stanislav Jakubek [this message]
2024-11-01 1:53 ` Chunyan Zhang
2024-08-15 10:13 ` [PATCH 3/3] arm64: dts: sprd: sc2731: move fuel-gauge monitored-battery to device DTS Stanislav Jakubek
2024-08-15 18:28 ` [PATCH 0/3] Cleanup Spreadtrum/Unisoc ARM64 DT (part 2) Rob Herring (Arm)
2024-10-30 18:06 ` Stanislav Jakubek
2024-10-31 2:08 ` Chunyan Zhang
2024-10-31 7:21 ` Stanislav Jakubek
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=ZyMyJrSPTfFrSC-t@standask-GA-A55M-S2HP \
--to=stano.jakubek@gmail.com \
--cc=baolin.wang@linux.alibaba.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=orsonzhai@gmail.com \
--cc=robh@kernel.org \
--cc=zhang.lyra@gmail.com \
/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