[PATCH 0/4] power: supply: Add support for liquid detection

From: Waqar Hameed

Date: Wed Oct 28 2026 - 17:56:43 EST


During discussions of the development of a new driver [1], it was
concluded that a new `sysfs` ABI for reporting and controlling liquid
detection is wanted. This patchset introduces this.

Since there are currently not many devices with support for this. ABI
for setting/getting detection threshold values has been left out (as
discussed in [1]). Hopefully when more devices are supported, a good
common way to specify this will be designed.

[1] https://lore.kernel.org/lkml/cover.1772201049.git.waqar.hameed@xxxxxxxx/

Waqar Hameed (4):
power: supply: Add sysfs entry for liquid detection control
power: supply: Add liquid detection to health property enum
power: supply: bq25630: Add macro define for IRQ cycle time
power: supply: bq25630: Add support for liquid detection

Documentation/ABI/testing/sysfs-class-power | 22 ++-
drivers/power/supply/bq25630_charger.c | 163 +++++++++++++++++++-
drivers/power/supply/power_supply_sysfs.c | 9 ++
include/linux/power_supply.h | 9 ++
4 files changed, 199 insertions(+), 4 deletions(-)


base-commit: 151a134a4e6ec66f69db8750c66006f5207f7a9d
--
2.43.0