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:
parent
ab1caef8c3
commit
32f9dcf328
4 changed files with 26 additions and 0 deletions
|
@ -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) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue