Skip to contentSkip to conversation

dt-bindings: crypto: Convert amd,ccp-seattle-v1a to DT schema

PATCH In review Rob Herring (Arm) 2 participants 2 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 amd,ccp-seattle-v1a to DT schema

Convert the AMD Cryptographic Coprocessor binding to DT schema format. It's a straight forward conversion.

---
 .../bindings/crypto/amd,ccp-seattle-v1a.yaml  | 38 +++++++++++++++++++
 .../devicetree/bindings/crypto/amd-ccp.txt    | 17 ---------
 2 files changed, 38 insertions(+), 17 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/crypto/amd,ccp-seattle-v1a.yaml
 delete mode 100644 Documentation/devicetree/bindings/crypto/amd-ccp.txt
Documentation/devicetree/bindings/crypto/amd,ccp-seattle-v1a.yaml new file +38 -0
new file mode 100644
index 000000000000..32bf3a1c3b42
@@ -0,0 +1,38 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/amd,ccp-seattle-v1a.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: AMD Cryptographic Coprocessor (ccp)
+
+maintainers:
+  - Tom Lendacky <[email protected]>
+
+properties:
+  compatible:
+    const: amd,ccp-seattle-v1a
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  dma-coherent: true
+
+required:
+  - compatible
+  - reg
+  - interrupts
+
+additionalProperties: false
+
+examples:
+  - |
+    crypto@e0100000 {
+        compatible = "amd,ccp-seattle-v1a";
+        reg = <0xe0100000 0x10000>;
+        interrupts = <0 3 4>;
+        dma-coherent;
+    };
Documentation/devicetree/bindings/crypto/amd-ccp.txt deleted +0 -17
deleted file mode 100644
index d87579d63da6..000000000000
@@ -1,17 +0,0 @@
-* AMD Cryptographic Coprocessor driver (ccp)
-
-Required properties:
-- compatible: Should be "amd,ccp-seattle-v1a"
-- reg: Address and length of the register set for the device
-- interrupts: Should contain the CCP interrupt
-
-Optional properties:
-- dma-coherent: Present if dma operations are coherent
-
-Example:
-	ccp@e0100000 {
-		compatible = "amd,ccp-seattle-v1a";
-		reg = <0 0xe0100000 0 0x10000>;
-		interrupt-parent = <&gic>;
-		interrupts = <0 3 4>;
-	};
Signature · 1 line
2.47.2
maintainer
#1 lore raw
Quoted 10 lines · Rob Herring (Arm)

Convert the AMD Cryptographic Coprocessor binding to DT schema format. It's a straight forward conversion.

---
 .../bindings/crypto/amd,ccp-seattle-v1a.yaml  | 38 +++++++++++++++++++
 .../devicetree/bindings/crypto/amd-ccp.txt    | 17 ---------
 2 files changed, 38 insertions(+), 17 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/crypto/amd,ccp-seattle-v1a.yaml
 delete mode 100644 Documentation/devicetree/bindings/crypto/amd-ccp.txt

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