Skip to content

Commit 17048b2

Browse files
Akhil Rherbertx
authored andcommitted
dt-bindings: crypto: Add Tegra Security Engine
Add DT binding document for Tegra Security Engine. The AES and HASH algorithms are handled independently by separate engines within the Security Engine. These engines are registered as two separate crypto engine drivers. Signed-off-by: Akhil R <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 58329c4 commit 17048b2

File tree

2 files changed

+104
-0
lines changed

2 files changed

+104
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/crypto/nvidia,tegra234-se-aes.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: NVIDIA Tegra Security Engine for AES algorithms
8+
9+
description:
10+
The Tegra Security Engine accelerates the following AES encryption/decryption
11+
algorithms - AES-ECB, AES-CBC, AES-OFB, AES-XTS, AES-CTR, AES-GCM, AES-CCM,
12+
AES-CMAC
13+
14+
maintainers:
15+
- Akhil R <[email protected]>
16+
17+
properties:
18+
compatible:
19+
const: nvidia,tegra234-se-aes
20+
21+
reg:
22+
maxItems: 1
23+
24+
clocks:
25+
maxItems: 1
26+
27+
iommus:
28+
maxItems: 1
29+
30+
dma-coherent: true
31+
32+
required:
33+
- compatible
34+
- reg
35+
- clocks
36+
- iommus
37+
38+
additionalProperties: false
39+
40+
examples:
41+
- |
42+
#include <dt-bindings/memory/tegra234-mc.h>
43+
#include <dt-bindings/clock/tegra234-clock.h>
44+
45+
crypto@15820000 {
46+
compatible = "nvidia,tegra234-se-aes";
47+
reg = <0x15820000 0x10000>;
48+
clocks = <&bpmp TEGRA234_CLK_SE>;
49+
iommus = <&smmu TEGRA234_SID_SES_SE1>;
50+
dma-coherent;
51+
};
52+
...
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/crypto/nvidia,tegra234-se-hash.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: NVIDIA Tegra Security Engine for HASH algorithms
8+
9+
description:
10+
The Tegra Security HASH Engine accelerates the following HASH functions -
11+
SHA1, SHA224, SHA256, SHA384, SHA512, SHA3-224, SHA3-256, SHA3-384, SHA3-512
12+
HMAC(SHA224), HMAC(SHA256), HMAC(SHA384), HMAC(SHA512)
13+
14+
maintainers:
15+
- Akhil R <[email protected]>
16+
17+
properties:
18+
compatible:
19+
const: nvidia,tegra234-se-hash
20+
21+
reg:
22+
maxItems: 1
23+
24+
clocks:
25+
maxItems: 1
26+
27+
iommus:
28+
maxItems: 1
29+
30+
dma-coherent: true
31+
32+
required:
33+
- compatible
34+
- reg
35+
- clocks
36+
- iommus
37+
38+
additionalProperties: false
39+
40+
examples:
41+
- |
42+
#include <dt-bindings/memory/tegra234-mc.h>
43+
#include <dt-bindings/clock/tegra234-clock.h>
44+
45+
crypto@15840000 {
46+
compatible = "nvidia,tegra234-se-hash";
47+
reg = <0x15840000 0x10000>;
48+
clocks = <&bpmp TEGRA234_CLK_SE>;
49+
iommus = <&smmu TEGRA234_SID_SES_SE2>;
50+
dma-coherent;
51+
};
52+
...

0 commit comments

Comments
 (0)