Hi Biser and Miroslav,
We used am335x sitara evm's design as a reference in our custom design. So before performing power off experiment in our custom design, i tried to perform same experiment in evm first.
Evm has power button which successfully power off the board after pressing it for more then 8 secs.
Now I tried to power off the board using software command which is poweroff. This command shows following logs,
Deactivating swap...
Unmounting local filesystems...
[ 41.088073] musb-hdrc musb-hdrc.1: remove, state 1
[ 41.093170] usb usb1: USB disconnect, device number 1
[ 41.099090] musb-hdrc musb-hdrc.1: USB bus 1 deregistered
[ 41.105163] System halted.
This command didn't work because power off is not supported in rtc-omap driver. So I enabled the power off support in board file as follows arm/arch/mach-omap2/board-am335xevm.c,
static struct omap_rtc_pdata am335x_rtc_info = {
// .pm_off = false,
.pm_off = true,
.wakeup_capable = 0,
};
and then apply poweroff command which has following logs,
Deactivating swap...
Unmounting local filesystems...
[ 42.395385] musb-hdrc musb-hdrc.1: remove, state 1
[ 42.400451] usb usb1: USB disconnect, device number 1
[ 42.406372] musb-hdrc musb-hdrc.1: USB bus 1 deregistered
[ 42.412445] Power down.
[ 42.415008] System will go to power_off state in approx. 2 secs
As per the logs support is added successfully but the board didn't got power off state even after more then 2 seconds.
Is there anything that I am missing ? seeking quick response.
Thanks and Regards,
Shabbir Limdiwala