Hi Igor,
Could you please share wake source example with w.r.to CortexM4.
By referring IMXLUG (Rev. L4.14.62_1.0.0_beta, 11/2018 ),I could configure the debug port as wake source as below and it works fine.
echo enabled > /sys/class/tty/ttymxc0/power/wakeup
Some of the interfaces are handled from Cortex-M4 through RTOS.(Say flexcan).I would like to configure CAN as wake source and wake the system.
As part of my experiments I have done below
Step 1 : Configuring the wake source in CAN controller (RTOS configuration)
- WAKSRC bit to 1
- SLFWAK bit to 1
Step 2 : echo mem > /sys/power/state in Linux console and made system to low power mode.
Step 3 : send CAN data to the system
Step 4 : checking wakeup is happened or not Linux - Not waking the system.
I could see in RM that iMXQ8XP interrupt logic are handled by IRQ STEER and GIC.

I feel Cortex M4 interrupts are routed through IRQ steer logic and somewhere.Am I missing the wake source configuration something related same?
Could you please comment and requesting to share if documentation is available on the same topic.
Thank you