Hello.
We have a DM3730 board running Linux v5.7 (not TI's recommended one, I know) and we'd like to wakeup from deep sleep when data arrives on UART2. After some googling and tuning our dts we have managed to get UART3 wakeup working, but not UART2.
We figured that UART1,2 belong to CORE power domain, while UART3 belongs to PER domain. We have read commit 09d8b2bdbc5c61dd6289d78ab4cb57d22dd5e0e6 message in kernel tree, which says:
Note that the UART wakeup events configured in the 8250 hardware only
work for idle modes that do not cut off power for the UART. For deeper
idle states, dedicated padconf wakeirqs must be used. Or in some cases
the UART RX pin can be remuxed to GPIO input if the GPIO block stays
powered.
So we figured to go the remuxing way and built a phony driver with the only purpose to remux the pin back and forth and wait for edge interrupt on the GPIO pin. But still no success.
Can anyone provide or point me at a working example of a remuxing UART's RX pin to GPIO in order to wake up from deep sleep?