-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <akhilrajeev@nvidia.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
- Loading branch information
Akhil R
authored and
Herbert Xu
committed
Apr 12, 2024
1 parent
58329c4
commit 17048b2
Showing
2 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
Documentation/devicetree/bindings/crypto/nvidia,tegra234-se-aes.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/crypto/nvidia,tegra234-se-aes.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: NVIDIA Tegra Security Engine for AES algorithms | ||
|
||
description: | ||
The Tegra Security Engine accelerates the following AES encryption/decryption | ||
algorithms - AES-ECB, AES-CBC, AES-OFB, AES-XTS, AES-CTR, AES-GCM, AES-CCM, | ||
AES-CMAC | ||
|
||
maintainers: | ||
- Akhil R <akhilrajeev@nvidia.com> | ||
|
||
properties: | ||
compatible: | ||
const: nvidia,tegra234-se-aes | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
clocks: | ||
maxItems: 1 | ||
|
||
iommus: | ||
maxItems: 1 | ||
|
||
dma-coherent: true | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- clocks | ||
- iommus | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/memory/tegra234-mc.h> | ||
#include <dt-bindings/clock/tegra234-clock.h> | ||
crypto@15820000 { | ||
compatible = "nvidia,tegra234-se-aes"; | ||
reg = <0x15820000 0x10000>; | ||
clocks = <&bpmp TEGRA234_CLK_SE>; | ||
iommus = <&smmu TEGRA234_SID_SES_SE1>; | ||
dma-coherent; | ||
}; | ||
... |
52 changes: 52 additions & 0 deletions
52
Documentation/devicetree/bindings/crypto/nvidia,tegra234-se-hash.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/crypto/nvidia,tegra234-se-hash.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: NVIDIA Tegra Security Engine for HASH algorithms | ||
|
||
description: | ||
The Tegra Security HASH Engine accelerates the following HASH functions - | ||
SHA1, SHA224, SHA256, SHA384, SHA512, SHA3-224, SHA3-256, SHA3-384, SHA3-512 | ||
HMAC(SHA224), HMAC(SHA256), HMAC(SHA384), HMAC(SHA512) | ||
|
||
maintainers: | ||
- Akhil R <akhilrajeev@nvidia.com> | ||
|
||
properties: | ||
compatible: | ||
const: nvidia,tegra234-se-hash | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
clocks: | ||
maxItems: 1 | ||
|
||
iommus: | ||
maxItems: 1 | ||
|
||
dma-coherent: true | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- clocks | ||
- iommus | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/memory/tegra234-mc.h> | ||
#include <dt-bindings/clock/tegra234-clock.h> | ||
crypto@15840000 { | ||
compatible = "nvidia,tegra234-se-hash"; | ||
reg = <0x15840000 0x10000>; | ||
clocks = <&bpmp TEGRA234_CLK_SE>; | ||
iommus = <&smmu TEGRA234_SID_SES_SE2>; | ||
dma-coherent; | ||
}; | ||
... |