Other Parts Discussed in Thread: SYSCONFIG
Tool/software: Linux
Hello
I am currently using a custom built kernel based on 4.11.12, but I have confirmed the same configuration exists in the latest 4.9 ti-sdk.
I have the latest PM main line patches applied, I am able to suspend and resume from DeepSleep0 and Standby via a GPIO0 line and UART0. So the functionality is there in my configuration.
I need to wake from Standby via a GPIO2 pin. I have narrowed my issue to the ENAWAKEUP bit in the GPIO_SYSCONFIG. It is not being set by the drivers in the SDK nor mainline source.
While digging into that, I am noticing there are register offsets being manipulated for wakeup enables that are not defined in the technical ref for the AM335x family.
Namely, #define OMAP4_GPIO_WAKE_EN 0x0120
That offset is not listed in the GPIO register definition, and so far I have not been able to find who is actually setting the wakeup enable bit. I am able to manually poke the register with dev2mem, get a sucessful wakeup cycle, but when I look at the register again it has been put back to disabled. I have a feeling the context restore in the driver is doing it, but I find no direct reference to the register.
The mainline and SDK drivers are the same, so it seems to exist across the board. I find alot of threads about trying to wake from a non GPIO0 pin, but no reference to this bit which seems to make it work.
Any thoughts from the software team?
Matt