]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
dt-bindings: arm: Convert TI nspire board/soc bindings to json-schema
authorRob Herring <robh@kernel.org>
Mon, 14 May 2018 23:52:51 +0000 (18:52 -0500)
committerRob Herring <robh@kernel.org>
Thu, 13 Dec 2018 17:09:46 +0000 (11:09 -0600)
Convert TI NSpire SoC bindings to DT schema format using json-schema.

Cc: Mark Rutland <mark.rutland@arm.com>
Cc: devicetree@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/arm/nspire.txt [deleted file]
Documentation/devicetree/bindings/arm/ti/nspire.yaml [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/arm/nspire.txt b/Documentation/devicetree/bindings/arm/nspire.txt
deleted file mode 100644 (file)
index 4d08518..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-TI-NSPIRE calculators
-
-Required properties:
-- compatible: Compatible property value should contain "ti,nspire".
-       CX models should have "ti,nspire-cx"
-       Touchpad models should have "ti,nspire-tp"
-       Clickpad models should have "ti,nspire-clp"
-
-Example:
-
-/ {
-       model = "TI-NSPIRE CX";
-       compatible = "ti,nspire-cx";
-       ...
diff --git a/Documentation/devicetree/bindings/arm/ti/nspire.yaml b/Documentation/devicetree/bindings/arm/ti/nspire.yaml
new file mode 100644 (file)
index 0000000..e372b43
--- /dev/null
@@ -0,0 +1,24 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/ti/nspire.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: TI-NSPIRE calculators
+
+maintainers:
+  - Daniel Tang <dt.tangr@gmail.com>
+
+properties:
+  $nodename:
+    const: '/'
+  compatible:
+    items:
+      - enum:
+          # CX models
+          - ti,nspire-cx
+          # Touchpad models
+          - ti,nspire-tp
+          # Clickpad models
+          - ti,nspire-clp
+...