[RFC PATCH 3/3] arm64: dts: qcom: tiare: describe CW2017 fuel gauge

From: Kupreenko Danila

Date: Thu Oct 29 2026 - 13:59:37 EST


Enable the I2C controller at 0x7af5000 and describe the CW2017 at 0x63.
The controller mapping and gauge response were demonstrated on Redmi Go
with Linux 7.1.3. The independent monitor also registered power_supply
on that kernel. No charger node or battery profile is added.

The resulting mainline DTB is host-built and schema checked; it has not
been booted on the device.

Assisted-by: LLM
Signed-off-by: Kupreenko Danila <keckerz@xxxxxxxxx>
---
arch/arm64/boot/dts/qcom/msm8917-xiaomi-tiare.dts | 9 +++++++++
1 file changed, 9 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/msm8917-xiaomi-tiare.dts b/arch/arm64/boot/dts/qcom/msm8917-xiaomi-tiare.dts
index fe8442300..6d72a4763 100644
--- a/arch/arm64/boot/dts/qcom/msm8917-xiaomi-tiare.dts
+++ b/arch/arm64/boot/dts/qcom/msm8917-xiaomi-tiare.dts
@@ -14,6 +14,15 @@ / {
qcom,board-id = <0x1000b 1>;
};

+&blsp2_i2c1 {
+ status = "okay";
+
+ fuel-gauge@63 {
+ compatible = "cellwise,cw2017";
+ reg = <0x63>;
+ };
+};
+
&pm8937_l22 {
regulator-min-microvolt = <2850000>;
regulator-max-microvolt = <2850000>;
--
2.56.0