]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: axp20x_battery: add support for AXP813
authorQuentin Schulz <quentin.schulz@bootlin.com>
Wed, 28 Feb 2018 10:36:00 +0000 (11:36 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.co.uk>
Fri, 9 Mar 2018 15:52:33 +0000 (16:52 +0100)
commit511a0e0c2a89841fb8179580c228024852e9be52
tree91d0895d884d94c26ccfc50bb615c867f47f50ac
parente7d9e3f3d5462327fc4a8587fedd4353ed47ecf9
power: supply: axp20x_battery: add support for AXP813

The X-Powers AXP813 PMIC has got some slight differences from
AXP20X/AXP22X PMICs:
 - the maximum voltage supplied by the PMIC is 4.35 instead of 4.36/4.24
 for AXP20X/AXP22X,
 - the constant charge current formula is different,

It also has a bit to tell whether the battery percentage returned by the
PMIC is valid.

Signed-off-by: Quentin Schulz <quentin.schulz@bootlin.com>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/axp20x_battery.c