]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9ec349ea237b5740a31214b516fcff5e1a3fba97
treee74ad3136a555c1ff906a66dc0a61234e7f1f153
parent1db2d9dddf6312f37da41c97529e93c68a777849
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