linux/arch/arm64
Dragan Simic ca2a69fdd6 arm64: dts: rockchip: Correct the Pinebook Pro battery design capacity
commit def33fb119 upstream.

All batches of the Pine64 Pinebook Pro, except the latest batch (as of 2024)
whose hardware design was revised due to the component shortage, use a 1S
lithium battery whose nominal/design capacity is 10,000 mAh, according to the
battery datasheet. [1][2]  Let's correct the design full-charge value in the
Pinebook Pro board dts, to improve the accuracy of the hardware description,
and to hopefully improve the accuracy of the fuel gauge a bit on all units
that don't belong to the latest batch.

The above-mentioned latest batch uses a different 1S lithium battery with
a slightly lower capacity, more precisely 9,600 mAh.  To make the fuel gauge
work reliably on the latest batch, a sample battery would need to be sent to
CellWise, to obtain its proprietary battery profile, whose data goes into
"cellwise,battery-profile" in the Pinebook Pro board dts.  Without that data,
the fuel gauge reportedly works unreliably, so changing the design capacity
won't have any negative effects on the already unreliable operation of the
fuel gauge in the Pinebook Pros that belong to the latest batch.

According to the battery datasheet, its voltage can go as low as 2.75 V while
discharging, but it's better to leave the current 3.0 V value in the dts file,
because of the associated Pinebook Pro's voltage regulation issues.

[1] https://wiki.pine64.org/index.php/Pinebook_Pro#Battery
[2] https://files.pine64.org/doc/datasheet/pinebook/40110175P%203.8V%2010000mAh%E8%A7%84%E6%A0%BC%E4%B9%A6-14.pdf

Fixes: c7c4d698cd ("arm64: dts: rockchip: add fuel gauge to Pinebook Pro dts")
Cc: stable@vger.kernel.org
Cc: Marek Kraus <gamiee@pine64.org>
Signed-off-by: Dragan Simic <dsimic@manjaro.org>
Link: https://lore.kernel.org/r/731f8ef9b1a867bcc730d19ed277c8c0534c0842.1721065172.git.dsimic@manjaro.org
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-10-04 16:29:55 +02:00
..
boot arm64: dts: rockchip: Correct the Pinebook Pro battery design capacity 2024-10-04 16:29:55 +02:00
configs arm64: defconfig: enable the vf610 gpio driver 2024-06-27 13:49:10 +02:00
crypto crypto: arm64/neonbs - fix out-of-bounds access on short input 2024-03-06 14:48:40 +00:00
hyperv arm64/hyperv: Use CPUHP_AP_HYPERV_ONLINE state to fix CPU online sequencing 2023-06-17 23:09:47 +00:00
include arm64: errata: Enable the AC03_CPU_38 workaround for ampere1a 2024-10-04 16:29:55 +02:00
kernel arm64: errata: Enable the AC03_CPU_38 workaround for ampere1a 2024-10-04 16:29:55 +02:00
kvm KVM: arm64: Add memory length checks and remove inline in do_ffa_mem_xfer 2024-10-04 16:29:46 +02:00
lib arm64 fixes for -rc1 2023-09-08 12:48:37 -07:00
mm arm64: hibernate: Fix level3 translation fault in swsusp_save() 2024-04-27 17:11:41 +02:00
net bpf, arm64: Fix incorrect runtime stats 2024-05-17 12:02:01 +02:00
tools arm64: errata: Add workaround for Arm errata 3194386 and 3312417 2024-08-14 13:58:48 +02:00
xen
Kbuild
Kconfig arm64: errata: Enable the AC03_CPU_38 workaround for ampere1a 2024-10-04 16:29:55 +02:00
Kconfig.debug
Kconfig.platforms STM32 STM32MP25 for v6.5, round 1 2023-06-20 22:28:44 +02:00
Makefile kbuild: unify vdso_install rules 2024-06-12 11:12:32 +02:00