From ff753ada17b532d46426a81ecaf78064b96ec35d Mon Sep 17 00:00:00 2001 From: Subbaraman Narayanamurthy Date: Mon, 19 Sep 2016 11:17:59 -0700 Subject: power: qpnp-fg-gen3: fix SRAM encodings There are some encoding changes to the following configurations in pmi8998 SRAM. Update them. For both v1.1 and v2.0, - No sign bit for charge termination current For v2.0, - 6 bit encoding for empty voltage and vbatt_low While at it, fix the SRAM byte location from byte 2 to byte 3 for configuring empty voltage threshold in pmi8998v2.0. CRs-Fixed: 1068592 Change-Id: I3a301aed1b23ab78aa86b24c11eb750502adab2f Signed-off-by: Subbaraman Narayanamurthy --- Documentation/devicetree/bindings/power/qcom-charger/qpnp-fg-gen3.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Documentation/devicetree') diff --git a/Documentation/devicetree/bindings/power/qcom-charger/qpnp-fg-gen3.txt b/Documentation/devicetree/bindings/power/qcom-charger/qpnp-fg-gen3.txt index bd236df6c056..199b5c0857f8 100644 --- a/Documentation/devicetree/bindings/power/qcom-charger/qpnp-fg-gen3.txt +++ b/Documentation/devicetree/bindings/power/qcom-charger/qpnp-fg-gen3.txt @@ -78,7 +78,9 @@ First Level Node - FG Gen3 device Definition: Battery current (in mA) at which the fuel gauge will try to scale towards 100%. When the charge current goes above this the SOC should be at 100%. If this property is not - specified, then the default value used will be 125mA. + specified, then the default value used will be -125mA. + This value has to be specified in negative values for + the charging current. - qcom,fg-delta-soc-thr Usage: optional -- cgit v1.2.3