* [PATCH] arm64: dts: qcom: msm8916-gplus-fl8005a: Add BMS
@ 2024-06-21 14:13 Lin, Meng-Bo
2024-06-22 11:06 ` Konrad Dybcio
2024-06-23 21:02 ` Bjorn Andersson
0 siblings, 2 replies; 3+ messages in thread
From: Lin, Meng-Bo @ 2024-06-21 14:13 UTC (permalink / raw)
To: linux-kernel
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Stephan Gerhold, Nikita Travkin, linux-arm-msm,
devicetree, ~postmarketos/upstreaming
There is PM8916 Battery voltage monitor on GPLUS FL8005A.
Add PM8916 BMS and the battery to the device tree.
Signed-off-by: "Lin, Meng-Bo" <linmengbo06890@proton.me>
---
.../boot/dts/qcom/msm8916-gplus-fl8005a.dts | 27 +++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts b/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts
index e6ed5544a11b..f7be7e371820 100644
--- a/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts
+++ b/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts
@@ -24,6 +24,28 @@ chosen {
stdout-path = "serial0";
};
+ battery: battery {
+ compatible = "simple-battery";
+ device-chemistry = "lithium-ion-polymer";
+ voltage-min-design-microvolt = <3700000>;
+ voltage-max-design-microvolt = <4200000>;
+ energy-full-design-microwatt-hours = <13690000>;
+ charge-full-design-microamp-hours = <3700000>;
+
+ ocv-capacity-celsius = <25>;
+ ocv-capacity-table-0 =
+ <4186000 100>, <4126000 95>, <4078000 90>,
+ <4036000 85>, <3997000 80>, <3962000 75>,
+ <3932000 70>, <3904000 65>, <3874000 60>,
+ <3839000 55>, <3809000 50>, <3792000 45>,
+ <3780000 40>, <3772000 35>, <3764000 30>,
+ <3752000 25>, <3731000 20>, <3704000 16>,
+ <3677000 13>, <3670000 11>, <3668000 10>,
+ <3666000 9>, <3662000 8>, <3658000 7>, <3648000 6>,
+ <3624000 5>, <3580000 4>, <3518000 3>, <3434000 2>,
+ <3310000 1>, <3000000 0>;
+ };
+
flash-led-controller {
/* Actually qcom,leds-gpio-flash */
compatible = "sgmicro,sgm3140";
@@ -116,6 +138,11 @@ &mpss_mem {
reg = <0x0 0x86800000 0x0 0x5000000>;
};
+&pm8916_bms {
+ monitored-battery = <&battery>;
+ status = "okay";
+};
+
&pm8916_codec {
qcom,micbias-lvl = <2800>;
qcom,mbhc-vthreshold-low = <150 180 237 450 500>;
--
2.39.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] arm64: dts: qcom: msm8916-gplus-fl8005a: Add BMS
2024-06-21 14:13 [PATCH] arm64: dts: qcom: msm8916-gplus-fl8005a: Add BMS Lin, Meng-Bo
@ 2024-06-22 11:06 ` Konrad Dybcio
2024-06-23 21:02 ` Bjorn Andersson
1 sibling, 0 replies; 3+ messages in thread
From: Konrad Dybcio @ 2024-06-22 11:06 UTC (permalink / raw)
To: Lin, Meng-Bo, linux-kernel
Cc: Bjorn Andersson, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Stephan Gerhold, Nikita Travkin, linux-arm-msm, devicetree,
~postmarketos/upstreaming
On 21.06.2024 4:13 PM, Lin, Meng-Bo wrote:
> There is PM8916 Battery voltage monitor on GPLUS FL8005A.
> Add PM8916 BMS and the battery to the device tree.
>
> Signed-off-by: "Lin, Meng-Bo" <linmengbo06890@proton.me>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Konrad
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] arm64: dts: qcom: msm8916-gplus-fl8005a: Add BMS
2024-06-21 14:13 [PATCH] arm64: dts: qcom: msm8916-gplus-fl8005a: Add BMS Lin, Meng-Bo
2024-06-22 11:06 ` Konrad Dybcio
@ 2024-06-23 21:02 ` Bjorn Andersson
1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Andersson @ 2024-06-23 21:02 UTC (permalink / raw)
To: linux-kernel, Lin, Meng-Bo
Cc: Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Stephan Gerhold, Nikita Travkin, linux-arm-msm, devicetree,
~postmarketos/upstreaming
On Fri, 21 Jun 2024 14:13:33 +0000, Lin, Meng-Bo wrote:
> There is PM8916 Battery voltage monitor on GPLUS FL8005A.
> Add PM8916 BMS and the battery to the device tree.
>
>
Applied, thanks!
[1/1] arm64: dts: qcom: msm8916-gplus-fl8005a: Add BMS
commit: 61ba969e0e7d26a9260bcc658c54d2bf9a1f0a2b
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-06-23 21:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-21 14:13 [PATCH] arm64: dts: qcom: msm8916-gplus-fl8005a: Add BMS Lin, Meng-Bo
2024-06-22 11:06 ` Konrad Dybcio
2024-06-23 21:02 ` Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox