mfd: tps6594: Add board power-off support
authorMichael Walle <mwalle@kernel.org>
Tue, 26 Aug 2025 13:46:31 +0000 (15:46 +0200)
committerLee Jones <lee@kernel.org>
Wed, 3 Sep 2025 10:28:36 +0000 (11:28 +0100)
commit2215a87b02ad8d353cd3edebd1bed01db2458986
tree385040e1af68699e74f13ca1a67e48d3625395d8
parentd766ca01c208bdf0f36098607efe1e250ccf41c5
mfd: tps6594: Add board power-off support

Add a system level power-off handler if the "system-power-controller"
flag is set for this device in the device tree.

A power-off request is triggered by writing the TRIGGER_I2C_0 bit (which
is actually just a convention and really depends on the freely
programmable FSM).

Co-developed-by: Job Sava <jsava@criticallink.com>
Signed-off-by: Job Sava <jsava@criticallink.com>
Signed-off-by: Michael Walle <mwalle@kernel.org>
Link: https://lore.kernel.org/r/20250826134631.1499936-4-mwalle@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/tps6594-core.c