From patchwork Tue Jun 18 12:08:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "J, KEERTHY" X-Patchwork-Id: 11001483 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D7B79924 for ; Tue, 18 Jun 2019 12:09:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C7BFA289B7 for ; Tue, 18 Jun 2019 12:09:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B919D28A60; Tue, 18 Jun 2019 12:09:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7AF03289B7 for ; Tue, 18 Jun 2019 12:09:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=1WUAc/A7SgSjwP81s2EoMsgUcNrnUI4mZ/ZEsBlKC48=; b=ZB1thWHqg0WTe+ W4gRCOR5BD2/jRd+J/G+IP8c8BncQl9pvfPAIgxz6erc9po3rSTnnVyeImQ+5rZ1KTvvGI8LPYW8i rWsrjnM/mhcsDAwAW+mRM8sQ8yb2FxIyWJjksZ1ClI46xPJpazetLPC1GeptsydAoO8e6uaiDWboT xlpu2tnQSBwHW2WSwAx5s2oRxCfkPEVyAhib/BVGfJOtRPvBfGaH15aKPHgJtN6veKEjLkHgPk9Gy T/i0nWSvm/wBS+gYJNqucPd1q0yP+EkgbpLo8M1eJYltK+CqyRlOtiDTuLlZRg9eq4a6WjqZVL+4G H0lOESUh2Cu1nryA4ipA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hdCvI-0003GZ-IR; Tue, 18 Jun 2019 12:09:12 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hdCud-0002ki-JI for linux-arm-kernel@lists.infradead.org; Tue, 18 Jun 2019 12:08:35 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x5IC8C6C121232; Tue, 18 Jun 2019 07:08:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1560859692; bh=uKcw8oU4+FhGXSqf3gZugB8yITGfh5/LWvrWJ4CfFJ4=; h=From:To:CC:Subject:Date; b=BIb7ORKEkQHF3vcndibQSbDMsPFF46M94XWaPZhfSn1L+E+ee2wUPRv7rf9MmQ+s3 Bqa9jRvzUcU7jFZm0vRYn27zM5yNCW9uY8mL4Q/SR4m0nRakJZhCFJbFJQ75tQyWDe dNqtb1Pa9BhHnY+YeLMEDJX5xypKUCuW8evR0P0Y= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x5IC8CMq068759 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 18 Jun 2019 07:08:12 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) 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.1713.5; Tue, 18 Jun 2019 07:08:12 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Tue, 18 Jun 2019 07:08:12 -0500 Received: from a0393675ula.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x5IC89GY080327; Tue, 18 Jun 2019 07:08:09 -0500 From: Keerthy To: , , Subject: [PATCH 00/10] crypto: k3: Add sa2ul driver Date: Tue, 18 Jun 2019 17:38:33 +0530 Message-ID: <20190618120843.18777-1-j-keerthy@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190618_050831_786509_3F1D6C2A X-CRM114-Status: GOOD ( 11.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nm@ti.com, devicetree@vger.kernel.org, j-keerthy@ti.com, linux-kernel@vger.kernel.org, t-kristo@ti.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The series adds Crypto hardware accelerator support for SA2UL. SA2UL stands for security accelerator ultra lite. The Security Accelerator (SA2_UL) 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 The device includes one instantiation of SA2_UL named SA2_UL0 SA2UL needs on tx channel and a pair of rx dma channels. This series has dependency on UDMA series. Hence is based on top of: https://patchwork.kernel.org/project/linux-dmaengine/list/?series=114105 The above series adds couple of dmaengine APIs that are used by the sa2ul driver. Hence there is a hard dependency on the above series. Keerthy (10): dt-bindings: crypto: k3: Add sa2ul bindings documentation crypto: sa2ul: Add crypto driver crypto: sa2ul: Add AES ECB Mode support crypto: sa2ul: Add aead support for hmac(sha1)cbc(aes) algorithm crypto: sha256_generic: Export the Transform function crypto: sa2ul: Add hmac(sha256)cbc(aes) AEAD Algo support crypto: sa2ul: Add hmac(sha1) HMAC algorithm support crypto: sa2ul: Add hmac(sha256) HMAC algorithm support sa2ul: Add 3DES ECB & CBC Mode support arm64: dts: k3-am6: Add crypto accelarator node .../devicetree/bindings/crypto/sa2ul.txt | 47 + arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 33 + crypto/sha256_generic.c | 3 +- drivers/crypto/Kconfig | 17 + drivers/crypto/Makefile | 1 + drivers/crypto/sa2ul.c | 2232 +++++++++++++++++ drivers/crypto/sa2ul.h | 384 +++ include/crypto/sha.h | 1 + 8 files changed, 2717 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/crypto/sa2ul.txt create mode 100644 drivers/crypto/sa2ul.c create mode 100644 drivers/crypto/sa2ul.h