[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3f40b200-f48a-4cf3-a018-b227517715c8@kernel.org>
Date: Sat, 9 Nov 2024 14:48:10 +0100
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Dzmitry Sankouski <dsankouski@...il.com>,
Hans de Goede <hdegoede@...hat.com>,
Marek Szyprowski <m.szyprowski@...sung.com>,
Sebastian Krzyszkowiak <sebastian.krzyszkowiak@...i.sm>,
Purism Kernel Team <kernel@...i.sm>, Sebastian Reichel <sre@...nel.org>,
Rob Herring <robh@...nel.org>, Conor Dooley <conor+dt@...nel.org>,
Alim Akhtar <alim.akhtar@...sung.com>, Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>, Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konradybcio@...nel.org>
Cc: linux-pm@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-samsung-soc@...r.kernel.org, imx@...ts.linux.dev,
linux-arm-msm@...r.kernel.org
Subject: Re: [PATCH 3/4] power: supply: max17042: use microvolts for voltage
comparison
On 09/11/2024 13:44, Dzmitry Sankouski wrote:
> Do not convert VCELL register value from uV to mV to compare
> with vmin/vmax. Rather use uV for vim/vmax, since that's a
> standard measure unit in power supply drivers.
>
> Convert "maxim,dead-volt" and "maxim,over-volt" to uV.
>
> Signed-off-by: Dzmitry Sankouski <dsankouski@...il.com>
> ---
> Documentation/devicetree/bindings/power/supply/maxim,max17042.yaml | 2 +-
> arch/arm/boot/dts/samsung/exynos4210-i9100.dts | 2 +-
> arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi | 2 +-
> arch/arm/boot/dts/samsung/exynos4412-midas.dtsi | 2 +-
> arch/arm/boot/dts/samsung/exynos4412-p4note.dtsi | 2 +-
> arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 2 +-
> arch/arm64/boot/dts/qcom/msm8916-motorola-harpia.dts | 4 ++--
> arch/arm64/boot/dts/qcom/msm8916-motorola-osprey.dts | 4 ++--
> arch/arm64/boot/dts/qcom/msm8916-motorola-surnia.dts | 4 ++--
> arch/arm64/boot/dts/qcom/msm8916-samsung-gt5-common.dtsi | 2 +-
> drivers/power/supply/max17042_battery.c | 4 ----
> 11 files changed, 13 insertions(+), 17 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/power/supply/maxim,max17042.yaml b/Documentation/devicetree/bindings/power/supply/maxim,max17042.yaml
> index e98ffdad1ec3..d1ad597e0837 100644
> --- a/Documentation/devicetree/bindings/power/supply/maxim,max17042.yaml
> +++ b/Documentation/devicetree/bindings/power/supply/maxim,max17042.yaml
> @@ -83,7 +83,7 @@ examples:
> reg = <0x36>;
> maxim,rsns-microohm = <10000>;
> maxim,over-heat-temp = <600>;
> - maxim,over-volt = <4300>;
> + maxim,over-volt = <4300000>;
> shared-irq;
Property says this is mV so 4300 V? That's just wrong.
Entire commit touching bindings, drivers and DTS in one patch is an ABI
break and just clear NAK.
Best regards,
Krzysztof
Powered by blists - more mailing lists