diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2014-02-06 12:02:26 +0530 |
---|---|---|
committer | Laxman Dewangan <ldewangan@nvidia.com> | 2014-02-11 22:00:24 -0800 |
commit | 5a3797606cb5f2f38b484fa85af7be770c0f7232 (patch) | |
tree | 45c733234bc69f34bab87830bdc26677870b1e0f /Documentation | |
parent | 1b39b41e8a15d97a862160f4c36ef8749a2ca6f9 (diff) |
power: lc709203f: adjust the SoC based on platform specific need
Sometimes platform needs to adjust the SoC reporting to framework
based on battery its use and parameter programmed on the FG.
Adjust SoC read from device to 0 to 100% before reporting to framework
based on (minimum_soc, maximum_soc) possible on that platform.
bug 1445682
Change-Id: Ia69f4061598fc9dbbed502e6eb8f3f7a7dfd8529
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/364206
(cherry picked from commit a806b7208e72be7ee3f884471bf8f90275592144)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: Iec6c5ef18a53cbb4be940f6827d2207509b96f26
Reviewed-on: http://git-master/r/365859
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/power_supply/lc709203f_battery.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/power_supply/lc709203f_battery.txt b/Documentation/devicetree/bindings/power_supply/lc709203f_battery.txt index 0a2c4907d71a..0a2d75200a90 100644 --- a/Documentation/devicetree/bindings/power_supply/lc709203f_battery.txt +++ b/Documentation/devicetree/bindings/power_supply/lc709203f_battery.txt @@ -10,6 +10,13 @@ Optional properties: - onsemi,thermistor-beta : THERMISTOR_B register value to be written - onsemi,appli-adjustment: adjustment appli of parameter. - onsemi,thermistor-adjustment: adjustment thermistor pack. + - onsemi,kernel-threshold-soc: Minimum SoC for kernel read from device. + Bootloader jumps to kernel when SoC is more than this value. + Driver make this SoC as 0% before reporting it to teh framework. + - onsemi,kernel-maximum-soc: Maximum SoC for kernel read from device. + Kernel read maximum SoC from device for given battery. Kernel + translate the SoC to 100% before reporting to framework if it + reads equal/more than this value. Note: The device has capabilty to read battery temp through thermistor. This also calulate SoC based on temperature of battery. If thermistor @@ -32,4 +39,6 @@ Example: onsemi,tz-name = "battery-temp"; onsemi,thermistor-beta = 0x0d34; onsemi,initial-rsoc = 0xAA55; + onsemi,kernel-threshold-soc = <5>; + onsemi,kernel-maximum-soc = <99>; }; |