zephyr/dts/bindings/serial/uart-controller.yaml
Jeroen van Dooren 0234f1295a drivers: serial: binding: add devicetree init support
Extend the binding to allow compiletime configuration of
of the stopbits and databits.

Signed-off-by: Jeroen van Dooren <jeroen.van.dooren@nobleo.nl>
2023-04-14 08:49:04 -05:00

45 lines
896 B
YAML

# Common fields for UART controllers
include: base.yaml
bus: uart
properties:
clock-frequency:
type: int
description: Clock frequency information for UART operation
current-speed:
type: int
description: Initial baud rate setting for UART
hw-flow-control:
type: boolean
description: Set to enable RTS/CTS flow control at boot time
parity:
type: string
description: |
Configures the parity of the adapter. Enumeration id 0 for none, 1 for odd
and 2 for even parity. Default to none if not specified.
enum:
- "none"
- "odd"
- "even"
stop-bits:
type: string
description: |
Sets the number of stop bits.
enum:
- "0_5"
- "1"
- "1_5"
- "2"
data-bits:
type: int
description: |
Sets the number of data bits.
enum:
- 5
- 6
- 7
- 8
- 9