Skip to content

Commit 9eae6fd

Browse files
Bjarki Arge Andreasencarlescufi
Bjarki Arge Andreasen
authored andcommitted
dts/bindings/rtc/rtc-device.yaml: alarms-count optional
This commit makes the alarms-count dts property of the rtc-device.yaml optional, setting the default to 0. This simplifies the dts rtc dts node by not requiring the property to be set to 0 if it is not supported. Signed-off-by: Bjarki Arge Andreasen <[email protected]>
1 parent 20bbb53 commit 9eae6fd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

dts/bindings/rtc/rtc-device.yaml

+5-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33

44
include: base.yaml
55

6-
description: RTC device common bindings
6+
description: RTC (real-time clock) device common bindings
77

88
properties:
99
alarms-count:
1010
type: int
11-
required: true
11+
default: 0
1212
description: |
13-
Number of alarms supported by RTC device
13+
Number of alarms supported by RTC device. The number of
14+
alarms defaults to 0, which indicates that the RTC has
15+
no alarms.

0 commit comments

Comments
 (0)