Debian Codegraph @

Documentation/devicetree/bindings/watchdog/marvell,orion-wdt.yaml

raw symbols SCIP
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/watchdog/marvell,orion-wdt.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Marvell Orion Watchdog Timer
8
9 maintainers:
10 - Andrew Lunn <[email protected]>
11 - Gregory Clement <[email protected]>
12
13 properties:
14 compatible:
15 enum:
16 - marvell,orion-wdt
17 - marvell,armada-370-wdt
18 - marvell,armada-xp-wdt
19 - marvell,armada-375-wdt
20 - marvell,armada-380-wdt
21
22 reg:
23 minItems: 2
24 items:
25 - description: Timer control register address
26 - description: RSTOUT enable register address
27 - description: Shared mask/unmask RSTOUT register address
28
29 clocks:
30 minItems: 1
31 items:
32 - description: L2/coherency fabric clock input
33 - description: Reference 25 MHz fixed-clock supply
34
35 clock-names:
36 minItems: 1
37 items:
38 - const: nbclk
39 - const: fixed
40
41 interrupts:
42 minItems: 1
43 items:
44 - description: timeout
45 - description: pre-timeout
46
47 allOf:
48 - $ref: watchdog.yaml#
49 - if:
50 properties:
51 compatible:
52 contains:
53 enum:
54 - marvell,armada-375-wdt
55 - marvell,armada-380-wdt
56 then:
57 properties:
58 reg:
59 minItems: 3
60 else:
61 properties:
62 reg:
63 maxItems: 2
64
65 - if:
66 properties:
67 compatible:
68 contains:
69 enum:
70 - marvell,armada-xp-wdt
71 - marvell,armada-375-wdt
72 - marvell,armada-380-wdt
73 then:
74 properties:
75 clocks:
76 minItems: 2
77 clock-names:
78 minItems: 2
79 interrupts:
80 minItems: 2
81
82 required:
83 - clock-names
84
85 required:
86 - compatible
87 - reg
88 - clocks
89
90 unevaluatedProperties: false
91
92 examples:
93 - |
94 watchdog@20300 {
95 compatible = "marvell,orion-wdt";
96 reg = <0x20300 0x28>, <0x20108 0x4>;
97 interrupts = <3>;
98 timeout-sec = <10>;
99 clocks = <&gate_clk 7>;
100 };