Skip to content

Commit 6e6f320

Browse files
JiShengTeohWim Van Sebroeck
authored andcommitted
dt-bindings: watchdog: starfive,jh7100-wdt: Add compatible for JH8100
Add "starfive,jh8100-wdt" compatible string for StarFive's JH8100 watchdog. Since JH8100 watchdog only has 1 reset signal, update binding document to support one reset for "starfive,jh8100-wdt" compatible. Signed-off-by: Ley Foon Tan <leyfoon.tan@starfivetech.com> Signed-off-by: Ji Sheng Teoh <jisheng.teoh@starfivetech.com> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20231221084358.3458713-2-jisheng.teoh@starfivetech.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
1 parent dbd7c00 commit 6e6f320

File tree

1 file changed

+31
-9
lines changed

1 file changed

+31
-9
lines changed

Documentation/devicetree/bindings/watchdog/starfive,jh7100-wdt.yaml

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@ description:
1919
isn't cleared, the watchdog will reset the system unless the watchdog
2020
reset is disabled.
2121

22-
allOf:
23-
- $ref: watchdog.yaml#
24-
2522
properties:
2623
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
3032

3133
reg:
3234
maxItems: 1
@@ -45,9 +47,8 @@ properties:
4547
- const: core
4648

4749
resets:
48-
items:
49-
- description: APB reset
50-
- description: Core reset
50+
minItems: 1
51+
maxItems: 2
5152

5253
required:
5354
- compatible
@@ -56,6 +57,27 @@ required:
5657
- clock-names
5758
- resets
5859

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+
5981
unevaluatedProperties: false
6082

6183
examples:

0 commit comments

Comments
 (0)