ARM: dts: msm: update step-jeita and step-charging thresholds
Current thresholds of step-jeita and step-charging keeps a buffer
between Max. threshold of current step and Min. threshold of next step,
this leads to failure if step parameter falls between Max. and Min.
thresholds of two steps. Fix this by updating Min. threshold of all the
steps same as Max. threshold of previous step.
Change-Id: Iec652cac2718e2255281322e1d00850305ab6415
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
diff --git a/arch/arm64/boot/dts/qcom/fg-gen4-batterydata-alium-3600mah.dtsi b/arch/arm64/boot/dts/qcom/fg-gen4-batterydata-alium-3600mah.dtsi
index e8a8417..64977c7 100644
--- a/arch/arm64/boot/dts/qcom/fg-gen4-batterydata-alium-3600mah.dtsi
+++ b/arch/arm64/boot/dts/qcom/fg-gen4-batterydata-alium-3600mah.dtsi
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -16,14 +16,14 @@
qcom,max-voltage-uv = <4350000>;
qcom,fastchg-current-ma = <5400>;
qcom,jeita-fcc-ranges = <0 100 2500000
- 110 400 3600000
- 410 450 2500000>;
+ 101 400 3600000
+ 401 450 2500000>;
qcom,jeita-fv-ranges = <0 100 4250000
- 110 400 4350000
- 410 450 4250000>;
+ 101 400 4350000
+ 401 450 4250000>;
qcom,step-chg-ranges = <3600000 3800000 5400000
- 3801000 4300000 3600000
- 4301000 4350000 2500000>;
+ 3800001 4300000 3600000
+ 4300001 4350000 2500000>;
/* COLD = 0 DegC, HOT = 45 DegC */
qcom,jeita-hard-thresholds = <0x58cd 0x20b8>;
/* COOL = 10 DegC, WARM = 40 DegC */
diff --git a/arch/arm64/boot/dts/qcom/qg-batterydata-alium-3600mah.dtsi b/arch/arm64/boot/dts/qcom/qg-batterydata-alium-3600mah.dtsi
index 7c18fc1..f033e22 100644
--- a/arch/arm64/boot/dts/qcom/qg-batterydata-alium-3600mah.dtsi
+++ b/arch/arm64/boot/dts/qcom/qg-batterydata-alium-3600mah.dtsi
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -29,8 +29,8 @@
51 400 4350000
401 450 4250000>;
qcom,step-chg-ranges = <3600000 3800000 5400000
- 3801000 4300000 3600000
- 4301000 4350000 2500000>;
+ 3800001 4300000 3600000
+ 4300001 4350000 2500000>;
qcom,ocv-based-step-chg;
/* COOL = 5 DegC, WARM = 40 DegC */
diff --git a/arch/arm64/boot/dts/qcom/qg-batterydata-ascent-3450mah.dtsi b/arch/arm64/boot/dts/qcom/qg-batterydata-ascent-3450mah.dtsi
index 8095f0c..f8afdb4 100644
--- a/arch/arm64/boot/dts/qcom/qg-batterydata-ascent-3450mah.dtsi
+++ b/arch/arm64/boot/dts/qcom/qg-batterydata-ascent-3450mah.dtsi
@@ -22,8 +22,8 @@
51 400 4350000
401 450 4250000>;
qcom,step-chg-ranges = <3600000 3800000 3450000
- 3801000 4300000 2760000
- 4301000 4350000 2070000>;
+ 3800001 4300000 2760000
+ 4300001 4350000 2070000>;
qcom,ocv-based-step-chg;
/* COOL = 5 DegC, WARM = 40 DegC */
diff --git a/arch/arm64/boot/dts/qcom/qg-batterydata-atl466271_3300mAh.dtsi b/arch/arm64/boot/dts/qcom/qg-batterydata-atl466271_3300mAh.dtsi
index 470cb0b..a7f1d33 100644
--- a/arch/arm64/boot/dts/qcom/qg-batterydata-atl466271_3300mAh.dtsi
+++ b/arch/arm64/boot/dts/qcom/qg-batterydata-atl466271_3300mAh.dtsi
@@ -34,8 +34,8 @@
451 550 4050000>;
qcom,step-chg-ranges = <3500000 4000000 8000000
- 4001000 4200000 6000000
- 4201000 4400000 4000000>;
+ 4000001 4200000 6000000
+ 4200001 4400000 4000000>;
qcom,ocv-based-step-chg;
/* COOL = 10 degc, WARM = 45 degC */