Skip to content

Commit 6d34d6b

Browse files
peterniebertcarlescufi
authored andcommitted
dts: added constraints for baudrates of UARTs in Nordic SOCs
UARTs in Nordic devices only support a specified list of baud rates. Choosing a different baud rate without this patch will cause a runtime error, whereas with the constraint, this mistake is already found in dts construction with a useful error message. Signed-off-by: Peter Niebert <[email protected]>
1 parent 3a500df commit 6d34d6b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

dts/bindings/serial/nordic,nrf-uart-common.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,27 @@ properties:
4343
description: |
4444
The CTS pin to use. The pin numbering scheme is the same as the
4545
tx-pin property's.
46+
47+
current-speed:
48+
description: |
49+
Initial baud rate setting for UART. Only a fixed set of baud
50+
rates are selectable on these devices.
51+
enum:
52+
- 1200
53+
- 2400
54+
- 4800
55+
- 9600
56+
- 14400
57+
- 19200
58+
- 28800
59+
- 31250
60+
- 38400
61+
- 56000
62+
- 57600
63+
- 76800
64+
- 115200
65+
- 230400
66+
- 250000
67+
- 460800
68+
- 921600
69+
- 1000000

0 commit comments

Comments
 (0)