From patchwork Thu Oct 19 15:10:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien DESSENNE X-Patchwork-Id: 828147 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3yHsph2FtSz9t6K for ; Fri, 20 Oct 2017 02:11:56 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754466AbdJSPLx (ORCPT ); Thu, 19 Oct 2017 11:11:53 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:8816 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754486AbdJSPLv (ORCPT ); Thu, 19 Oct 2017 11:11:51 -0400 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v9JExUGU005639; Thu, 19 Oct 2017 17:10:43 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2dpnms3q0e-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 19 Oct 2017 17:10:43 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E340A34; Thu, 19 Oct 2017 15:10:42 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas22.st.com [10.75.90.92]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B82BB28E4; Thu, 19 Oct 2017 15:10:42 +0000 (GMT) Received: from SAFEX1HUBCAS21.st.com (10.75.90.44) by Safex1hubcas22.st.com (10.75.90.92) with Microsoft SMTP Server (TLS) id 14.3.352.0; Thu, 19 Oct 2017 17:10:42 +0200 Received: from localhost (10.129.7.205) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.352.0; Thu, 19 Oct 2017 17:10:41 +0200 From: Fabien Dessenne To: Herbert Xu , "David S . Miller" , Rob Herring , Mark Rutland , Maxime Coquelin , Alexandre Torgue , , , , CC: Benjamin Gaignard , Lionel Debieve , Ludovic Barre Subject: [PATCH v5 0/2] STM32 CRYP crypto driver Date: Thu, 19 Oct 2017 17:10:28 +0200 Message-ID: <1508425830-13565-1-git-send-email-fabien.dessenne@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.129.7.205] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-10-19_05:, , signatures=0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This set of patches adds a new crypto driver for STMicroelectronics stm32 HW. This drivers uses the crypto API and provides with HW-enabled block cipher algorithms. This driver was successfully tested with tcrypt / testmgr. Changes since v5: -add timeout in wait_busy function -clear key after use -misc : remove unused functions, use -Exx, use dev_err Changes since v4: - remove AEAD support from crypto engine as proposed by Herbert : waiting for the crypto_engine interface clean up before [https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1474434.html] - remove AES GCM & CCM algorithms Changes since v3: - update dt-bindings with Rob Herring remarks Changes since v2: - update dt-bindings (interrupts description) - rebase on STM32 crypto patches (L. Debieve : update CRC32 + add HASH) Fabien Dessenne (2): dt-bindings: Document STM32 CRYP bindings crypto: stm32 - Support for STM32 CRYP crypto module .../devicetree/bindings/crypto/st,stm32-cryp.txt | 19 + drivers/crypto/stm32/Kconfig | 9 + drivers/crypto/stm32/Makefile | 3 +- drivers/crypto/stm32/stm32-cryp.c | 1172 ++++++++++++++++++++ 4 files changed, 1202 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/crypto/st,stm32-cryp.txt create mode 100644 drivers/crypto/stm32/stm32-cryp.c