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

dt-bindings: crypto: Add TI SA2UL crypto accelerator documentation

The Security Accelerator Ultra Lite (SA2UL) subsystem provides hardware
cryptographic acceleration for the following use cases:

* Encryption and authentication for secure boot
* Encryption and authentication of content in applications
requiring DRM (digital rights management) and
content/asset protection

SA2UL provides support for number of different cryptographic algorithms
including SHA1, SHA256, SHA512, AES, 3DES, and various combinations of
the previous for AEAD use.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Keerthy <j-keerthy@ti.com>
[t-kristo@ti.com: converted documentation to yaml]
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Keerthy and committed by
Herbert Xu
2ce9a729 44623b28

+76
+76
Documentation/devicetree/bindings/crypto/ti,sa2ul.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/ti,sa2ul.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: K3 SoC SA2UL crypto module 8 + 9 + maintainers: 10 + - Tero Kristo <t-kristo@ti.com> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - ti,j721e-sa2ul 16 + - ti,am654-sa2ul 17 + 18 + reg: 19 + maxItems: 1 20 + 21 + power-domains: 22 + maxItems: 1 23 + 24 + dmas: 25 + items: 26 + - description: TX DMA Channel 27 + - description: RX DMA Channel #1 28 + - description: RX DMA Channel #2 29 + 30 + dma-names: 31 + items: 32 + - const: tx 33 + - const: rx1 34 + - const: rx2 35 + 36 + dma-coherent: true 37 + 38 + "#address-cells": 39 + const: 2 40 + 41 + "#size-cells": 42 + const: 2 43 + 44 + ranges: 45 + description: 46 + Address translation for the possible RNG child node for SA2UL 47 + 48 + patternProperties: 49 + "^rng@[a-f0-9]+$": 50 + type: object 51 + description: 52 + Child RNG node for SA2UL 53 + 54 + required: 55 + - compatible 56 + - reg 57 + - power-domains 58 + - dmas 59 + - dma-names 60 + - dma-coherent 61 + 62 + additionalProperties: false 63 + 64 + examples: 65 + - | 66 + #include <dt-bindings/soc/ti,sci_pm_domain.h> 67 + 68 + main_crypto: crypto@4e00000 { 69 + compatible = "ti,j721-sa2ul"; 70 + reg = <0x0 0x4e00000 0x0 0x1200>; 71 + power-domains = <&k3_pds 264 TI_SCI_PD_EXCLUSIVE>; 72 + dmas = <&main_udmap 0xc000>, <&main_udmap 0x4000>, 73 + <&main_udmap 0x4001>; 74 + dma-names = "tx", "rx1", "rx2"; 75 + dma-coherent; 76 + };