File tree Expand file tree Collapse file tree 1 file changed +31
-9
lines changed
Documentation/devicetree/bindings/watchdog Expand file tree Collapse file tree 1 file changed +31
-9
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,16 @@ description:
19
19
isn't cleared, the watchdog will reset the system unless the watchdog
20
20
reset is disabled.
21
21
22
- allOf :
23
- - $ref : watchdog.yaml#
24
-
25
22
properties :
26
23
compatible :
27
- enum :
28
- - starfive,jh7100-wdt
29
- - starfive,jh7110-wdt
24
+ oneOf :
25
+ - enum :
26
+ - starfive,jh7100-wdt
27
+ - starfive,jh7110-wdt
28
+ - items :
29
+ - enum :
30
+ - starfive,jh8100-wdt
31
+ - const : starfive,jh7110-wdt
30
32
31
33
reg :
32
34
maxItems : 1
@@ -45,9 +47,8 @@ properties:
45
47
- const : core
46
48
47
49
resets :
48
- items :
49
- - description : APB reset
50
- - description : Core reset
50
+ minItems : 1
51
+ maxItems : 2
51
52
52
53
required :
53
54
- compatible
@@ -56,6 +57,27 @@ required:
56
57
- clock-names
57
58
- resets
58
59
60
+ allOf :
61
+ - $ref : watchdog.yaml#
62
+
63
+ - if :
64
+ properties :
65
+ compatible :
66
+ contains :
67
+ enum :
68
+ - starfive,jh8100-wdt
69
+ then :
70
+ properties :
71
+ resets :
72
+ items :
73
+ - description : Core reset
74
+ else :
75
+ properties :
76
+ resets :
77
+ items :
78
+ - description : APB reset
79
+ - description : Core reset
80
+
59
81
unevaluatedProperties : false
60
82
61
83
examples :
You can’t perform that action at this time.
0 commit comments