Skip to contentSkip to conversation

dt-bindings: arm: Convert nuvoton,npcm750 binding to YAML

PATCH Superseded Jonathan Neuschäfer 2 participants 3 messages Jan 16, 2021 – Feb 8, 2021

Subsystems (2)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 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.

---

If someone else wants to be listed as the maintainer, please let me know.

v2:
- Fix indentation to satisfy yamllint
- Fix $schema line

v1:
- https://lore.kernel.org/lkml/[email protected]/

---
 .../devicetree/bindings/arm/npcm/npcm.txt     |  6 -----
 .../devicetree/bindings/arm/npcm/npcm.yaml    | 23 +++++++++++++++++++
 2 files changed, 23 insertions(+), 6 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/arm/npcm/npcm.txt
 create mode 100644 Documentation/devicetree/bindings/arm/npcm/npcm.yaml
Documentation/devicetree/bindings/arm/npcm/npcm.txt deleted +0 -6
deleted file mode 100644
index 2d87d9ecea85b..0000000000000
@@ -1,6 +0,0 @@
-NPCM Platforms Device Tree Bindings
------------------------------------
-NPCM750 SoC
-Required root node properties:
-	- compatible = "nuvoton,npcm750";
-
Documentation/devicetree/bindings/arm/npcm/npcm.yaml new file +23 -0
new file mode 100644
index 0000000000000..894aefb70652a
@@ -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 <[email protected]>
+
+properties:
+  $nodename:
+    const: '/'
+  compatible:
+    oneOf:
+      - description: NPCM750 based boards
+        items:
+          - enum:
+              - nuvoton,npcm750-evb         # NPCM750 evaluation board
+          - const: nuvoton,npcm750
+
+additionalProperties: true

--
2.29.2

#1 lore raw

PATCH v2 2/2 ARM: dts: Add board-specific compatible string to npcm750-evb devicetree

According to the revised binding, the devicetree needs a board-specific compatible string.

---

v2:
- no changes

---
 arch/arm/boot/dts/nuvoton-npcm750-evb.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/nuvoton-npcm750-evb.dts +1 -1
index 9f13d08f5804e..dea3dbc4a6a52 100644
@@ -9,7 +9,7 @@
 
 / {
 	model = "Nuvoton npcm750 Development Board (Device Tree)";
-	compatible = "nuvoton,npcm750";
+	compatible = "nuvoton,npcm750-evb", "nuvoton,npcm750";
 
 	aliases {
 		ethernet2 = &gmac0;

--
2.29.2

maintainer Reviewed-by on v2 1/2
#2 lore raw
In reply to Jonathan Neuschäfer
Quoted 20 lines · Jonathan Neuschäfer

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.

---

If someone else wants to be listed as the maintainer, please let me know.

v2:
- Fix indentation to satisfy yamllint
- Fix $schema line

Quoted 9 lines

v1:
- https://lore.kernel.org/lkml/[email protected]/

---
 .../devicetree/bindings/arm/npcm/npcm.txt     |  6 -----
 .../devicetree/bindings/arm/npcm/npcm.yaml    | 23 +++++++++++++++++++
 2 files changed, 23 insertions(+), 6 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/arm/npcm/npcm.txt
 create mode 100644 Documentation/devicetree/bindings/arm/npcm/npcm.yaml