]> www.infradead.org Git - users/jedix/linux-maple.git/commit
power: supply: initial support for TWL6030/32
authorAndreas Kemnade <andreas@kemnade.info>
Wed, 16 Oct 2024 08:03:13 +0000 (10:03 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 16 Oct 2024 20:23:39 +0000 (22:23 +0200)
commitb45cdceba64d79a2538aeb36926fd9a065f0f753
tree2ba6248e92a9edc2510ba49f5c30d03fb78505ac
parent421aadd19a622852172ccc15ad4049201fd1f80b
power: supply: initial support for TWL6030/32

Add a driver for the charger in the TWL6030/32. For now it does not report
much in sysfs but parameters are set up for USB, charging is enabled with
the specified parameters. It stops charging when full and also restarts
charging.
This prevents ending up in a system setup where you run out of battery
although a charger is plugged in after precharge completed.

Battery voltage behavior was checked via the GPADC.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Link: https://lore.kernel.org/r/20241016080314.222674-3-andreas@kemnade.info
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/Kconfig
drivers/power/supply/Makefile
drivers/power/supply/twl6030_charger.c [new file with mode: 0644]