* [PATCH v2 2/3] arm64: dts: qcom: sm8250-xiaomi-pipa: Drop unused bq27z561
2025-07-16 14:10 [PATCH v2 1/3] arm64: dts: qcom: sm8250-xiaomi-pipa: Drop nonexistent pm8009 pmic Arseniy Velikanov
@ 2025-07-16 14:10 ` Arseniy Velikanov
2025-07-16 14:59 ` Dmitry Baryshkov
0 siblings, 1 reply; 5+ messages in thread
From: Arseniy Velikanov @ 2025-07-16 14:10 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Luka Panio
Cc: linux-arm-msm, devicetree, linux-kernel,
~postmarketos/upstreaming, Arseniy Velikanov
It looks like the fuel gauge is not connected to the battery,
it reports nonsense info. Downstream kernel uses pmic fg.
Reviewed-by: Luka Panio <lukapanio@gmail.com>
Signed-off-by: Arseniy Velikanov <me@adomerle.pw>
---
.../boot/dts/qcom/sm8250-xiaomi-pipa.dts | 22 -------------------
1 file changed, 22 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-pipa.dts b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-pipa.dts
index a4c8b778ae46..c2d0f0254776 100644
--- a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-pipa.dts
+++ b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-pipa.dts
@@ -437,17 +437,6 @@ zap-shader {
};
};
-&i2c0 {
- clock-frequency = <400000>;
- status = "okay";
-
- fuel-gauge@55 {
- compatible = "ti,bq27z561";
- reg = <0x55>;
- monitored-battery = <&battery_r>;
- };
-};
-
&i2c11 {
clock-frequency = <400000>;
status = "okay";
@@ -465,17 +454,6 @@ backlight: backlight@11 {
};
};
-&i2c13 {
- clock-frequency = <400000>;
- status = "okay";
-
- fuel-gauge@55 {
- compatible = "ti,bq27z561";
- reg = <0x55>;
- monitored-battery = <&battery_l>;
- };
-};
-
&pcie0 {
status = "okay";
};
--
2.50.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2 2/3] arm64: dts: qcom: sm8250-xiaomi-pipa: Drop unused bq27z561
2025-07-16 14:10 ` [PATCH v2 2/3] arm64: dts: qcom: sm8250-xiaomi-pipa: Drop unused bq27z561 Arseniy Velikanov
@ 2025-07-16 14:59 ` Dmitry Baryshkov
2025-07-16 16:00 ` Konrad Dybcio
0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Baryshkov @ 2025-07-16 14:59 UTC (permalink / raw)
To: Arseniy Velikanov
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Luka Panio,
linux-arm-msm, devicetree, linux-kernel,
~postmarketos/upstreaming
On Wed, Jul 16, 2025 at 06:10:40PM +0400, Arseniy Velikanov wrote:
> It looks like the fuel gauge is not connected to the battery,
> it reports nonsense info. Downstream kernel uses pmic fg.
If you have to repost the patches for any reason, please sched more
light on the 'nosense' you are observing.
>
> Reviewed-by: Luka Panio <lukapanio@gmail.com>
> Signed-off-by: Arseniy Velikanov <me@adomerle.pw>
> ---
> .../boot/dts/qcom/sm8250-xiaomi-pipa.dts | 22 -------------------
> 1 file changed, 22 deletions(-)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 2/3] arm64: dts: qcom: sm8250-xiaomi-pipa: Drop unused bq27z561
2025-07-16 14:59 ` Dmitry Baryshkov
@ 2025-07-16 16:00 ` Konrad Dybcio
0 siblings, 0 replies; 5+ messages in thread
From: Konrad Dybcio @ 2025-07-16 16:00 UTC (permalink / raw)
To: Dmitry Baryshkov, Arseniy Velikanov
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Luka Panio,
linux-arm-msm, devicetree, linux-kernel,
~postmarketos/upstreaming
On 7/16/25 4:59 PM, Dmitry Baryshkov wrote:
> On Wed, Jul 16, 2025 at 06:10:40PM +0400, Arseniy Velikanov wrote:
>> It looks like the fuel gauge is not connected to the battery,
>> it reports nonsense info. Downstream kernel uses pmic fg.
>
> If you have to repost the patches for any reason, please sched more
> light on the 'nosense' you are observing.
Since it's actually onboard, it would be fair to assume it's there
for a reason.. Does it also report nonsense when running a
downstream build?
Konrad
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 2/3] arm64: dts: qcom: sm8250-xiaomi-pipa: Drop unused bq27z561
@ 2025-07-16 18:18 Arseniy Velikanov
2025-07-17 20:30 ` Konrad Dybcio
0 siblings, 1 reply; 5+ messages in thread
From: Arseniy Velikanov @ 2025-07-16 18:18 UTC (permalink / raw)
To: Konrad Dybcio, Dmitry Baryshkov
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Luka Panio,
linux-arm-msm, devicetree, linux-kernel,
~postmarketos/upstreaming
On 16.07.2025 20:00, Konrad Dybcio wrote:
> Since it's actually onboard, it would be fair to assume it's there
> for a reason.. Does it also report nonsense when running a
> downstream build?
Well, as I said before (looks like i sent reply wrongly), it's disabled
in the vendor's kernel config:
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/pipa-t-oss/arch/arm64/configs/vendor/pipa_user_defconfig#L413
Also, pmic fuel gauge, which works with the WIP driver in our
close-to-mainline fork reports mixed information for a dual-cell
battery, instead of each cell individually, and I think
this is a more right way.
--
Kind regards,
Arseniy.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 2/3] arm64: dts: qcom: sm8250-xiaomi-pipa: Drop unused bq27z561
2025-07-16 18:18 [PATCH v2 2/3] arm64: dts: qcom: sm8250-xiaomi-pipa: Drop unused bq27z561 Arseniy Velikanov
@ 2025-07-17 20:30 ` Konrad Dybcio
0 siblings, 0 replies; 5+ messages in thread
From: Konrad Dybcio @ 2025-07-17 20:30 UTC (permalink / raw)
To: Arseniy Velikanov, Dmitry Baryshkov
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Luka Panio,
linux-arm-msm, devicetree, linux-kernel,
~postmarketos/upstreaming
On 7/16/25 8:18 PM, Arseniy Velikanov wrote:
> On 16.07.2025 20:00, Konrad Dybcio wrote:
>> Since it's actually onboard, it would be fair to assume it's there
>> for a reason.. Does it also report nonsense when running a
>> downstream build?
> Well, as I said before (looks like i sent reply wrongly), it's disabled
> in the vendor's kernel config:
> https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/pipa-t-oss/arch/arm64/configs/vendor/pipa_user_defconfig#L413
>
> Also, pmic fuel gauge, which works with the WIP driver in our
> close-to-mainline fork reports mixed information for a dual-cell
> battery, instead of each cell individually, and I think
> this is a more right way.
OK this is a more convincing answer, thanks for confirming
Konrad
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-07-17 20:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-16 18:18 [PATCH v2 2/3] arm64: dts: qcom: sm8250-xiaomi-pipa: Drop unused bq27z561 Arseniy Velikanov
2025-07-17 20:30 ` Konrad Dybcio
-- strict thread matches above, loose matches on Subject: below --
2025-07-16 14:10 [PATCH v2 1/3] arm64: dts: qcom: sm8250-xiaomi-pipa: Drop nonexistent pm8009 pmic Arseniy Velikanov
2025-07-16 14:10 ` [PATCH v2 2/3] arm64: dts: qcom: sm8250-xiaomi-pipa: Drop unused bq27z561 Arseniy Velikanov
2025-07-16 14:59 ` Dmitry Baryshkov
2025-07-16 16:00 ` Konrad Dybcio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).