]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
power: supply: axp20x_battery: add support for AXP717
authorChris Morgan <macromorgan@hotmail.com>
Wed, 21 Aug 2024 21:54:55 +0000 (16:54 -0500)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 3 Sep 2024 21:54:58 +0000 (23:54 +0200)
commit6625767049c2e0960ba9835392a6ef9143170be6
treef71eec1608d9ad77740554a298e6c01afe57ca22
parent75098176d17fab88c06120b453b4b0d1641e2a41
power: supply: axp20x_battery: add support for AXP717

Add support for the AXP717 PMIC battery charger. The AXP717 differs
greatly from existing AXP battery chargers in that it cannot measure
the discharge current. The datasheet does not document the current
value's offset or scale, so the POWER_SUPPLY_PROP_CURRENT_NOW is left
unscaled.

Tested-by: Philippe Simons <simons.philippe@gmail.com>
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Link: https://lore.kernel.org/r/20240821215456.962564-15-macroalpha82@gmail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/axp20x_battery.c