@@ -19,9 +19,7 @@ properties:
- const: allwinner,sun6i-a31-rtc
- const: allwinner,sun8i-a23-rtc
- const: allwinner,sun8i-h3-rtc
- - items:
- - const: allwinner,sun8i-r40-rtc
- - const: allwinner,sun8i-h3-rtc
+ - const: allwinner,sun8i-r40-rtc
- const: allwinner,sun8i-v3-rtc
- const: allwinner,sun50i-h5-rtc
- items:
@@ -32,6 +30,8 @@ properties:
maxItems: 1
interrupts:
+ minItems: 1
+ maxItems: 2
items:
- description: RTC Alarm 0
- description: RTC Alarm 1
@@ -69,6 +69,7 @@ allOf:
contains:
enum:
- allwinner,sun8i-a23-rtc
+ - allwinner,sun8i-r40-rtc
- allwinner,sun8i-v3-rtc
then:
@@ -91,6 +92,24 @@ allOf:
minItems: 3
maxItems: 3
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: allwinner,sun8i-r40-rtc
+
+ then:
+ properties:
+ interrupts:
+ minItems: 1
+ maxItems: 1
+
+ else:
+ properties:
+ interrupts:
+ minItems: 2
+ maxItems: 2
+
required:
- "#clock-cells"
- compatible