Skip to contentSkip to conversation

dt-bindings: watchdog: convert ziirave-wdt.txt to yaml

PATCH Applied Frank Li 2 participants 2 messages Aug 14, 2024 – Sep 3, 2024

Subsystems (3)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH v3 1/1 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']

---
Change from v2 to v3
- using original driver submitter and wdt maintainer as maintainter
- add conor dooley review tag
- remove value in milliseconds

Change from v1 to v2
- add ref watchdog.yaml
- Remove timeout-sec

---
 .../bindings/watchdog/zii,rave-wdt.yaml       | 49 +++++++++++++++++++
 .../bindings/watchdog/ziirave-wdt.txt         | 19 -------
 2 files changed, 49 insertions(+), 19 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/watchdog/zii,rave-wdt.yaml
 delete mode 100644 Documentation/devicetree/bindings/watchdog/ziirave-wdt.txt
Documentation/devicetree/bindings/watchdog/zii,rave-wdt.yaml new file +49 -0
new file mode 100644
index 0000000000000..9dbaa941538e3
@@ -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 <[email protected]>
+  - Guenter Roeck <[email protected]>
+  - Wim Van Sebroeck <[email protected]>
+
+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>;
+        };
+    };
+
Documentation/devicetree/bindings/watchdog/ziirave-wdt.txt deleted +0 -19
deleted file mode 100644
index 3d878184ec3ff..0000000000000
@@ -1,19 +0,0 @@
-Zodiac RAVE Watchdog Timer
-
-Required properties:
-- compatible: must be "zii,rave-wdt"
-- reg: i2c slave address of device, usually 0x38
-
-Optional Properties:
-- timeout-sec: Watchdog timeout value in seconds.
-- reset-duration-ms: Duration of the pulse generated when the watchdog times
-  out. Value in milliseconds.
-
-Example:
-
-	watchdog@38 {
-		compatible = "zii,rave-wdt";
-		reg = <0x38>;
-		timeout-sec = <30>;
-		reset-duration-ms = <30>;
-	};
Signature · 1 line
2.34.1
maintainer Applied
#1 lore raw
Quoted 21 lines · Frank Li

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']

---
Change from v2 to v3
- using original driver submitter and wdt maintainer as maintainter
- add conor dooley review tag
- remove value in milliseconds

Change from v1 to v2
- add ref watchdog.yaml
- Remove timeout-sec

Quoted 7 lines
---
 .../bindings/watchdog/zii,rave-wdt.yaml       | 49 +++++++++++++++++++
 .../bindings/watchdog/ziirave-wdt.txt         | 19 -------
 2 files changed, 49 insertions(+), 19 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/watchdog/zii,rave-wdt.yaml
 delete mode 100644 Documentation/devicetree/bindings/watchdog/ziirave-wdt.txt

Applied, thanks!