power: supply: axp20x_battery: allow disabling battery charging
authorHermann Lauer <Hermann.Lauer@iwr.uni-heidelberg.de>
Wed, 12 May 2021 10:58:56 +0000 (12:58 +0200)
committerSebastian Reichel <sre@kernel.org>
Fri, 4 Jun 2021 12:12:42 +0000 (14:12 +0200)
commit6a0fcc87c9e35191d37a8819fdab9d30e523515b
treee33818d9bb69c53b10dd5c96f31775788d8cf712
parentcd70c85c5752f060b09b0cf5b7694717471ce998
power: supply: axp20x_battery: allow disabling battery charging

Allow disabling and re-enabling battery charging of an axp209 PMIC
through a writable status property. With the current driver code
charging is always on.

This works on the axp209 of Banana {Pi M1+,Pro} and should work on all
AXP chips.

Signed-off-by: Hermann.Lauer@uni-heidelberg.de
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/axp20x_battery.c