power: qpnp-charger: add system thermal levels

Some userspace daemons may want to limit the charge
current based on system level temperature.

Add support for this by exposing the POWER_SUPPLY_SYSTEM_TEMP_LEVEL
property and mapping it to the qcom,chg-thermal-mitigation array
in the device tree.

Change-Id: I604cf38f01a410abc23c9b87f686a40bc19b3123
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
4 files changed