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>
30 lines
664 B
YAML
30 lines
664 B
YAML
description: Altera UART
|
|
|
|
compatible: "altr,uart"
|
|
|
|
include: uart-controller.yaml
|
|
|
|
properties:
|
|
reg:
|
|
required: true
|
|
description: Base address of the uart controller.
|
|
|
|
current-speed:
|
|
required: true
|
|
description: Default baudrate of the uart controller.
|
|
|
|
stop-bits:
|
|
description: |
|
|
Sets the number of stop bits. Defaults to standard of 1 if not specified.
|
|
default: "1"
|
|
|
|
data-bits:
|
|
description: |
|
|
Sets the number of data bits. Defaults to standard of 8 if not specified.
|
|
default: 8
|
|
|
|
fixed-baudrate:
|
|
type: boolean
|
|
description: |
|
|
Baud rate cannot be changed by software (Divisor register is not writable)
|