[PATCH 2/3] dt-bindings: crypto: fsl,sec-v4.0: add fsl,qi2-crypto-priority

From: Vincent Jardin via B4 Relay

Date: Mon Sep 28 2026 - 10:02:57 EST


From: Vincent Jardin <vjardin@xxxxxxx>

Let a board set the crypto API priority of the algorithms the DPAA2
front end (dpaa2_caam) registers.

Benefits: Its DTS decides whether the SEC or the CPU is the default for
in-kernel crypto.

Signed-off-by: Vincent Jardin <vjardin@xxxxxxx>
---
Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml | 9 +++++++++
1 file changed, 9 insertions(+)

diff --git a/Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml b/Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml
index dcc755d2709a..0231fe3853b0 100644
--- a/Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml
+++ b/Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml
@@ -86,6 +86,15 @@ properties:
description: Defines the 'ERA' of the SEC device.
$ref: /schemas/types.yaml#/definitions/uint32

+ fsl,qi2-crypto-priority:
+ description:
+ Crypto API priority of the algorithms the DPAA2 (QI2) front end
+ registers. Below the CPU's own implementations, the SEC is used only
+ when asked for by driver name. The dpaa2_caam.priority module
+ parameter overrides it.
+ $ref: /schemas/types.yaml#/definitions/uint32
+ default: 2000
+
patternProperties:
'^jr@[0-9a-f]+$':
type: object

--
2.43.0