]> www.infradead.org Git - users/hch/misc.git/commitdiff
dt-bindings: watchdog: Convert marvell,armada-3700-wdt to DT schema
authorRob Herring (Arm) <robh@kernel.org>
Tue, 12 Aug 2025 20:32:57 +0000 (15:32 -0500)
committerRob Herring (Arm) <robh@kernel.org>
Fri, 19 Sep 2025 17:29:28 +0000 (12:29 -0500)
Convert the Marvell Armada 3700 watchdog binding to DT schema format.
It's a straight-forward conversion.

Acked-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20250812203301.726374-1-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Documentation/devicetree/bindings/watchdog/armada-37xx-wdt.txt [deleted file]
Documentation/devicetree/bindings/watchdog/marvell,armada-3700-wdt.yaml [new file with mode: 0644]
MAINTAINERS

diff --git a/Documentation/devicetree/bindings/watchdog/armada-37xx-wdt.txt b/Documentation/devicetree/bindings/watchdog/armada-37xx-wdt.txt
deleted file mode 100644 (file)
index a8d00c3..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-* Armada 37xx CPU Watchdog Timer Controller
-
-Required properties:
-- compatible : must be "marvell,armada-3700-wdt"
-- reg : base physical address of the controller and length of memory mapped
-       region.
-- clocks : the clock feeding the watchdog timer. See clock-bindings.txt
-- marvell,system-controller : reference to syscon node for the CPU Miscellaneous
-       Registers
-
-Example:
-
-       cpu_misc: system-controller@d000 {
-               compatible = "marvell,armada-3700-cpu-misc", "syscon";
-               reg = <0xd000 0x1000>;
-       };
-
-       wdt: watchdog@8300 {
-               compatible = "marvell,armada-3700-wdt";
-               reg = <0x8300 0x40>;
-               marvell,system-controller = <&cpu_misc>;
-               clocks = <&xtalclk>;
-       };
diff --git a/Documentation/devicetree/bindings/watchdog/marvell,armada-3700-wdt.yaml b/Documentation/devicetree/bindings/watchdog/marvell,armada-3700-wdt.yaml
new file mode 100644 (file)
index 0000000..60d44d6
--- /dev/null
@@ -0,0 +1,41 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/watchdog/marvell,armada-3700-wdt.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Armada 37xx CPU Watchdog Timer Controller
+
+maintainers:
+  - Marek BehĂșn <kabel@kernel.org>
+
+properties:
+  compatible:
+    const: marvell,armada-3700-wdt
+
+  reg:
+    maxItems: 1
+
+  clocks:
+    maxItems: 1
+
+  marvell,system-controller:
+    description: Reference to syscon node for the CPU Miscellaneous Registers
+    $ref: /schemas/types.yaml#/definitions/phandle
+
+required:
+  - compatible
+  - reg
+  - clocks
+  - marvell,system-controller
+
+additionalProperties: false
+
+examples:
+  - |
+    watchdog@8300 {
+        compatible = "marvell,armada-3700-wdt";
+        reg = <0x8300 0x40>;
+        marvell,system-controller = <&cpu_misc>;
+        clocks = <&xtalclk>;
+    };
index f3dcc2f64bc7192ede228477a13f89a25423565a..deb11270f20d6d0e88adb79e1c3216e7b7fc7cd5 100644 (file)
@@ -2623,7 +2623,7 @@ F:        Documentation/devicetree/bindings/firmware/cznic,turris-mox-rwtm.txt
 F:     Documentation/devicetree/bindings/firmware/cznic,turris-omnia-mcu.yaml
 F:     Documentation/devicetree/bindings/interrupt-controller/marvell,mpic.yaml
 F:     Documentation/devicetree/bindings/leds/cznic,turris-omnia-leds.yaml
-F:     Documentation/devicetree/bindings/watchdog/armada-37xx-wdt.txt
+F:     Documentation/devicetree/bindings/watchdog/marvell,armada-3700-wdt.yaml
 F:     drivers/bus/moxtet.c
 F:     drivers/firmware/turris-mox-rwtm.c
 F:     drivers/gpio/gpio-moxtet.c