zephyr/dts/bindings/serial/uart-controller.yaml
Yishai Jaffe 0df6736bb9 drivers: serial: define default values for basic options
Defined default values for baudrate, parity, stop bits, and data bits.
This removes complexity and obfuscation from the code.

Signed-off-by: Yishai Jaffe <yishai1999@gmail.com>
2025-01-15 19:04:56 +01:00

46 lines
916 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"
default: "none"
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