drivers: uart: Add support for st single wire mode

An additional devicetree poperty `single-wire` is added
to uart and usart bindings of stm32. The driver checks this value
during initialization and enables the single wire mode when set.

Signed-off-by: Jonathan Hahn <Jonathan.Hahn@t-online.de>
This commit is contained in:
Jonathan Hahn 2022-01-01 23:41:19 +01:00 committed by Carles Cufí
commit 32f9dcf328
4 changed files with 26 additions and 0 deletions

View file

@ -23,6 +23,8 @@ struct uart_stm32_config {
bool hw_flow_control;
/* initial parity, 0 for none, 1 for odd, 2 for even */
int parity;
/* switch to enable single wire / half duplex feature */
bool single_wire;
const struct pinctrl_dev_config *pcfg;
#if defined(CONFIG_PM) \
&& !defined(CONFIG_UART_INTERRUPT_DRIVEN) \