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

dt-bindings: crypto: Add Inside Secure SafeXcel EIP-93 crypto engine

Add bindings for the Inside Secure SafeXcel EIP-93 crypto engine.

The IP is present on Airoha SoC and on various Mediatek devices and
other SoC under different names like mtk-eip93 or PKTE.

All the compatible that currently doesn't have any user are defined but
rejected waiting for an actual device that makes use of them.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Christian Marangi and committed by
Herbert Xu
bbbbd1d1 d6104733

+67
+67
Documentation/devicetree/bindings/crypto/inside-secure,safexcel-eip93.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/inside-secure,safexcel-eip93.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Inside Secure SafeXcel EIP-93 cryptographic engine 8 + 9 + maintainers: 10 + - Christian Marangi <ansuelsmth@gmail.com> 11 + 12 + description: | 13 + The Inside Secure SafeXcel EIP-93 is a cryptographic engine IP block 14 + integrated in varios devices with very different and generic name from 15 + PKTE to simply vendor+EIP93. The real IP under the hood is actually 16 + developed by Inside Secure and given to license to vendors. 17 + 18 + The IP block is sold with different model based on what feature are 19 + needed and are identified with the final letter. Each letter correspond 20 + to a specific set of feature and multiple letter reflect the sum of the 21 + feature set. 22 + 23 + EIP-93 models: 24 + - EIP-93i: (basic) DES/Triple DES, AES, PRNG, IPsec ESP, SRTP, SHA1 25 + - EIP-93ie: i + SHA224/256, AES-192/256 26 + - EIP-93is: i + SSL/DTLS/DTLS, MD5, ARC4 27 + - EIP-93ies: i + e + s 28 + - EIP-93iw: i + AES-XCB-MAC, AES-CCM 29 + 30 + properties: 31 + compatible: 32 + oneOf: 33 + - items: 34 + - const: airoha,en7581-eip93 35 + - const: inside-secure,safexcel-eip93ies 36 + - items: 37 + - not: {} 38 + description: Need a SoC specific compatible 39 + - enum: 40 + - inside-secure,safexcel-eip93i 41 + - inside-secure,safexcel-eip93ie 42 + - inside-secure,safexcel-eip93is 43 + - inside-secure,safexcel-eip93iw 44 + 45 + reg: 46 + maxItems: 1 47 + 48 + interrupts: 49 + maxItems: 1 50 + 51 + required: 52 + - compatible 53 + - reg 54 + - interrupts 55 + 56 + additionalProperties: false 57 + 58 + examples: 59 + - | 60 + #include <dt-bindings/interrupt-controller/arm-gic.h> 61 + 62 + crypto@1e004000 { 63 + compatible = "airoha,en7581-eip93", "inside-secure,safexcel-eip93ies"; 64 + reg = <0x1fb70000 0x1000>; 65 + 66 + interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>; 67 + };