Skip to content

drivers:power: Add a custom poweroff module for dual-espresso

Felix Gerking requested to merge dual-espresso_custom-poweroff into linux-5.15.32-seco

The module monitors a gpio state and calls the kernel restart handler when the gpio has a specific state. This done by assigning a the monitor routine to the pm_power_off function pointer. In this way, the monitoring starts as the last step of a shutdown -P call. Devicetree properties:

  • init-delay-ms: Set an initial delay until the monitoring is started
  • monitor-delay-ms: Poll delay of the gpio

BCS 746-001083

Merge request reports