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>
This commit is contained in:
Jeroen van Dooren 2023-02-03 09:53:04 +01:00 committed by Kumar Gala
parent 6c5d806bcb
commit 0234f1295a

View File

@ -23,3 +23,22 @@ properties:
- "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