Skip to content

Commit 84e1ea0

Browse files
erwangocarlescufi
authored andcommitted
dts/bindings/clocks: stm32l0-msi-clock: Use enum for allowed values
Use enum to describe the range of allowed MSI values. This will help to detect configuration issues earlier. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent da370ea commit 84e1ea0

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

dts/bindings/clock/st,stm32l0-msi-clock.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ properties:
1717
default: 5
1818
description: |
1919
MSI clock ranges
20-
0: range 0 around 65.536 kHz
21-
1: range 1 around 131.072 kHz
22-
2: range 2 around 262.144 kHz
23-
3: range 3 around 524.288 kHz
24-
4: range 4 around 1.048 MHz
25-
5: range 5 around 2.097 MHz (reset value)
26-
6: range 6 around 4.194 MHz
20+
enum:
21+
- 0 # range 0, around 65.536 kHz
22+
- 1 # range 1, around 131.072 kHz
23+
- 2 # range 2, around 262.144 kHz
24+
- 3 # range 3, around 524.288 kHz
25+
- 4 # range 4, around 1.048 MHz
26+
- 5 # range 5, around 2.097 MHz (reset value)
27+
- 6 # range 6, around 4.194 MHz

0 commit comments

Comments
 (0)