driver/uart: add enum parity element on devicetree bindings
It helps configurations of the parity mode for uart interfaces Signed-off-by: Luc Viala <lviala@zaack.io>
This commit is contained in:
parent
8ea58d4389
commit
7105875ff4
6 changed files with 23 additions and 22 deletions
|
@ -1572,7 +1572,7 @@ static const struct uart_stm32_config uart_stm32_cfg_##index = { \
|
|||
.enr = DT_INST_CLOCKS_CELL(index, bits) \
|
||||
}, \
|
||||
.hw_flow_control = DT_INST_PROP(index, hw_flow_control), \
|
||||
.parity = DT_INST_PROP_OR(index, parity, UART_CFG_PARITY_NONE), \
|
||||
.parity = DT_ENUM_IDX_OR(DT_DRV_INST(index), parity, UART_CFG_PARITY_NONE), \
|
||||
.pinctrl_list = uart_pins_##index, \
|
||||
.pinctrl_list_size = ARRAY_SIZE(uart_pins_##index), \
|
||||
}; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue