blob: 1b583f232e53e27dcc5e120c8a26b2d47577a0f7 [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/watchdog/marvell,cn10624-wdt.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Marvell Global Timer (GTI) system watchdog
8
9maintainers:
10 - Bharat Bhushan <bbhushan2@marvell.com>
11
12allOf:
13 - $ref: watchdog.yaml#
14
15properties:
16 compatible:
17 oneOf:
18 - enum:
19 - marvell,cn9670-wdt
20 - marvell,cn10624-wdt
21
22 - items:
23 - enum:
24 - marvell,cn9880-wdt
25 - marvell,cnf9535-wdt
26 - const: marvell,cn9670-wdt
27
28 - items:
29 - enum:
30 - marvell,cn10308-wdt
31 - marvell,cnf10518-wdt
32 - const: marvell,cn10624-wdt
33
34 reg:
35 maxItems: 1
36
37 interrupts:
38 maxItems: 1
39
40 clocks:
41 maxItems: 1
42
43 clock-names:
44 items:
45 - const: refclk
46
47 marvell,wdt-timer-index:
48 $ref: /schemas/types.yaml#/definitions/uint32
49 minimum: 0
50 maximum: 63
51 description:
52 An SoC have many timers (up to 64), firmware can reserve one or more timer
53 for some other use case and configures one of the global timer as watchdog
54 timer. Firmware will update this field with the timer number configured
55 as watchdog timer.
56
57required:
58 - compatible
59 - reg
60 - interrupts
61 - clocks
62 - clock-names
63
64unevaluatedProperties: false
65
66examples:
67 - |
68 #include <dt-bindings/interrupt-controller/arm-gic.h>
69 soc {
70 #address-cells = <2>;
71 #size-cells = <2>;
72
73 watchdog@802000040000 {
74 compatible = "marvell,cn9670-wdt";
75 reg = <0x00008020 0x00040000 0x00000000 0x00020000>;
76 interrupts = <GIC_SPI 38 IRQ_TYPE_EDGE_RISING>;
77 clocks = <&sclk>;
78 clock-names = "refclk";
79 marvell,wdt-timer-index = <63>;
80 };
81 };
82
83...