From patchwork Mon Jul 13 08:34:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 235369 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp2637262ilg; Mon, 13 Jul 2020 01:34:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTOHUb4N66MF2L55eVrPx9sMGxul0MXvyrbxYjUK/PkJ7KrO3cASfoi1PrQrG1B09FXu1Y X-Received: by 2002:a50:a881:: with SMTP id k1mr87762093edc.12.1594629294280; Mon, 13 Jul 2020 01:34:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594629294; cv=none; d=google.com; s=arc-20160816; b=JD0kQtQ+dsIkriDdo14ZJ4lXQp7t9iwrrLM2nfdsLMx8G2JKI9C/EG/KwH7t1rFSRi H5mJqkXUaF+m8FT4UlOFE71iC55RGiQAD3FPSuW6mLuNU85QxfXo+64NDYByjKaMcG5u pXkhKshka0WcnRjFc4BccHBiBq/r6PBd6LO9m9rudDbU7AVlHfW6eGpqfdOxikewhuhG OIDxWm1/ye7WGb1e/c0eKFw5iqPNweFMPb87Hm5oQq/doQFSa7DLEPjNcbSxGZ/P39DP 9ZsKMWoChJ17egp6OHuL0YWfBIgCQgU3O8UjcJHzHHt05kfkEdzk1tXUsb7bbs9Nc3l6 JVQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=2Ex8zWOQ9MvwkFDcxGmCY4L/ueAkXeZ/a+kFsegWaiI=; b=o2w4kDptpFWS4+7x1SNOsdttOVMjMobM8peLsTggQJnnENoxx/QSR3mdfuF6ilqY1J L1/bNqpmlqygQaj7/VeM+ww8A7AKiJ4hps9ypDVrwzICxPTjAgwIMJiXQlQk0o1WQvCN vVwRokZxnof2lGiuDl8zkruI/JGZCjkD3JTUvfrVoB00/8NXKXIgu4c5Jc/i6dnnIjLz f6GiYqcskz9mx039Mzvh6u+SQ2ezKclFjv8mVtIHJpOfS4DDX4a1f+x+mMYa7MCibc/O ZkuXbd9g86i3L0tTuLonDy1794hDgRDctZza/goL4Tv9MV62ozJvv3rQd9jd+QVdfYw+ v1HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=PzkJanWW; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v12si8052682ejc.292.2020.07.13.01.34.54; Mon, 13 Jul 2020 01:34:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=PzkJanWW; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726571AbgGMIex (ORCPT + 1 other); Mon, 13 Jul 2020 04:34:53 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:49314 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725830AbgGMIew (ORCPT ); Mon, 13 Jul 2020 04:34:52 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 06D8Yc55018172; Mon, 13 Jul 2020 03:34:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1594629278; bh=2Ex8zWOQ9MvwkFDcxGmCY4L/ueAkXeZ/a+kFsegWaiI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=PzkJanWWaYeH8I/Hgg1oRtIgPKJYwrvQJHx0Vl1x7YNg3+1y5R7/hRAqVGsUjrQxz uMZ1xGGsHIzGbqkJySxYGvZHlXmgZcszx8kC/33/7vSL39osK8BQOsnVEhskN9rx7j 24z8wuJjQB91G+eP+Cl9sVZdSsP0QgWgyI/m0jUI= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 06D8Yc3Z041180; Mon, 13 Jul 2020 03:34:38 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 13 Jul 2020 03:34:38 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Mon, 13 Jul 2020 03:34:38 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 06D8YYi3032127; Mon, 13 Jul 2020 03:34:37 -0500 From: Tero Kristo To: , , CC: , Subject: [PATCHv6 1/7] dt-bindings: crypto: Add TI SA2UL crypto accelerator documentation Date: Mon, 13 Jul 2020 11:34:21 +0300 Message-ID: <20200713083427.30117-2-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200713083427.30117-1-t-kristo@ti.com> References: <20200713083427.30117-1-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Keerthy 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 Signed-off-by: Keerthy [t-kristo@ti.com: converted documentation to yaml] Signed-off-by: Tero Kristo --- .../devicetree/bindings/crypto/ti,sa2ul.yaml | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/ti,sa2ul.yaml -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/Documentation/devicetree/bindings/crypto/ti,sa2ul.yaml b/Documentation/devicetree/bindings/crypto/ti,sa2ul.yaml new file mode 100644 index 000000000000..85ef69ffebed --- /dev/null +++ b/Documentation/devicetree/bindings/crypto/ti,sa2ul.yaml @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/crypto/ti,sa2ul.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: K3 SoC SA2UL crypto module + +maintainers: + - Tero Kristo + +properties: + compatible: + enum: + - ti,j721e-sa2ul + - ti,am654-sa2ul + + reg: + maxItems: 1 + + power-domains: + maxItems: 1 + + dmas: + items: + - description: TX DMA Channel + - description: RX DMA Channel #1 + - description: RX DMA Channel #2 + + dma-names: + items: + - const: tx + - const: rx1 + - const: rx2 + + dma-coherent: true + + "#address-cells": + const: 2 + + "#size-cells": + const: 2 + + ranges: + description: + Address translation for the possible RNG child node for SA2UL + +patternProperties: + "^rng@[a-f0-9]+$": + type: object + description: + Child RNG node for SA2UL + +required: + - compatible + - reg + - power-domains + - dmas + - dma-names + - dma-coherent + +additionalProperties: false + +examples: + - | + #include + + main_crypto: crypto@4e00000 { + compatible = "ti,j721-sa2ul"; + reg = <0x0 0x4e00000 0x0 0x1200>; + power-domains = <&k3_pds 264 TI_SCI_PD_EXCLUSIVE>; + dmas = <&main_udmap 0xc000>, <&main_udmap 0x4000>, + <&main_udmap 0x4001>; + dma-names = "tx", "rx1", "rx2"; + dma-coherent; + };