Skip to content

Commit be0d0ab

Browse files
srneeliWim Van Sebroeck
authored andcommitted
dt-bindings: watchdog: xlnx,versal-wwdt: Add versal watchdog
Versal watchdog IP uses window watchdog mode. Window watchdog timer(WWDT) contains closed(first) and open(second) window with 32 bit width. Write to the watchdog timer within predefined window periods of time. This means a period that is not too soon and a period that is not too late. Add devicetree bindings for versal window watchdog device. Signed-off-by: Srinivas Neeli <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent 6cf2cc3 commit be0d0ab

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/watchdog/xlnx,versal-wwdt.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Xilinx Versal window watchdog timer controller
8+
9+
maintainers:
10+
- Neeli Srinivas <[email protected]>
11+
12+
description:
13+
Versal watchdog intellectual property uses window watchdog mode.
14+
Window watchdog timer(WWDT) contains closed(first) and open(second)
15+
window with 32 bit width. Write to the watchdog timer within
16+
predefined window periods of time. This means a period that is not
17+
too soon and a period that is not too late. The WWDT has to be
18+
restarted within the open window time. If software tries to restart
19+
WWDT outside of the open window time period, it generates a reset.
20+
21+
allOf:
22+
- $ref: watchdog.yaml#
23+
24+
properties:
25+
compatible:
26+
enum:
27+
- xlnx,versal-wwdt
28+
29+
reg:
30+
maxItems: 1
31+
32+
clocks:
33+
maxItems: 1
34+
35+
required:
36+
- compatible
37+
- reg
38+
- clocks
39+
40+
unevaluatedProperties: false
41+
42+
examples:
43+
- |
44+
watchdog@fd4d0000 {
45+
compatible = "xlnx,versal-wwdt";
46+
reg = <0xfd4d0000 0x10000>;
47+
clocks = <&clock25>;
48+
timeout-sec = <30>;
49+
};
50+
...

0 commit comments

Comments
 (0)