From: Baolin Wang <baolin.wang@linux.alibaba.com>
To: Stanislav Jakubek <stano.jakubek@gmail.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Orson Zhai <orsonzhai@gmail.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 v2 3/5] arm64: dts: sprd: sc2731: move fuel-gauge monitored-battery to device DTS
Date: Thu, 7 Nov 2024 13:42:40 +0800 [thread overview]
Message-ID: <a2f244a8-cbac-4482-902d-fedcc461a417@linux.alibaba.com> (raw)
In-Reply-To: <2959aa8567afbef17337829072adce01158f00bb.1730918663.git.stano.jakubek@gmail.com>
On 2024/11/7 03:05, Stanislav Jakubek wrote:
> The monitored-battery property is a property of the board, not the PMIC.
> Move this property to the DTS of its only user, sp9860g-1h10.
> While at it, disable the fuel-gauge node by default and enable it only
> for its users, as it requires board-specific properties to work correctly.
>
> Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
Looks reasonable to me. Thanks.
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
> ---
> Changes in V2:
> - none
>
> Note that the 'sprd,calib-resistance-micro-ohms' property isn't specified
> as I do not have the board or any other source of information about it.
>
> If the SPRD folks could chime in here, that'd be great.
>
> arch/arm64/boot/dts/sprd/sc2731.dtsi | 4 ++--
> arch/arm64/boot/dts/sprd/sp9860g-1h10.dts | 5 +++++
> 2 files changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/sprd/sc2731.dtsi b/arch/arm64/boot/dts/sprd/sc2731.dtsi
> index 12136e68dada..2d27427c41a2 100644
> --- a/arch/arm64/boot/dts/sprd/sc2731.dtsi
> +++ b/arch/arm64/boot/dts/sprd/sc2731.dtsi
> @@ -94,17 +94,17 @@ pmic_adc: adc@480 {
> nvmem-cells = <&adc_big_scale>, <&adc_small_scale>;
> };
>
> - fuel-gauge@a00 {
> + pmic_fgu: fuel-gauge@a00 {
> compatible = "sprd,sc2731-fgu";
> reg = <0xa00>;
> bat-detect-gpio = <&pmic_eic 9 GPIO_ACTIVE_HIGH>;
> io-channels = <&pmic_adc 3>, <&pmic_adc 6>;
> io-channel-names = "bat-temp", "charge-vol";
> - monitored-battery = <&bat>;
> nvmem-cell-names = "fgu_calib";
> nvmem-cells = <&fgu_calib>;
> interrupt-parent = <&sc2731_pmic>;
> interrupts = <4>;
> + status = "disabled";
> };
>
> vibrator@ec8 {
> diff --git a/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts b/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts
> index 94af7700f3e2..b1fa817ece1e 100644
> --- a/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts
> +++ b/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts
> @@ -84,6 +84,11 @@ bat: battery {
> };
> };
>
> +&pmic_fgu {
> + monitored-battery = <&bat>;
> + status = "okay";
> +};
> +
> &uart0 {
> status = "okay";
> };
next prev parent reply other threads:[~2024-11-07 5:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-06 19:05 [PATCH v2 0/5] Cleanup Spreadtrum/Unisoc ARM64 DT (part 2) Stanislav Jakubek
2024-11-06 19:05 ` [PATCH v2 1/5] arm64: dts: sprd: sp9860g-1h10: fix constant-charge-voltage-max-microvolt property Stanislav Jakubek
2024-11-20 13:05 ` Rob Herring
2024-11-06 19:05 ` [PATCH v2 2/5] arm64: dts: sprd: sp9860g-1h10: fix factory-internal-resistance-micro-ohms property Stanislav Jakubek
2024-11-07 1:37 ` Baolin Wang
2024-11-06 19:05 ` [PATCH v2 3/5] arm64: dts: sprd: sc2731: move fuel-gauge monitored-battery to device DTS Stanislav Jakubek
2024-11-07 5:42 ` Baolin Wang [this message]
2024-11-06 19:05 ` [PATCH v2 4/5] arm64: dts: sprd: sc9863a: fix in-ports property Stanislav Jakubek
2024-11-07 1:39 ` Baolin Wang
2024-11-06 19:05 ` [PATCH v2 5/5] arm64: dts: sprd: sc9863a: reorder clocks, clock-names per bindings Stanislav Jakubek
2024-11-07 1:42 ` Baolin Wang
2024-12-05 10:42 ` [PATCH v2 0/5] Cleanup Spreadtrum/Unisoc ARM64 DT (part 2) Krzysztof Kozlowski
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=a2f244a8-cbac-4482-902d-fedcc461a417@linux.alibaba.com \
--to=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=stano.jakubek@gmail.com \
--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
all inboxes | Powered by JetHome®