2018-12-03 21:46:17

by Rob Herring (Arm)

[permalink] [raw]
Subject: [PATCH v2 11/34] 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]>
Cc: [email protected]
Signed-off-by: Rob Herring <[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

diff --git a/Documentation/devicetree/bindings/arm/al,alpine.txt b/Documentation/devicetree/bindings/arm/al,alpine.txt
deleted file mode 100644
index d00debe2e86f..000000000000
--- a/Documentation/devicetree/bindings/arm/al,alpine.txt
+++ /dev/null
@@ -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";
-
- ...
-}
diff --git a/Documentation/devicetree/bindings/arm/al,alpine.yaml b/Documentation/devicetree/bindings/arm/al,alpine.yaml
new file mode 100644
index 000000000000..82e2fafdfece
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/al,alpine.yaml
@@ -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]>
+description: test
+
+properties:
+ compatible:
+ items:
+ - const: al,alpine
+ model:
+ items:
+ - const: "Annapurna Labs Alpine Dev Board"
+
+...
--
2.19.1



2018-12-04 07:53:56

by Antoine Tenart

[permalink] [raw]
Subject: Re: [PATCH v2 11/34] dt-bindings: arm: Convert Alpine board/soc bindings to json-schema

Hi Rob,

On Mon, Dec 03, 2018 at 03:32:00PM -0600, Rob Herring wrote:
> diff --git a/Documentation/devicetree/bindings/arm/al,alpine.yaml b/Documentation/devicetree/bindings/arm/al,alpine.yaml
> new file mode 100644
> index 000000000000..82e2fafdfece
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/arm/al,alpine.yaml
> @@ -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]>

Could you add '- Antoine Tenart <[email protected]>' here?

Thanks!
Antoine

> +description: test
> +
> +properties:
> + compatible:
> + items:
> + - const: al,alpine
> + model:
> + items:
> + - const: "Annapurna Labs Alpine Dev Board"
> +
> +...
> --
> 2.19.1
>

--
Antoine T?nart, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com