Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <srinivas.neeli@amd.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lkml.kernel.org/r/20230420104231.2243079-3-srinivas.neeli@amd.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

Srinivas Neeli and committed by
Wim Van Sebroeck
be0d0ab1 6cf2cc30

+50
+50
Documentation/devicetree/bindings/watchdog/xlnx,versal-wwdt.yaml
··· 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 <srinivas.neeli@amd.com> 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 + ...