Skip to content

Powerbutton driver and powerdown request for TPS65224 PMIC

Job Sava linux-devicetree linux-input lkml 1 version In review

Get series with b4
b4 am 20250520-linux-stable-tps6594-pwrbutton-v1-0-0cc5c6e0415c@criticallink.com change-id 20250403-linux-stable-tps6594-pwrbutton-e056dccc6be5

Versions newest first

  1. v1 Latest3 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dt-bindings: mfd: Add power-button option for TI TPS6594 PMICDocumentation/devicetree/bindings/mfd/ti,tps6594.yaml+15 -010 replies
2/3mfd: tps6594-pwrbutton: Add powerbutton functionalitydrivers/input/misc/Kconfig drivers/input/misc/Makefile drivers/input/misc/tps6594-pwrbutton.c +1 more+160 -23 replies
3/3mfd: tps6594: Adds support for powering off the PMICdrivers/mfd/tps6594-core.c+24 -02 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchDmitry Torokhov
1/3
2/3A-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Powerbutton driver and powerdown request for TPS65224 PMIC

Hello all,

The following patches were created to get the tps65224 PMIC powerbutton driver and power off request working on the MitySOM-AM62PX. The patches are as follows:

1-Powerbutton:
Full implementation
TPS659224 pmic push and release interrupts are now handled by the powerbutton driver. These events now issue a power off request that puts the PMIC into STANDBY mode. tps6594-pwrbutton.c is modeled off the tps65219-pwrbutton.c driver.

2-OFF-request:
The PMIC will now respond to a power off request. This is done by sending the PMIC a command to enter STANDBY mode. The PMIC will then turn off the power to the system.

3-Device tree bindings:
The device tree binding for the TPS65224 PMIC has been updated to include a proper description of the power button functionality.

4-Impact:
Button presses will now be detected reliably by the newly added powerbutton driver. The tps6594-pfsm.c file will no longer handle push and release pushbutton interrupts. This is because the powerbutton driver now manages these interrupts, as intended, which ensures the powerbutton functionality operates independently and correctly.

Regards,
Job Sava
[email protected]
Critical Link LLC

---
Job Sava (3):
dt-bindings: mfd: Add power-button option for TI TPS6594 PMIC
mfd: tps6594-pwrbutton: Add powerbutton functionality
mfd: tps6594: Adds support for powering off the PMIC

 .../devicetree/bindings/mfd/ti,tps6594.yaml        |  15 +++
 drivers/input/misc/Kconfig                         |  10 ++
 drivers/input/misc/Makefile                        |   1 +
 drivers/input/misc/tps6594-pwrbutton.c             | 126 +++++++++++++++++++++
 drivers/mfd/tps6594-core.c                         |  49 +++++++-
 5 files changed, 199 insertions(+), 2 deletions(-)

---
base-commit: a5806cd506af5a7c19bcd596e4708b5c464bfd21
change-id: 20250403-linux-stable-tps6594-pwrbutton-e056dccc6be5

Best regards,

Signature · 1 line
Job Sava <[email protected]>