2020-11-11 14:14:19

by Gilad Ben-Yossef

[permalink] [raw]
Subject: [PATCH v2 0/2] add optional cache params override from DT

Rework the setting of cache parameters, including
optionally allowing overiding the defaults from device tree

Changes from v1:
- As per Rob Herring's suggestions, lose the distinction between
read and write and limit options to a few that make sense.
Also use strings to make the meaning of the setting clearer.

Gilad Ben-Yossef (2):
dt-bindings: crypto: update ccree optional params
crypto: ccree - add custom cache params from DT file

.../bindings/crypto/arm-cryptocell.txt | 4 +
drivers/crypto/ccree/cc_driver.c | 100 +++++++++++++++---
drivers/crypto/ccree/cc_driver.h | 4 +-
drivers/crypto/ccree/cc_pm.c | 2 +-
4 files changed, 92 insertions(+), 18 deletions(-)

--
2.29.2


2020-11-11 14:14:23

by Gilad Ben-Yossef

[permalink] [raw]
Subject: [PATCH v2 1/2] dt-bindings: crypto: update ccree optional params

Document ccree driver supporting new optional parameters allowing to
override cache parameters.

Signed-off-by: Gilad Ben-Yossef <[email protected]>
Cc: Rob Herring <[email protected]>
---
Documentation/devicetree/bindings/crypto/arm-cryptocell.txt | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/crypto/arm-cryptocell.txt b/Documentation/devicetree/bindings/crypto/arm-cryptocell.txt
index 6130e6eb4af8..fb4ba4a3af4c 100644
--- a/Documentation/devicetree/bindings/crypto/arm-cryptocell.txt
+++ b/Documentation/devicetree/bindings/crypto/arm-cryptocell.txt
@@ -13,6 +13,10 @@ Required properties:
Optional properties:
- clocks: Reference to the crypto engine clock.
- dma-coherent: Present if dma operations are coherent.
+- cache-attributes: override default cache attributes with "write-through" or "write-back".
+ Default is write through, write allocate.
+- sharability-domain: override default cache sharability domain with "inner-sharable".
+ Default is outer-sharable (712, 703, 713 only).

Examples:

--
2.29.2