OSDN Git Service

qpnp-fg-gen3: add support for configuring slope limit coefficients
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>
Fri, 10 Feb 2017 02:06:14 +0000 (18:06 -0800)
committerSubbaraman Narayanamurthy <subbaram@codeaurora.org>
Sat, 11 Feb 2017 02:20:07 +0000 (18:20 -0800)
commit6825d0dd4fe87a66915b92c3512413114704836d
treeb83659530ee247a161b5781d1e72cc3eb01af16d
parent1451ae3c730a520baacc3f417abc58147a85fc34
qpnp-fg-gen3: add support for configuring slope limit coefficients

Slope limit coefficient is used to define the maximum change in
battery SOC. There is a requirement to configure slope limit
coefficient based on charging status and battery temperature
threshold. Add support for it through the following properties.

- qcom,slope-limit-temp-threshold
- qcom,slope-limit-coeffs

Possibe values allowed for slope limit coefficient is 0 to 31.

Change-Id: I41eacb13734f1692a16c1b011c58a488e46515ec
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Documentation/devicetree/bindings/power/supply/qcom/qpnp-fg-gen3.txt
drivers/power/supply/qcom/fg-core.h
drivers/power/supply/qcom/qpnp-fg-gen3.c