Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jonathan Neuschäfer and committed by
Joel Stanley
281192c4 a38fd874

+23 -6
-6
Documentation/devicetree/bindings/arm/npcm/npcm.txt
··· 1 - NPCM Platforms Device Tree Bindings 2 - ----------------------------------- 3 - NPCM750 SoC 4 - Required root node properties: 5 - - compatible = "nuvoton,npcm750"; 6 -
+23
Documentation/devicetree/bindings/arm/npcm/npcm.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/arm/npcm/npcm.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: NPCM Platforms Device Tree Bindings 8 + 9 + maintainers: 10 + - Jonathan Neuschäfer <j.neuschaefer@gmx.net> 11 + 12 + properties: 13 + $nodename: 14 + const: '/' 15 + compatible: 16 + oneOf: 17 + - description: NPCM750 based boards 18 + items: 19 + - enum: 20 + - nuvoton,npcm750-evb # NPCM750 evaluation board 21 + - const: nuvoton,npcm750 22 + 23 + additionalProperties: true