pmaports/device/unmaintained/linux-bq-paella-downstream/picmt-smb1360-like-mainline.patch
Minecrell aa1eefc44a
unmaintained/bq-paella-downstream: cleanup, add various debug patches (MR 2081)
These are various debugging related patches that I have used over the time
when attempting to get new features working for the mainline kernel.
Given that the downstream kernel is just intended for debugging in this case,
it seems convenient to add them to pmaports so I don't need to go search for
them in case I need them again in the future.

[ci:skip-build] Already built on CI
2021-03-31 23:49:26 +03:00

34 lines
1.1 KiB
Diff

Change SMB1360 configuration to match what we use for the mainline driver.
This makes it easier to compare the registers programmed by the downstream driver
with the mainline driver.
diff --git a/arch/arm/boot/dts/qcom/picmt.dts b/arch/arm/boot/dts/qcom/picmt.dts
index cfb53665..b9c82ed2 100644
--- a/arch/arm/boot/dts/qcom/picmt.dts
+++ b/arch/arm/boot/dts/qcom/picmt.dts
@@ -320,7 +320,7 @@
qcom,fg-batt-capacity-mah = <2810>;
qcom,fg-cc-soc-coeff = <0x81D5>;
qcom,fg-delta-soc = <1>;
- qcom,fg-soc-min = <3>;
+ qcom,fg-soc-min = <15>;
qcom,fg-cutoff-voltage-mv = <3400>;
qcom,fg-iterm-ma = <100>;
@@ -330,14 +330,14 @@
qcom,float-voltage-mv = <4400>;
qcom,iterm-ma = <100>;
- qcom,charging-timeout = <768>;
+ qcom,charging-timeout = <192>;
qcom,fg-reset-at-pon;
qcom,rsense-10mhom;
qcom,fg-reset-thresold-mv = <200>;
qcom,otg-batt-curr-limit = <1500>;
qcom,recharge-thresh-mv = <50>;
qcom,thermal-mitigation = <1500 700 600 0>;
- qcom,fg-auto-recharge-soc = <97>;
+ qcom,fg-auto-recharge-soc = <95>;
qcom,empty-soc-disabled;
regulator-name = "smb1360_otg_vreg";
qcom,awake-min-soc;