Skip to content

Commit 90e0957

Browse files
nxpfranklirobherring
authored andcommitted
dt-bindings: watchdog: convert ziirave-wdt.txt to yaml
Convert ziirave-wdt.txt to yaml format. Additional change: - Add i2c node in example. - Add ref to watchdog.yaml Fix below warning: arch/arm64/boot/dts/freescale/imx8mq-zii-ultra-rmb3.dtb: /soc@0/bus@30800000/i2c@30a40000/watchdog@38: failed to match any schema with compatible: ['zii,rave-wdt'] Reviewed-by: Conor Dooley <[email protected]> Signed-off-by: Frank Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring (Arm) <[email protected]>
1 parent d9b5ca6 commit 90e0957

File tree

2 files changed

+49
-19
lines changed

2 files changed

+49
-19
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/watchdog/zii,rave-wdt.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Zodiac RAVE Watchdog Timer
8+
9+
maintainers:
10+
- Martyn Welch <[email protected]>
11+
- Guenter Roeck <[email protected]>
12+
- Wim Van Sebroeck <[email protected]>
13+
14+
properties:
15+
compatible:
16+
const: zii,rave-wdt
17+
18+
reg:
19+
maxItems: 1
20+
description: i2c slave address of device, usually 0x38
21+
22+
reset-duration-ms:
23+
description:
24+
Duration of the pulse generated when the watchdog times
25+
out.
26+
27+
required:
28+
- compatible
29+
- reg
30+
31+
allOf:
32+
- $ref: watchdog.yaml#
33+
34+
unevaluatedProperties: false
35+
36+
examples:
37+
- |
38+
i2c {
39+
#address-cells = <1>;
40+
#size-cells = <0>;
41+
42+
watchdog@38 {
43+
compatible = "zii,rave-wdt";
44+
reg = <0x38>;
45+
timeout-sec = <30>;
46+
reset-duration-ms = <30>;
47+
};
48+
};
49+

Documentation/devicetree/bindings/watchdog/ziirave-wdt.txt

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)