From: Chris Morgan <macroalpha82@gmail.com>
To: linux-rockchip@lists.infradead.org
Cc: devicetree@vger.kernel.org, shawn.lin@rock-chips.com,
linux-pm@vger.kernel.org, heiko@sntech.de, conor+dt@kernel.org,
krzk+dt@kernel.org, robh@kernel.org, sre@kernel.org,
t.schramm@manjaro.org, xsf@rock-chips.com,
Chris Morgan <macromorgan@hotmail.com>
Subject: [PATCH V2 3/3] arm64: dts: rockchip: Add Battery Gauge to Anbernic Vita-Pro
Date: Fri, 20 Nov 2026 15:28:15 -0600 [thread overview]
Message-ID: <20261120212815.35663-4-macroalpha82@gmail.com> (raw)
In-Reply-To: <20261120212815.35663-1-macroalpha82@gmail.com>
From: Chris Morgan <macromorgan@hotmail.com>
Add support for the Cellwise cw2217 battery gauge to the Anbernic
Vita-Pro.
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
---
.../rockchip/rk3576-anbernic-rg-vita-pro.dts | 21 ++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3576-anbernic-rg-vita-pro.dts b/arch/arm64/boot/dts/rockchip/rk3576-anbernic-rg-vita-pro.dts
index e66803b5399c..2203e092e8c8 100644
--- a/arch/arm64/boot/dts/rockchip/rk3576-anbernic-rg-vita-pro.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3576-anbernic-rg-vita-pro.dts
@@ -954,7 +954,26 @@ hym8563: rtc@51 {
wakeup-source;
};
- /* cellwise,cw221X battery manager at 0x64 */
+ cw2217: fuel-gauge@64 {
+ compatible = "cellwise,cw2217";
+ reg = <0x64>;
+ cellwise,battery-profile = /bits/ 8 <
+ 0x5a 0x00 0x00 0x00 0x00 0x00 0x00 0x00
+ 0xab 0xb5 0xae 0xc0 0xa9 0xa4 0xcf 0xaf
+ 0x96 0xff 0xff 0xd7 0x9a 0x83 0x70 0x69
+ 0x65 0x65 0x65 0xb8 0x81 0xd9 0xaf 0xd9
+ 0xd2 0xce 0xcd 0xcb 0xca 0xc7 0xc8 0xc5
+ 0xc2 0xba 0xa8 0x96 0x8a 0x85 0x7d 0x7a
+ 0x7f 0x88 0x92 0x93 0x94 0xd3 0xff 0x5f
+ 0x20 0x00 0xab 0x10 0x00 0x91 0x68 0x00
+ 0x00 0x00 0x64 0x3c 0xa0 0x89 0x00 0x00
+ 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xb2
+ >;
+ monitored-battery = <&battery>;
+ power-supplies = <&sgm41542>;
+ shunt-resistor-micro-ohms = <2000>;
+ status = "okay";
+ };
};
&mipidcphy {
--
2.53.0
prev parent reply other threads:[~2026-11-20 21:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 21:28 [PATCH V2 0/3] Add Cellwise CW2217 Chris Morgan
2026-11-20 21:28 ` [PATCH V2 1/3] dt-bindings: power: cw2015: add cw2215, cw2217, and cw2218 Chris Morgan
2026-11-20 21:28 ` [PATCH V2 2/3] power: supply: cw2217: Add support for Cellwise cw2217 Chris Morgan
2026-11-20 21:28 ` Chris Morgan [this message]
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=20261120212815.35663-4-macroalpha82@gmail.com \
--to=macroalpha82@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=krzk+dt@kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=macromorgan@hotmail.com \
--cc=robh@kernel.org \
--cc=shawn.lin@rock-chips.com \
--cc=sre@kernel.org \
--cc=t.schramm@manjaro.org \
--cc=xsf@rock-chips.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