Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Akhil R and committed by
Herbert Xu
17048b22 58329c43

+104
+52
Documentation/devicetree/bindings/crypto/nvidia,tegra234-se-aes.yaml
··· 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 <akhilrajeev@nvidia.com> 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 + ...
+52
Documentation/devicetree/bindings/crypto/nvidia,tegra234-se-hash.yaml
··· 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 <akhilrajeev@nvidia.com> 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 + ...