dt-bindings: watchdog: Convert UniPhier watchdog timer to json-schema
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Wed, 13 May 2020 05:42:25 +0000 (14:42 +0900)
committerRob Herring <robh@kernel.org>
Thu, 28 May 2020 01:30:26 +0000 (19:30 -0600)
Convert UniPhier watchdog timer binding to DT schema format.

Cc: Keiji Hayashibara <hayashibara.keiji@socionext.com>
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/watchdog/socionext,uniphier-wdt.yaml [new file with mode: 0644]
Documentation/devicetree/bindings/watchdog/uniphier-wdt.txt [deleted file]

diff --git a/Documentation/devicetree/bindings/watchdog/socionext,uniphier-wdt.yaml b/Documentation/devicetree/bindings/watchdog/socionext,uniphier-wdt.yaml
new file mode 100644 (file)
index 0000000..a059d16
--- /dev/null
@@ -0,0 +1,36 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/watchdog/socionext,uniphier-wdt.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Socionext UniPhier watchdog timer
+
+maintainers:
+  - Keiji Hayashibara <hayashibara.keiji@socionext.com>
+
+allOf:
+  - $ref: "watchdog.yaml#"
+
+properties:
+  compatible:
+    const: socionext,uniphier-wdt
+
+required:
+  - compatible
+
+additionalProperties: false
+
+examples:
+  - |
+    // The UniPhier watchdog should be a subnode of a "syscon" compatible node.
+
+    sysctrl@61840000 {
+        compatible = "socionext,uniphier-ld11-sysctrl",
+                     "simple-mfd", "syscon";
+        reg = <0x61840000 0x10000>;
+
+        watchdog {
+            compatible = "socionext,uniphier-wdt";
+        };
+    };
diff --git a/Documentation/devicetree/bindings/watchdog/uniphier-wdt.txt b/Documentation/devicetree/bindings/watchdog/uniphier-wdt.txt
deleted file mode 100644 (file)
index bf63375..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-UniPhier watchdog timer controller
-
-This UniPhier watchdog timer controller must be under sysctrl node.
-
-Required properties:
-- compatible: should be "socionext,uniphier-wdt"
-
-Example:
-
-       sysctrl@61840000 {
-               compatible = "socionext,uniphier-ld11-sysctrl",
-                            "simple-mfd", "syscon";
-               reg = <0x61840000 0x4000>;
-
-               watchdog {
-                       compatible = "socionext,uniphier-wdt";
-               }
-
-               other nodes ...
-       };