Skip to content

Commit da9934a

Browse files
AaronDotalexandrebelloni
authored andcommitted
dt-bindings: rtc: loongson: Correct Loongson-1C interrupts property
The `interrupts` property indicates an RTC alarm interrupt, which is required for RTCs that support the alarm feature, which is not supported by the Loongson-1C RTC. We exclude it for a more accurate description. Changing the `allowed` property is ABI-breaking behavior, but throughout the existing Loongson DTS{i}, the description of the RTC nodes conforms to the modified bingding rules. Thus, the existing Loongson DTS{i} will not be affected. Fixes: 487ef32 ("dt-bindings: rtc: Split loongson,ls2x-rtc into SoC-based compatibles") Reviewed-by: Huacai Chen <chenhuacai@loongson.cn> Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://patch.msgid.link/b6295c907410f6708115cba4df0959ee6629f8a5.1768616276.git.zhoubinbin@loongson.cn Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent f3ac75c commit da9934a

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Documentation/devicetree/bindings/rtc/loongson,rtc.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,17 @@ required:
4242

4343
unevaluatedProperties: false
4444

45+
if:
46+
properties:
47+
compatible:
48+
contains:
49+
enum:
50+
- loongson,ls1c-rtc
51+
52+
then:
53+
properties:
54+
interrupts: false
55+
4556
examples:
4657
- |
4758
#include <dt-bindings/interrupt-controller/irq.h>

0 commit comments

Comments
 (0)