power: qpnp-charger: add JEITA compliance support

Add JEITA compliance support by adding cool and warm
threshold levels which are configured in the BTM
module.

Once either a warm or cool level is triggered take
adequate action to adjust charge current and target
voltages of the battery.

Since this change introduces a lot of new devicetree
options fix the handling of required and optional
properties in the probe function such that the driver
only bails when a required property is missing.

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