Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1462643ybt; Mon, 15 Jun 2020 00:26:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBlSzsqrVgsHpR32UKZor5jRCBVpMPlS0FilBTIdXUVBO+kyzA579A4GGz5yrdJ8HfZvLg X-Received: by 2002:a50:cd1c:: with SMTP id z28mr1514666edi.257.1592205986899; Mon, 15 Jun 2020 00:26:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592205986; cv=none; d=google.com; s=arc-20160816; b=x0ZScQjCPyI0Akz9oFW2hdUlqbYjAuvNmHm5Oq5XOXwebStZ2wfupcUthNy993CqVM UagO0enWnb58CmUH2lsT4cNnuTZV52ZOj1scU9Xdq597ON6fcBKFFCBq+N7TgkN5QRn/ y+4Uen28f/APqYSh7YDea0bruUou7YYbrFtX7/8nR815YwrzFWmoRUBeVSRmyWwBkM8G aCJUszeN0pH4bbetqzxm9nHLUrQRMkkHW5tfCi4AX7/Cj6DyBYeoldP+YcLlURHJyzY4 TJSTWnfZolKbA6WMiEk0mYDPiQxSxGuHIKXPAMYmguKUuVjDmoWU8I+yNOf1UZa8XPh7 0VDw== 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=uEc8embJQkFqj5+rg+vKjeEOegxVe6d2bvkNVny+0PsjLDEBnp/99QEiUwLahzjaeY T1TnxU3aRQtbwoM9vS8kBXgPQmm/ECYA+WOJofAHNWOYWVU77wuKH6Y1pye2eGIxw3KH 3iAGFoY6rUEnm66/0R2ShDmRqSiUchqpdZQBbXTESKGJRjNjD8JkceOdONUlfTEXE78h zKhwNmX66j9QTnS3Osp6TYQVkijbBJ/qc8F7POt9H/dKnijOzkYRetJydO7mQTTZdxR1 j6pJYz+GCDskxsSpPiPdbABMSUar5+hNPl5Qb7m04sUxb9vgUePfHaagyhEU6UvJc8Ke hCFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gujfhFrj; 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 ob24si8553515ejb.701.2020.06.15.00.26.02; Mon, 15 Jun 2020 00:26:26 -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=gujfhFrj; 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 S1728343AbgFOHZV (ORCPT + 99 others); Mon, 15 Jun 2020 03:25:21 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:51692 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728465AbgFOHZR (ORCPT ); Mon, 15 Jun 2020 03:25:17 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 05F7F3bj124758; Mon, 15 Jun 2020 02:15:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1592205303; bh=2Ex8zWOQ9MvwkFDcxGmCY4L/ueAkXeZ/a+kFsegWaiI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=gujfhFrjLRpEfPpt/58QnxpyQspfXAwObTMhdWPmIPNnIlzq1NB3rTmjoGyXqdpZt wSlbEGH9FiifZJFa97T5VM+OBc724T4JtcB7LWauGB9fEQ46kFWcs0Swy+gsapxF+7 20lTRyZX17hTDd0e0N3tH4H9o6tuK+mMjvHE/HDw= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 05F7F2Pb004010 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 15 Jun 2020 02:15:03 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 15 Jun 2020 02:15:02 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE101.ent.ti.com (10.64.6.22) 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, 15 Jun 2020 02:15:02 -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 05F7Exr7062159; Mon, 15 Jun 2020 02:15:01 -0500 From: Tero Kristo To: , , , CC: Subject: [PATCHv4 1/7] dt-bindings: crypto: Add TI SA2UL crypto accelerator documentation Date: Mon, 15 Jun 2020 10:14:46 +0300 Message-ID: <20200615071452.25141-2-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200615071452.25141-1-t-kristo@ti.com> References: <20200615071452.25141-1-t-kristo@ti.com> MIME-Version: 1.0 Content-Type: text/plain 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 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; + }; -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki