Showing results for 
Search instead for 
Did you mean: 

STM32MP15 gpio power-off only for shutdown?


Hi there, 

I'm developing a Linux Embedded system on an STM32MP153-based custom board. 
I have a problem regarding shutdown vs low power modes. 
I have a gpio (active low) that acts as a "final switch off" for the whole system (a.k.a. when that gpio goes down, the board is no longer powered). I need this gpio to act like that only when the user asks for a shutdown. When entering any low-power mode (sleep/stop/standby), that gpio is not toggled. 
Of course, I could lower the signal of the gpio in the user space, but this would cause a dirty power off of the whole system, and that's not good (I think?). 

Is there a clean/official way to achieve that result? 

Thanks for your help!