Skip to contentSkip to conversation

dt-bindings: mtd/partitions: Convert arm-firmware-suite to DT schema

PATCH In review Rob Herring 2 participants 2 messages Jun 29, 2022 – Jun 30, 2022

Subsystems (2)
lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH v2 1/1 dt-bindings: mtd/partitions: Convert arm-firmware-suite to DT schema

Convert the arm,arm-firmware-suite partition binding to DT schema format. Simple conversion as there's only a compatible property.

---
v2:
- Fix example dtc warning

---
 .../mtd/partitions/arm,arm-firmware-suite.txt | 17 -----------
 .../partitions/arm,arm-firmware-suite.yaml    | 28 +++++++++++++++++++
 2 files changed, 28 insertions(+), 17 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/mtd/partitions/arm,arm-firmware-suite.txt
 create mode 100644 Documentation/devicetree/bindings/mtd/partitions/arm,arm-firmware-suite.yaml
Documentation/devicetree/bindings/mtd/partitions/arm,arm-firmware-suite.txt deleted +0 -17
deleted file mode 100644
index d5c5616f6db5..000000000000
@@ -1,17 +0,0 @@
-ARM AFS - ARM Firmware Suite Partitions
-=======================================
-
-The ARM Firmware Suite is a flash partitioning system found on the
-ARM reference designs: Integrator AP, Integrator CP, Versatile AB,
-Versatile PB, the RealView family, Versatile Express and Juno.
-
-Required properties:
-- compatible : (required) must be "arm,arm-firmware-suite"
-
-Example:
-
-flash@0 {
-	partitions {
-		compatible = "arm,arm-firmware-suite";
-	};
-};
Documentation/devicetree/bindings/mtd/partitions/arm,arm-firmware-suite.yaml new file +28 -0
new file mode 100644
index 000000000000..76c88027b6d2
@@ -0,0 +1,28 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mtd/partitions/arm,arm-firmware-suite.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ARM Firmware Suite (AFS) Partitions
+
+maintainers:
+  - Linus Walleij <[email protected]>
+
+description: |
+  The ARM Firmware Suite is a flash partitioning system found on the
+  ARM reference designs: Integrator AP, Integrator CP, Versatile AB,
+  Versatile PB, the RealView family, Versatile Express and Juno.
+
+properties:
+  compatible:
+    const: arm,arm-firmware-suite
+
+additionalProperties: false
+
+examples:
+  - |
+    partitions {
+        compatible = "arm,arm-firmware-suite";
+    };
+...
Signature · 1 line
2.34.1
maintainer Reviewed-by on v2 1/1
#1 lore raw

Hi Rob,

[email protected] wrote on Wed, 29 Jun 2022 12:50:30 -0600:

Quoted 5 lines

Convert the arm,arm-firmware-suite partition binding to DT schema format. Simple conversion as there's only a compatible property.

Quoted 57 lines

---
v2:
- Fix example dtc warning

---
 .../mtd/partitions/arm,arm-firmware-suite.txt | 17 -----------
 .../partitions/arm,arm-firmware-suite.yaml    | 28 +++++++++++++++++++
 2 files changed, 28 insertions(+), 17 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/mtd/partitions/arm,arm-firmware-suite.txt
 create mode 100644 Documentation/devicetree/bindings/mtd/partitions/arm,arm-firmware-suite.yaml
Documentation/devicetree/bindings/mtd/partitions/arm,arm-firmware-suite.txt deleted +0 -17
deleted file mode 100644
index d5c5616f6db5..000000000000
@@ -1,17 +0,0 @@
-ARM AFS - ARM Firmware Suite Partitions
-=======================================
-
-The ARM Firmware Suite is a flash partitioning system found on the
-ARM reference designs: Integrator AP, Integrator CP, Versatile AB,
-Versatile PB, the RealView family, Versatile Express and Juno.
-
-Required properties:
-- compatible : (required) must be "arm,arm-firmware-suite"
-
-Example:
-
-flash@0 {
-	partitions {
-		compatible = "arm,arm-firmware-suite";
-	};
-};
Documentation/devicetree/bindings/mtd/partitions/arm,arm-firmware-suite.yaml new file +18 -0
new file mode 100644
index 000000000000..76c88027b6d2
@@ -0,0 +1,28 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mtd/partitions/arm,arm-firmware-suite.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ARM Firmware Suite (AFS) Partitions
+
+maintainers:
+  - Linus Walleij <[email protected]>
+
+description: |
+  The ARM Firmware Suite is a flash partitioning system found on the
+  ARM reference designs: Integrator AP, Integrator CP, Versatile AB,
+  Versatile PB, the RealView family, Versatile Express and Juno.
+
+properties:
+  compatible:

Documentation/devicetree/bindings/mtd/partitions/arm,arm-firmware-suite.yaml line 28

Quoted 10 lines
Documentation/devicetree/bindings/mtd/partitions/arm,arm-firmware-suite.yaml new file +10 -0
+    const: arm,arm-firmware-suite
+
+additionalProperties: false
+
+examples:
+  - |
+    partitions {
+        compatible = "arm,arm-firmware-suite";
+    };
+...

Thanks,
Miquèl