I'm working on a custom embedded project using the iMX7D. To save power we are utilizing Deep Sleep Mode (DSM). There is a radio that is powered while in DSM, and data transferred via USB. When the SoC is in DSM, and a data packet arrives over USB I'd like to wake up the SoC.
I've been able to do this successfully with a push button connected to a GPIO line. By adding...
...to the push button GPIO block in my dts.
After reading some dts documentation I found...
...and inserted that into the USB block in the dts, assuming it would work the same as GPIO. This doesn't seem to be the case, and I'm probably missing a step.
vbus-supply = <®_usb_otg2_vbus>;
dr_mode = "host";
status = "okay";
I have not edited the pinmux or dts for USB aside from adding wakeup source, as USB on our custom design in the same as on the iMX7D Sabre SD reference design. With the radio connected to usbotg2.
Is there anything else that needs to be done to enable USB as a wakeup source? Something i'm missing?