dt-bindings: nvmem: Convert snvs lpgpr to json-schema
authorAnson Huang <Anson.Huang@nxp.com>
Wed, 5 Aug 2020 06:49:32 +0000 (14:49 +0800)
committerRob Herring <robh@kernel.org>
Mon, 17 Aug 2020 21:45:55 +0000 (15:45 -0600)
Convert the snvs lpgpr binding to DT schema format using json-schema.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Link: https://lore.kernel.org/r/1596610172-30323-1-git-send-email-Anson.Huang@nxp.com
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/nvmem/snvs-lpgpr.txt [deleted file]
Documentation/devicetree/bindings/nvmem/snvs-lpgpr.yaml [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/nvmem/snvs-lpgpr.txt b/Documentation/devicetree/bindings/nvmem/snvs-lpgpr.txt
deleted file mode 100644 (file)
index 3cb1708..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-Device tree bindings for Low Power General Purpose Register found in i.MX6Q/D
-and i.MX7 Secure Non-Volatile Storage.
-
-This DT node should be represented as a sub-node of a "syscon",
-"simple-mfd" node.
-
-Required properties:
-- compatible: should be one of the fallowing variants:
-       "fsl,imx6q-snvs-lpgpr" for Freescale i.MX6Q/D/DL/S
-       "fsl,imx6ul-snvs-lpgpr" for Freescale i.MX6UL
-       "fsl,imx7d-snvs-lpgpr" for Freescale i.MX7D/S
-
-Example:
-snvs: snvs@020cc000 {
-       compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd";
-       reg = <0x020cc000 0x4000>;
-
-       snvs_lpgpr: snvs-lpgpr {
-               compatible = "fsl,imx6q-snvs-lpgpr";
-       };
-};
diff --git a/Documentation/devicetree/bindings/nvmem/snvs-lpgpr.yaml b/Documentation/devicetree/bindings/nvmem/snvs-lpgpr.yaml
new file mode 100644 (file)
index 0000000..c819f0e
--- /dev/null
@@ -0,0 +1,33 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/nvmem/snvs-lpgpr.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Low Power General Purpose Register found in i.MX Secure Non-Volatile Storage
+
+maintainers:
+  - Oleksij Rempel <o.rempel@pengutronix.de>
+
+properties:
+  compatible:
+    enum:
+      - fsl,imx6q-snvs-lpgpr
+      - fsl,imx6ul-snvs-lpgpr
+      - fsl,imx7d-snvs-lpgpr
+
+required:
+  - compatible
+
+additionalProperties: false
+
+examples:
+  - |
+    snvs@20cc000 {
+        compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd";
+        reg = <0x20cc000 0x4000>;
+
+        snvs_lpgpr: snvs-lpgpr {
+            compatible = "fsl,imx6q-snvs-lpgpr";
+        };
+    };