* [PATCH] dt-bindings: watchdog: microchip,pic32mzda-dmt: Convert to DT schema
@ 2026-07-01 17:19 Udaya Kiran Challa
0 siblings, 0 replies; only message in thread
From: Udaya Kiran Challa @ 2026-07-01 17:19 UTC (permalink / raw)
To: tsbogend, robh, krzk+dt, conor+dt
Cc: skhan, me, linux-mips, devicetree, linux-kernel,
Udaya Kiran Challa
Convert Microchip PIC32 Deadman Timer devicetree binding
from legacy text format to DT schema.
Signed-off-by: Udaya Kiran Challa <challauday369@gmail.com>
---
.../bindings/watchdog/microchip,pic32-dmt.txt | 19 --------
.../watchdog/microchip,pic32mzda-dmt.yaml | 45 +++++++++++++++++++
2 files changed, 45 insertions(+), 19 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/watchdog/microchip,pic32-dmt.txt
create mode 100644 Documentation/devicetree/bindings/watchdog/microchip,pic32mzda-dmt.yaml
diff --git a/Documentation/devicetree/bindings/watchdog/microchip,pic32-dmt.txt b/Documentation/devicetree/bindings/watchdog/microchip,pic32-dmt.txt
deleted file mode 100644
index 49485f831373..000000000000
--- a/Documentation/devicetree/bindings/watchdog/microchip,pic32-dmt.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-* Microchip PIC32 Deadman Timer
-
-The deadman timer is used to reset the processor in the event of a software
-malfunction. It is a free-running instruction fetch timer, which is clocked
-whenever an instruction fetch occurs until a count match occurs.
-
-Required properties:
-- compatible: must be "microchip,pic32mzda-dmt".
-- reg: physical base address of the controller and length of memory mapped
- region.
-- clocks: phandle of source clk. Should be <&rootclk PB7CLK>.
-
-Example:
-
- watchdog@1f800a00 {
- compatible = "microchip,pic32mzda-dmt";
- reg = <0x1f800a00 0x80>;
- clocks = <&rootclk PB7CLK>;
- };
diff --git a/Documentation/devicetree/bindings/watchdog/microchip,pic32mzda-dmt.yaml b/Documentation/devicetree/bindings/watchdog/microchip,pic32mzda-dmt.yaml
new file mode 100644
index 000000000000..01638624e334
--- /dev/null
+++ b/Documentation/devicetree/bindings/watchdog/microchip,pic32mzda-dmt.yaml
@@ -0,0 +1,45 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/watchdog/microchip,pic32mzda-dmt.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Microchip PIC32MZDA Deadman Timer
+
+maintainers:
+ - Thomas Bogendoerfer <tsbogend@alpha.franken.de>
+
+description: |
+ The deadman timer is used to reset the processor in the event of a software
+ malfunction. It is a free-running instruction fetch timer, which is clocked
+ whenever an instruction fetch occurs until a count match occurs.
+
+allOf:
+ - $ref: watchdog.yaml#
+
+properties:
+ compatible:
+ const: microchip,pic32mzda-dmt
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - clocks
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/microchip,pic32-clock.h>
+
+ watchdog@1f800a00 {
+ compatible = "microchip,pic32mzda-dmt";
+ reg = <0x1f800a00 0x80>;
+ clocks = <&rootclk PB7CLK>;
+ };
--
2.34.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-01 17:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-01 17:19 [PATCH] dt-bindings: watchdog: microchip,pic32mzda-dmt: Convert to DT schema Udaya Kiran Challa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox