Skip to content

Commit

Permalink
dt-bindings: watchdog: convert ziirave-wdt.txt to yaml
Browse files Browse the repository at this point in the history
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 <conor.dooley@microchip.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20240814161250.4017427-1-Frank.Li@nxp.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
  • Loading branch information
Frank Li authored and Rob Herring (Arm) committed Sep 5, 2024
1 parent d9b5ca6 commit 90e0957
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 19 deletions.
49 changes: 49 additions & 0 deletions Documentation/devicetree/bindings/watchdog/zii,rave-wdt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/watchdog/zii,rave-wdt.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Zodiac RAVE Watchdog Timer

maintainers:
- Martyn Welch <martyn.welch@collabora.co.uk>
- Guenter Roeck <linux@roeck-us.net>
- Wim Van Sebroeck <wim@iguana.be>

properties:
compatible:
const: zii,rave-wdt

reg:
maxItems: 1
description: i2c slave address of device, usually 0x38

reset-duration-ms:
description:
Duration of the pulse generated when the watchdog times
out.

required:
- compatible
- reg

allOf:
- $ref: watchdog.yaml#

unevaluatedProperties: false

examples:
- |
i2c {
#address-cells = <1>;
#size-cells = <0>;
watchdog@38 {
compatible = "zii,rave-wdt";
reg = <0x38>;
timeout-sec = <30>;
reset-duration-ms = <30>;
};
};
19 changes: 0 additions & 19 deletions Documentation/devicetree/bindings/watchdog/ziirave-wdt.txt

This file was deleted.

0 comments on commit 90e0957

Please sign in to comment.