drivers:power: Add a custom poweroff module for dual-espresso
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