[PATCH] arm64: dts: rockchip: Add battery and charger on rk3566-pinenote

Diederik de Haas posted 1 patch 1 month, 3 weeks ago
.../boot/dts/rockchip/rk3566-pinenote.dtsi    | 26 +++++++++++++++++++
1 file changed, 26 insertions(+)
[PATCH] arm64: dts: rockchip: Add battery and charger on rk3566-pinenote
Posted by Diederik de Haas 1 month, 3 weeks ago
From: Samuel Holland <samuel@sholland.org>

The PineNote has a single cell 4000mAh battery which can be charged via
the rk817 PMIC.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Co-developed-by: Maximilian Weigand <mweigand@mweigand.net>
Signed-off-by: Maximilian Weigand <mweigand@mweigand.net>
Signed-off-by: Diederik de Haas <diederik@cknow-tech.com>
---
 .../boot/dts/rockchip/rk3566-pinenote.dtsi    | 26 +++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi b/arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi
index 791719acb9dd..551d551a113b 100644
--- a/arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi
@@ -40,6 +40,25 @@ spk_amp: audio-amplifier {
 		sound-name-prefix = "Speaker Amp";
 	};
 
+	battery: battery {
+		compatible = "simple-battery";
+		charge-full-design-microamp-hours = <4000000>;
+		charge-term-current-microamp = <300000>;
+		constant-charge-current-max-microamp = <2000000>;
+		constant-charge-voltage-max-microvolt = <4200000>;
+		factory-internal-resistance-micro-ohms = <96000>;
+		voltage-max-design-microvolt = <4200000>;
+		voltage-min-design-microvolt = <3500000>;
+
+		ocv-capacity-celsius = <20>;
+		ocv-capacity-table-0 = <4168000 100>, <4109000 95>, <4066000 90>, <4023000 85>,
+					<3985000 80>, <3954000 75>, <3924000 70>, <3897000 65>,
+					<3866000 60>, <3826000 55>, <3804000 50>, <3789000 45>,
+					<3777000 40>, <3770000 35>, <3763000 30>, <3750000 25>,
+					<3732000 20>, <3710000 15>, <3680000 10>, <3670000  5>,
+					<3500000  0>;
+	};
+
 	dmic_codec: dmic-codec {
 		compatible = "dmic-codec";
 		num-channels = <6>;
@@ -260,6 +279,13 @@ rk817: pmic@20 {
 		vcc8-supply = <&vcc_sys>;
 		vcc9-supply = <&dcdc_boost>;
 
+		charger {
+			monitored-battery = <&battery>;
+			rockchip,resistor-sense-micro-ohms = <10000>;
+			rockchip,sleep-enter-current-microamp = <150000>;
+			rockchip,sleep-filter-current-microamp = <100000>;
+		};
+
 		regulators {
 			vdd_logic: DCDC_REG1 {
 				regulator-name = "vdd_logic";
-- 
2.51.0
Re: [PATCH] arm64: dts: rockchip: Add battery and charger on rk3566-pinenote
Posted by Heiko Stuebner 1 month, 2 weeks ago
On Tue, 24 Feb 2026 18:04:51 +0100, Diederik de Haas wrote:
> The PineNote has a single cell 4000mAh battery which can be charged via
> the rk817 PMIC.
> 
> 

Applied, thanks!

[1/1] arm64: dts: rockchip: Add battery and charger on rk3566-pinenote
      commit: 1d608a269e24285eb399e08f0b47c2020b8c719a

Best regards,
-- 
Heiko Stuebner <heiko@sntech.de>