power: supply: axp20x_battery: add support for DT battery
authorQuentin Schulz <quentin.schulz@free-electrons.com>
Thu, 11 May 2017 13:42:17 +0000 (15:42 +0200)
committerSebastian Reichel <sre@kernel.org>
Thu, 8 Jun 2017 15:57:51 +0000 (17:57 +0200)
commitf8c91bae0c37dfc5aecc49cafc5c1ea9d9227731
treee74ad3136a555c1ff906a66dc0a61234e7f1f153
parentccce440956c79343ab3aa1269a4cf57f9cce030f
power: supply: axp20x_battery: add support for DT battery

This adds support in X-Powers AXP20X and AXP22X battery driver for a
fixed battery in DT.

It will take the minimum supported voltage by the battery as defined in
the battery DT node and set the V_OFF register to this value, telling
the system to shut down if the supplied power is below this value.

Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/axp20x_battery.c