Skip to content

Commit 936253d

Browse files
Tero KristoWim Van Sebroeck
authored andcommitted
dt-bindings: watchdog: Add support for TI K3 RTI watchdog
TI K3 SoCs contain an RTI (Real Time Interrupt) module which can be used to implement a windowed watchdog functionality. Windowed watchdog will generate an error if it is petted outside the time window, either too early or too late. Cc: Rob Herring <[email protected]> Cc: [email protected] Signed-off-by: Tero Kristo <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent e2ad9bc commit 936253d

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/watchdog/ti,rti-wdt.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Texas Instruments K3 SoC Watchdog Timer
8+
9+
maintainers:
10+
- Tero Kristo <[email protected]>
11+
12+
description:
13+
The TI K3 SoC watchdog timer is implemented via the RTI (Real Time
14+
Interrupt) IP module. This timer adds a support for windowed watchdog
15+
mode, which will signal an error if it is pinged outside the watchdog
16+
time window, meaning either too early or too late. The error signal
17+
generated can be routed to either interrupt a safety controller or
18+
to directly reset the SoC.
19+
20+
allOf:
21+
- $ref: "watchdog.yaml#"
22+
23+
properties:
24+
compatible:
25+
enum:
26+
- ti,j7-rti-wdt
27+
28+
reg:
29+
maxItems: 1
30+
31+
clocks:
32+
maxItems: 1
33+
34+
power-domains:
35+
maxItems: 1
36+
37+
assigned-clocks:
38+
maxItems: 1
39+
40+
assigned-clocks-parents:
41+
maxItems: 1
42+
43+
required:
44+
- compatible
45+
- reg
46+
- clocks
47+
- power-domains
48+
49+
examples:
50+
- |
51+
/*
52+
* RTI WDT in main domain on J721e SoC. Assigned clocks are used to
53+
* select the source clock for the watchdog, forcing it to tick with
54+
* a 32kHz clock in this case.
55+
*/
56+
#include <dt-bindings/soc/ti,sci_pm_domain.h>
57+
58+
watchdog0: rti@2200000 {
59+
compatible = "ti,rti-wdt";
60+
reg = <0x0 0x2200000 0x0 0x100>;
61+
clocks = <&k3_clks 252 1>;
62+
power-domains = <&k3_pds 252 TI_SCI_PD_EXCLUSIVE>;
63+
assigned-clocks = <&k3_clks 252 1>;
64+
assigned-clock-parents = <&k3_clks 252 5>;
65+
};

0 commit comments

Comments
 (0)