* [PATCH 0/1] Add fuel gauge to Pinbook Pro dts
@ 2020-05-28 17:25 Tobias Schramm
2020-05-28 17:25 ` [PATCH 1/1] arm64: dts: rockchip: add fuel gauge to Pinebook " Tobias Schramm
2020-06-17 8:37 ` [PATCH 0/1] Add fuel gauge to Pinbook " Heiko Stuebner
0 siblings, 2 replies; 3+ messages in thread
From: Tobias Schramm @ 2020-05-28 17:25 UTC (permalink / raw)
To: Rob Herring, Heiko Stuebner
Cc: devicetree, linux-rockchip, linux-kernel, Tobias Schramm
Hi,
since the cw2015 fuel gauge will be supported in 5.8 this patch
adds a node for it to the Pinbook Pro device tree.
Best regards,
Tobias
Tobias Schramm (1):
arm64: dts: rockchip: add fuel gauge to Pinebook Pro dts
.../boot/dts/rockchip/rk3399-pinebook-pro.dts | 25 +++++++++++++++++++
1 file changed, 25 insertions(+)
--
2.26.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] arm64: dts: rockchip: add fuel gauge to Pinebook Pro dts
2020-05-28 17:25 [PATCH 0/1] Add fuel gauge to Pinbook Pro dts Tobias Schramm
@ 2020-05-28 17:25 ` Tobias Schramm
2020-06-17 8:37 ` [PATCH 0/1] Add fuel gauge to Pinbook " Heiko Stuebner
1 sibling, 0 replies; 3+ messages in thread
From: Tobias Schramm @ 2020-05-28 17:25 UTC (permalink / raw)
To: Rob Herring, Heiko Stuebner
Cc: devicetree, linux-rockchip, linux-kernel, Tobias Schramm
This commit adds cw2015 fuel gauge and battery to the Pinebook Pro dts.
Signed-off-by: Tobias Schramm <t.schramm@manjaro.org>
---
.../boot/dts/rockchip/rk3399-pinebook-pro.dts | 25 +++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts b/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts
index 5ea281b55fe2..28afe89ca283 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts
@@ -28,6 +28,13 @@ backlight: edp-backlight {
pwms = <&pwm0 0 740740 0>;
};
+ bat: battery {
+ compatible = "simple-battery";
+ charge-full-design-microamp-hours = <9800000>;
+ voltage-max-design-microvolt = <4350000>;
+ voltage-min-design-microvolt = <3000000>;
+ };
+
edp_panel: edp-panel {
compatible = "boe,nv140fhmn49";
backlight = <&backlight>;
@@ -740,6 +747,24 @@ usbc_dp: endpoint {
};
};
};
+
+ cw2015@62 {
+ compatible = "cellwise,cw2015";
+ reg = <0x62>;
+ cellwise,battery-profile = /bits/ 8 <
+ 0x17 0x67 0x80 0x73 0x6E 0x6C 0x6B 0x63
+ 0x77 0x51 0x5C 0x58 0x50 0x4C 0x48 0x36
+ 0x15 0x0C 0x0C 0x19 0x5B 0x7D 0x6F 0x69
+ 0x69 0x5B 0x0C 0x29 0x20 0x40 0x52 0x59
+ 0x57 0x56 0x54 0x4F 0x3B 0x1F 0x7F 0x17
+ 0x06 0x1A 0x30 0x5A 0x85 0x93 0x96 0x2D
+ 0x48 0x77 0x9C 0xB3 0x80 0x52 0x94 0xCB
+ 0x2F 0x00 0x64 0xA5 0xB5 0x11 0xF0 0x11
+ >;
+ cellwise,monitor-interval-ms = <5000>;
+ monitored-battery = <&bat>;
+ power-supplies = <&mains_charger>, <&fusb0>;
+ };
};
&i2s1 {
--
2.26.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 0/1] Add fuel gauge to Pinbook Pro dts
2020-05-28 17:25 [PATCH 0/1] Add fuel gauge to Pinbook Pro dts Tobias Schramm
2020-05-28 17:25 ` [PATCH 1/1] arm64: dts: rockchip: add fuel gauge to Pinebook " Tobias Schramm
@ 2020-06-17 8:37 ` Heiko Stuebner
1 sibling, 0 replies; 3+ messages in thread
From: Heiko Stuebner @ 2020-06-17 8:37 UTC (permalink / raw)
To: Rob Herring, Tobias Schramm
Cc: Heiko Stuebner, linux-rockchip, linux-kernel, devicetree
On Thu, 28 May 2020 19:25:49 +0200, Tobias Schramm wrote:
> since the cw2015 fuel gauge will be supported in 5.8 this patch
> adds a node for it to the Pinbook Pro device tree.
>
> Best regards,
>
> Tobias
>
> [...]
Applied, thanks!
[1/1] arm64: dts: rockchip: add fuel gauge to Pinebook Pro dts
commit: c7c4d698cd2882c4d095aeed43bbad6fc990e998
Best regards,
--
Heiko Stuebner <heiko@sntech.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-06-17 8:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-28 17:25 [PATCH 0/1] Add fuel gauge to Pinbook Pro dts Tobias Schramm
2020-05-28 17:25 ` [PATCH 1/1] arm64: dts: rockchip: add fuel gauge to Pinebook " Tobias Schramm
2020-06-17 8:37 ` [PATCH 0/1] Add fuel gauge to Pinbook " Heiko Stuebner
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).