Skip to contentSkip to conversation

dt-bindings: crypto: Convert axis,artpec6-crypto to DT schema

PATCH In review Rob Herring (Arm) 3 participants 3 messages May 13, 2025 – May 19, 2025

Subsystems (2)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: crypto: Convert axis,artpec6-crypto to DT schema

Convert the Axis Crypto engine binding to DT schema format. It's a straight forward conversion.

---
 .../bindings/crypto/artpec6-crypto.txt        | 16 --------
 .../bindings/crypto/axis,artpec6-crypto.yaml  | 39 +++++++++++++++++++
 2 files changed, 39 insertions(+), 16 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/crypto/artpec6-crypto.txt
 create mode 100644 Documentation/devicetree/bindings/crypto/axis,artpec6-crypto.yaml
Documentation/devicetree/bindings/crypto/artpec6-crypto.txt deleted +0 -16
deleted file mode 100644
index d9cca4875bd6..000000000000
@@ -1,16 +0,0 @@
-Axis crypto engine with PDMA interface.
-
-Required properties:
-- compatible : Should be one of the following strings:
-	"axis,artpec6-crypto" for the version in the Axis ARTPEC-6 SoC
-	"axis,artpec7-crypto" for the version in the Axis ARTPEC-7 SoC.
-- reg: Base address and size for the PDMA register area.
-- interrupts: Interrupt handle for the PDMA interrupt line.
-
-Example:
-
-crypto@f4264000 {
-	compatible = "axis,artpec6-crypto";
-	reg = <0xf4264000 0x1000>;
-	interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
-};
Documentation/devicetree/bindings/crypto/axis,artpec6-crypto.yaml new file +39 -0
new file mode 100644
index 000000000000..c91f81e3c39e
@@ -0,0 +1,39 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/crypto/axis,artpec6-crypto.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Axis ARTPEC6 crypto engine with PDMA interface
+
+maintainers:
+  - Lars Persson <[email protected]>
+
+properties:
+  compatible:
+    enum:
+      - axis,artpec6-crypto
+      - axis,artpec7-crypto
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - interrupts
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+
+    crypto@f4264000 {
+        compatible = "axis,artpec6-crypto";
+        reg = <0xf4264000 0x1000>;
+        interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
+    };
Signature · 1 line
2.47.2
maintainer
#2 lore raw
In reply to Rob Herring (Arm)
Quoted 10 lines · Rob Herring (Arm)

Convert the Axis Crypto engine binding to DT schema format. It's a straight forward conversion.

---
 .../bindings/crypto/artpec6-crypto.txt        | 16 --------
 .../bindings/crypto/axis,artpec6-crypto.yaml  | 39 +++++++++++++++++++
 2 files changed, 39 insertions(+), 16 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/crypto/artpec6-crypto.txt
 create mode 100644 Documentation/devicetree/bindings/crypto/axis,artpec6-crypto.yaml

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt