serial: 8250: omap: set out-of-band wakeup if wakeup pinctrl exists
PATCH v2 1/1 serial: 8250: omap: set out-of-band wakeup if wakeup pinctrl exists
In TI K3 SoCs, I/O daisy chaining is used to allow wakeup from UART when the UART controller is off. Set UART device as wakeup capable using out-of-band wakeup if the 'wakeup' pinctrl state exists and the device may wakeup.
---
Testing
-------
Tested on a AM62P SK EVM board. Suspend/resume verified with the Main UART wakeup source by entering a keypress on the console.
This github branch has all the necessary patches to test the patch using Main UART as a wakeup source:
https://github.com/kwillis01/linux/tree/v6.19/uart-daisy-chain/all
---
Changes in v2:
- Remove extraneous information about patches that need to be implemented to allow Main UART wakeup on K3 TI SoCs.
- Link to v1: https://lore.kernel.org/r/[email protected]
--- drivers/tty/serial/8250/8250_omap.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/tty/serial/8250/8250_omap.c +2 -0
@@ -1363,6 +1363,8 @@ static int omap8250_select_wakeup_pinctrl(struct device *dev,if (!device_may_wakeup (dev))return 0 ; +device_set_out_band_wakeup (dev); +return pinctrl_select_state (priv->pinctrl, priv->pinctrl_wakeup); }
---
base-commit: 46fe65a2c28ecf5df1a7475aba1f08ccf4c0ac1b
change-id: 20251230-uart-wakeup-00faeac7c994
Best regards,
Signature · 1 line
Kendall Willis <[email protected]>
Quoted 6 lines · Kendall Willis
In TI K3 SoCs, I/O daisy chaining is used to allow wakeup from UART when the UART controller is off. Set UART device as wakeup capable using out-of-band wakeup if the 'wakeup' pinctrl state exists and the device may wakeup.
Reviewed-by Dhruva Gole <[email protected]>Signed-off-by Kendall Willis <[email protected]>