diff options
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2021-03-20 17:40:21 +0100 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2021-04-08 11:33:02 +0930 |
commit | 281192c4db75443ff01565b8f6db5cbd6846b9a0 (patch) | |
tree | 85bc5ff32ae31d6d40788a33088fc893a2d0e877 | |
parent | a38fd8748464831584a19438cbb3082b5a2dab15 (diff) | |
download | linux-281192c4db75443ff01565b8f6db5cbd6846b9a0.tar.bz2 |
dt-bindings: arm: Convert nuvoton,npcm750 binding to YAML
The general trend is to have devicetree bindings in YAML format, to
allow automatic validation of bindings and devicetrees.
Convert the NPCM SoC family's binding to YAML before it accumulates more
entries.
The nuvoton,npcm750-evb compatible string is introduced to keep the
structure of the binding a little simpler.
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210320164023.614059-1-j.neuschaefer@gmx.net
Signed-off-by: Joel Stanley <joel@jms.id.au>
-rw-r--r-- | Documentation/devicetree/bindings/arm/npcm/npcm.txt | 6 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/arm/npcm/npcm.yaml | 23 |
2 files changed, 23 insertions, 6 deletions
diff --git a/Documentation/devicetree/bindings/arm/npcm/npcm.txt b/Documentation/devicetree/bindings/arm/npcm/npcm.txt deleted file mode 100644 index 2d87d9ecea85..000000000000 --- a/Documentation/devicetree/bindings/arm/npcm/npcm.txt +++ /dev/null @@ -1,6 +0,0 @@ -NPCM Platforms Device Tree Bindings ------------------------------------ -NPCM750 SoC -Required root node properties: - - compatible = "nuvoton,npcm750"; - diff --git a/Documentation/devicetree/bindings/arm/npcm/npcm.yaml b/Documentation/devicetree/bindings/arm/npcm/npcm.yaml new file mode 100644 index 000000000000..894aefb70652 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/npcm/npcm.yaml @@ -0,0 +1,23 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/npcm/npcm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NPCM Platforms Device Tree Bindings + +maintainers: + - Jonathan Neuschäfer <j.neuschaefer@gmx.net> + +properties: + $nodename: + const: '/' + compatible: + oneOf: + - description: NPCM750 based boards + items: + - enum: + - nuvoton,npcm750-evb # NPCM750 evaluation board + - const: nuvoton,npcm750 + +additionalProperties: true |