From e87ce0600af8aaf4622b69192b3a54fc8e3c8435 Mon Sep 17 00:00:00 2001 From: Ashish Chavan Date: Tue, 29 Dec 2020 23:01:06 +0530 Subject: [PATCH] dt-bindings: batterydata: Add jeita-fcc-scaling related properties Add below propeties to enable and configure jeita-fcc-scaling algorithm : qcom,jeita-fcc-scaling qcom,jeita-fcc-scaling-temp-threshold qcom,jeita-scaling-min-fcc-ua All of this property needs to be set with valid values to enable jeita based fcc scaling. Change-Id: Ifa764a615f301136a1741ee412d9d10388718caa --- bindings/batterydata/batterydata.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/bindings/batterydata/batterydata.txt b/bindings/batterydata/batterydata.txt index 29b75cd47b57..734f7817d464 100644 --- a/bindings/batterydata/batterydata.txt +++ b/bindings/batterydata/batterydata.txt @@ -153,6 +153,21 @@ Profile data node optional properties: This should be in decidegree and if not specified default select value is 10 DeciDegC. +- qcom,jeita-fcc-scaling: A bool property to indicate if temperature based + jeita fcc scaling is enabled. If defined, enables + scaling of FCC based on battery-temperature. Scales + the FCC depending upon the granularity of increase in + battery temperature. +- qcom,jeita-fcc-scaling-temp-threshold: A tuple entry to allow configuring the + min and max battery temperature threshold (in DeciDegC) + for jeita fcc scaling algorithm to kick in. + +- qcom,jeita-scaling-min-fcc-ua : This value corresponds to the minimum FCC (in uA) of + the battery to be applied when battery temperature hits the max + temperature indicated it "qcom,jeita-fcc-scaling-temp-threshold". + This value is selected based on profiling after making sure that + the battery-temperature does not rise at this FCC. + Profile data node required subnodes: - qcom,fcc-temp-lut : An 1-dimensional lookup table node that encodes temperature to fcc lookup. The units for this lookup