axolotl: dts: adjust battery configuration
Change-Id: Ie9a52e4a7bd1766be7b8a3a9b8474294f2020837
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
diff --git a/arch/arm64/boot/dts/qcom/sdm845-qrd.dtsi b/arch/arm64/boot/dts/qcom/sdm845-qrd.dtsi
index afed9b4..932dd8a 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-qrd.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-qrd.dtsi
@@ -161,6 +161,10 @@
qcom,usb-icl-ua = <3000000>;
qcom,auto-recharge-soc;
qcom,fcc-stepping-enable;
+ qcom,step-charging-enable;
+ qcom,thermal-mitigation = <3000 1900 1150 750>;
+
+ /delete-property/ qcom,suspend-input-on-debug-batt;
};
&pmi8998_fg {
@@ -168,9 +172,10 @@
qcom,battery-data = <&qrd_batterydata>;
qcom,fg-auto-recharge-soc;
qcom,fg-recharge-soc-thr = <99>;
- qcom,fg-jeita-thresholds = <0 5 45 50>;
+ qcom,fg-jeita-thresholds = <0 15 45 60>;
qcom,battery-thermal-coefficients = [9d 50 ff];
qcom,fg-chg-term-current = <200>;
+ qcom,hold-soc-while-full;
};
&smb1355_charger_0 {
diff --git a/arch/arm64/boot/dts/qcom/shift/SHIFT_fg_batterydata_3820mah.dtsi b/arch/arm64/boot/dts/qcom/shift/SHIFT_fg_batterydata_3820mah.dtsi
index 49965a9..4d254ea 100755
--- a/arch/arm64/boot/dts/qcom/shift/SHIFT_fg_batterydata_3820mah.dtsi
+++ b/arch/arm64/boot/dts/qcom/shift/SHIFT_fg_batterydata_3820mah.dtsi
@@ -21,6 +21,18 @@
qcom,batt-id-kohm = <100>;
qcom,battery-beta = <3380>;
qcom,battery-type = "SHIFT_3820mAh";
+
+ qcom,soc-based-step-chg;
+ qcom,step-chg-ranges = <0 50 3000000
+ 51 100 1900000>;
+
+ qcom,jeita-fcc-ranges = <0 109 750000
+ 110 209 1150000
+ 210 449 3000000
+ 450 599 1900000>;
+ qcom,jeita-fv-ranges = <0 449 4400000
+ 450 599 4100000>;
+
qcom,checksum = <0x414B>;
qcom,gui-version = "PMI8998GUI - 2.0.0.58";
qcom,fg-profile-data = [