From 9eae6fda9930eb1ae674d02f6992dbbc274fbd2a Mon Sep 17 00:00:00 2001 From: Bjarki Arge Andreasen Date: Wed, 5 Apr 2023 20:20:15 +0200 Subject: [PATCH] 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 --- dts/bindings/rtc/rtc-device.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dts/bindings/rtc/rtc-device.yaml b/dts/bindings/rtc/rtc-device.yaml index 07f12aacaab..cb231a8795b 100644 --- a/dts/bindings/rtc/rtc-device.yaml +++ b/dts/bindings/rtc/rtc-device.yaml @@ -3,11 +3,13 @@ include: base.yaml -description: RTC device common bindings +description: RTC (real-time clock) device common bindings properties: alarms-count: type: int - required: true + default: 0 description: | - Number of alarms supported by RTC device + Number of alarms supported by RTC device. The number of + alarms defaults to 0, which indicates that the RTC has + no alarms.