Hi,
I need to resume my system from suspend after "echo mem > /sys/power/state".
Currently I can only get it by UART0 that I am using for serial console. I want to use a GPIO0 that I'm using for UART5 as wakeup source:
According to AM335X TRM, UART5 is not a DS0 wakeup source, but UART5_RXD is at pin GPIO0_0, and GPIO0 is a valid DS0 wake-up source. Since UART5_RXD could be configured as UART in active mode and GPIO in suspend mode, I am trying to modify my device tree to add a gpio-keys at GPIO0_0 with wakeup-source property but it does not resume when something arrives at UART5_RXD (now gpio0_0).
I have no experience with device tree, could anybody help me to configure AM335x to wake up when it receives a command by UART5 while it uses the same pin as UART5 while normal execution?
Best regards