Therefore, what you could do is to create a systemd service to put your system to sleep/suspend once the boot is complete. Otherwise, you could make your application to do so once it starts. Then you could use a GPIO as wake-up source.
Please tell us if this helps you already or if you’d need further assistance.
Why exactly do you want to suspend your board once you power it? Is your goal to have a power-on button or a wake-up button?
Ans- The final goal is to use a GPIO as a power on button. with use case where user can press and hold this button(for X Seconds) to turn on the toradex.
Which image do you intend to use? Is this one of our Reference Images or TorizonCore?
Ans - The plan is to use Reference image( Customize it if required)
Which carrier board are you going to use?
Ans - Ixora V1.2A Board.
I misunderstood the scope of U-Boot I guess.
The intend was to make toradex wait for above push button hold, even before boot up (ie even before kernel loading). Since this state will be only waiting for GPIO i referred it as a “low power or sleep state”.
If u-boot cannot perform this , at which level can we modify to implement this scenario ?
Basically what happens on Ixora is that once you plug it in, if you have the JP1 disconnected, once you connect the power supply, you’ll be in the off state. Then, once you press SW1, the module will change to power state Run where it will load kernel, device trees and so on. The other lower power consumption scenario would be the suspended case. To enter into the suspend case, however, you need to have your module running and then send a suspend request as we proposed here:
there are different Push button controllers available with different timing settings or adjustable timing . In your case, you can build a custom board and use a little micro controller instead of the linear push button controller. then you can programm the timing you want.
The Apalis SOM has already a pin which can be used to shut down the Carrier board.
The Apalsi SOM is design to power up whenever the supplie voltage is avaliable.
So if you want to power up the SOM via push button you can use the push button controller or a microcontroler on your carrier board. This is saves you power since you can shut down the power consuming peripherals on your carrier as well.