From: Chris Morgan <macroalpha82@gmail.com>
To: linux-pm@vger.kernel.org
Cc: devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org,
heiko@sntech.de, conor+dt@kernel.org, krzk+dt@kernel.org,
robh@kernel.org, sre@kernel.org, t.schramm@manjaro.org,
Chris Morgan <macromorgan@hotmail.com>
Subject: [PATCH 3/3] arm64: dts: rockchip: Add Battery Gauge to Anbernic Vita-Pro
Date: Tue, 27 Oct 2026 08:17:51 -0500 [thread overview]
Message-ID: <20261027131751.1724448-4-macroalpha82@gmail.com> (raw)
In-Reply-To: <20261027131751.1724448-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..5c61467eaa03 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: charger@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 = <2000000>;
+ status = "okay";
+ };
};
&mipidcphy {
--
2.53.0
prev parent reply other threads:[~2026-10-27 13:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-27 13:17 [PATCH 0/3] Add Cellwise CW2217 Chris Morgan
2026-10-27 13:17 ` [PATCH 1/3] dt-bindings: power: cw2015: add cw2215, cw2217, and cw2218 Chris Morgan
2026-10-27 15:57 ` Krzysztof Kozlowski
2026-10-27 13:17 ` [PATCH 2/3] power: supply: cw2217: Add support for Cellwise cw2217 Chris Morgan
2026-10-27 13:34 ` Shawn Lin
2026-10-27 15:46 ` Chris Morgan
2026-10-27 13:17 ` 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=20261027131751.1724448-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=sre@kernel.org \
--cc=t.schramm@manjaro.org \
/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