Skip to contentSkip to conversation

dt-bindings: arm: Convert Alpine board/soc bindings to json-schema

PATCH In review Rob Herring 1 participant 2 messages May 17, 2019 – Jun 13, 2019 Device tree bindings

lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH v3 1/1 dt-bindings: arm: Convert Alpine board/soc bindings to json-schema

Convert Alpine SoC bindings to DT schema format using json-schema.

Cc Tsahee Zidenberg <[email protected]>
Cc Antoine Tenart <[email protected]>
Cc Mark Rutland <[email protected]>
---
 .../devicetree/bindings/arm/al,alpine.txt     | 16 --------------
 .../devicetree/bindings/arm/al,alpine.yaml    | 21 +++++++++++++++++++
 2 files changed, 21 insertions(+), 16 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/arm/al,alpine.txt
 create mode 100644 Documentation/devicetree/bindings/arm/al,alpine.yaml
Documentation/devicetree/bindings/arm/al,alpine.txt deleted +0 -16
deleted file mode 100644
index d00debe2e86f..000000000000
@@ -1,16 +0,0 @@
-Annapurna Labs Alpine Platform Device Tree Bindings
----------------------------------------------------------------
-
-Boards in the Alpine family shall have the following properties:
-
-* Required root node properties:
-compatible: must contain "al,alpine"
-
-* Example:
-
-/ {
-	model = "Annapurna Labs Alpine Dev Board";
-	compatible = "al,alpine";
-
-	...
-}
Documentation/devicetree/bindings/arm/al,alpine.yaml new file +21 -0
new file mode 100644
index 000000000000..a70dff277e05
@@ -0,0 +1,21 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/al,alpine.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Annapurna Labs Alpine Platform Device Tree Bindings
+
+maintainers:
+  - Tsahee Zidenberg <[email protected]>
+  - Antoine Tenart <[email protected]>
+
+properties:
+  compatible:
+    items:
+      - const: al,alpine
+  model:
+    items:
+      - const: "Annapurna Labs Alpine Dev Board"
+
+...
Signature · 1 line
2.20.1
author maintainer
#1 lore raw
Quoted 7 lines · Rob Herring

Convert Alpine SoC bindings to DT schema format using json-schema.

Cc Tsahee Zidenberg <[email protected]>
Cc Antoine Tenart <[email protected]>
Cc Mark Rutland <[email protected]>
Quoted 6 lines
---
 .../devicetree/bindings/arm/al,alpine.txt     | 16 --------------
 .../devicetree/bindings/arm/al,alpine.yaml    | 21 +++++++++++++++++++
 2 files changed, 21 insertions(+), 16 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/arm/al,alpine.txt
 create mode 100644 Documentation/devicetree/bindings/arm/al,alpine.yaml

Ping. Please apply or modify this how you'd prefer. I'm not going to keep respinning this.

Rob