drivers: serial: Smartbond: add support RX line wakeup

This change allows to wake up UART from sleep mode when
low level on inactive UART is detected during platform sleep.

Timeout can be specified for each UART separately in device tree.
If one of the UARTs is selected as console sleep timeout is taken
from Kconfig same way other platform configure same functionality
using CONFIG_UART_CONSOLE_INPUT_EXPIRED_TIMEOUT

Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg@codecoup.pl>
This commit is contained in:
Jerzy Kasenberg 2023-08-22 15:15:31 +02:00 committed by Anas Nashif
commit f10b77364a
4 changed files with 156 additions and 5 deletions

View file

@ -38,3 +38,12 @@ properties:
hw-flow-control-supported:
type: boolean
description: Set to indicate RTS/CTS flow control is supported.
rx-wake-gpios:
type: phandle-array
description: GPIO configured as wake source
rx-wake-timeout:
type: int
description: |
Time to prevent UART entering sleep mode after receiving data (ms)