Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2159039ybe; Sat, 7 Sep 2019 09:56:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqycISvPGDBdM1RJDbO77nUxA+eUiIVsPWFpSd+8vT+gGGWrjjHJA1XTyQ3VzO/ttpJz5vX+ X-Received: by 2002:a63:1765:: with SMTP id 37mr13506627pgx.447.1567875392898; Sat, 07 Sep 2019 09:56:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567875392; cv=none; d=google.com; s=arc-20160816; b=DKXds9XIM7AD5CQfoFqbdbn+9CnlQ9aBjx0jFakXtgvQ8O3JXA+hxelgGQsTPcOzhk MzXQKfjZVPF8MOow1Rw2qLInLXqq59HzuZB/VfP/qMGXoKDZ0hMWzQKqDhVaiF/CqBrm Nbv0n6dIzwISbzz5DCuMeoz2xKIzta+L7Yhfr0/lpwOE3dHE4Y2FnQeeVOeqa6+vCDre skyxL834xAb1XLcPluS58cG/AYTPyI6BjboT8/GAPvmUtxIFQE6D90u//2KaG9a2/Osq 95NfaR58sL71GzUJGSMO3Fq/LZxZlwxiVoIZ5KVJ58vvtVUNQrNLGN2CEscBzMxGSCl2 JSdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=xrcge4xWSXW5K31t/HQVYFW44MIvXTrC+21SSJQ7ljI=; b=b78Kfjz37CN3ccfOD0Og0hDHlF10qIKY51nsuPIQ+mSUZ+eWNX2yHQUHlHbAECmuXA o5kjGnkb3nozrMToZbUDER5dhpF3jJFYEy7SK/vZ3tFTLqyMmeZODvxq5BUSLi21GgHC KejhPEZoqSSK0oSc/Gq9SP2tFCf0YAiPEblvKCNC1EheNb4HbLtlhA/gz6IgbjPmoNwA gDdKPw4TpQLjF+n3WyRha/lNGhO5vd2Wg1ehAcLhW1JrCX9DwmXs/c1J+grO4PREyvxG Ck/En2PGS04qOLwpDTnMg4wgXZ+eco3asyfP9PWx+dowTsy0WNTwLsbvMUW9FuxtzNFh Sb9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UF6J+7FY; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10si7830388pjr.62.2019.09.07.09.56.07; Sat, 07 Sep 2019 09:56:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UF6J+7FY; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392087AbfIFSqF (ORCPT + 99 others); Fri, 6 Sep 2019 14:46:05 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:39569 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390235AbfIFSqF (ORCPT ); Fri, 6 Sep 2019 14:46:05 -0400 Received: by mail-wm1-f65.google.com with SMTP id q12so8171659wmj.4; Fri, 06 Sep 2019 11:46:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xrcge4xWSXW5K31t/HQVYFW44MIvXTrC+21SSJQ7ljI=; b=UF6J+7FY9nlRmV8MXdouTLIlk/PpuSE8Z9pSuifFCXnHcXTCm0fulWoCKMBAzrzRVi obsHYkHyHVJ3OSDqjzsFeZk544ak+rV+yH1Pn3qhjWsd5KRhsiU1SxR+8BL6110HXWQC Ujngu9jHfWMF3MycgtptWTwvEJNMRss+ip0TzJeuk/k3eeemWAdwOtkLYuSz0H8LUE+e FSQoGBUbAG/np/5n0NRInUUBJy8+oA7+USY0+cnxduQSk6oefxcmQpjXRyU3mzDfPRIW lzGBmFxrexM/E3tXPMJg9a8Z4wBJpoyj22Wy061OwTKatx0o03sE7BmpDA5hWsvPoXRh Poxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xrcge4xWSXW5K31t/HQVYFW44MIvXTrC+21SSJQ7ljI=; b=h7/ECtFPXNEcZiVh/qwVlM5YT7WcoXB3ixXJwYnCV/aV45Of/753C0GRg4NojFFP3L q8NBG2DiveF6WWBD92/VRMVQxreU7+jY9p23YVEO5ZQVNb/lLAgEMukD0Ob5293iHQwS eaxchRk/cwK3ZXuY9clPyYW3TRho5gf0WFRgsQJkJHtZkh7GH+n4NSGZ+O1x+V6w8dO9 x/qLRBcgBYFFoJJU+O8ulrYOY687zTLny8VmlWBRa9Kd6CCMjSxpOS+UVu6soTaeOszL SLhSt0+XVn8pCO7TcFjqkoAudw/xaQdfKX/+aHO1n9Oenvl2td46FZDzhEe0aOLV2YST WDMg== X-Gm-Message-State: APjAAAUNxppdwLQup3g9NflPB+tlLmQpJccc2AvjN6EYqIcxUzd19xrj 6AQdAle51X4yGczuX4YpOIg= X-Received: by 2002:a7b:c447:: with SMTP id l7mr8159910wmi.33.1567795562952; Fri, 06 Sep 2019 11:46:02 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id j1sm8677577wrg.24.2019.09.06.11.46.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Sep 2019 11:46:02 -0700 (PDT) From: Corentin Labbe To: davem@davemloft.net, herbert@gondor.apana.org.au, linux@armlinux.org.uk, mark.rutland@arm.com, mripard@kernel.org, robh+dt@kernel.org, wens@csie.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Corentin Labbe Subject: [PATCH 0/9] crypto: add sun8i-ce driver for Allwinner crypto engine Date: Fri, 6 Sep 2019 20:45:42 +0200 Message-Id: <20190906184551.17858-1-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hello This patch serie adds support for the Allwinner crypto engine. The Crypto Engine is the third generation of Allwinner cryptogaphic offloader. The first generation is the Security System already handled by the sun4i-ss driver. The second is named also Security System and is present on A80 and A83T SoCs, originaly this driver supported it also, but supporting both IP bringing too much complexity and another driver (sun8i-ss) will came for it. For the moment, the driver support only DES3/AES in ECB/CBC mode. Patchs for CTR/CTS/XTS and RNGs will came later. Regards Corentin Labbe (9): crypto: Add allwinner subdirectory crypto: Add Allwinner sun8i-ce Crypto Engine dt-bindings: crypto: Add DT bindings documentation for sun8i-ce Crypto Engine ARM: dts: sun8i: r40: add crypto engine node ARM: dts: sun8i: h3: Add Crypto Engine node ARM64: dts: allwinner: sun50i: Add Crypto Engine node on A64 ARM64: dts: allwinner: sun50i: Add crypto engine node on H5 ARM64: dts: allwinner: sun50i: Add Crypto Engine node on H6 sunxi_defconfig: add new crypto options .../bindings/crypto/allwinner,sun8i-ce.yaml | 84 +++ MAINTAINERS | 6 + arch/arm/boot/dts/sun8i-h3.dtsi | 11 + arch/arm/boot/dts/sun8i-r40.dtsi | 11 + arch/arm/configs/sunxi_defconfig | 2 + arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 11 + arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 11 + arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 + drivers/crypto/Kconfig | 2 + drivers/crypto/Makefile | 1 + drivers/crypto/allwinner/Kconfig | 32 + drivers/crypto/allwinner/Makefile | 1 + drivers/crypto/allwinner/sun8i-ce/Makefile | 2 + .../allwinner/sun8i-ce/sun8i-ce-cipher.c | 390 +++++++++++ .../crypto/allwinner/sun8i-ce/sun8i-ce-core.c | 630 ++++++++++++++++++ drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h | 256 +++++++ 16 files changed, 1460 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/allwinner,sun8i-ce.yaml create mode 100644 drivers/crypto/allwinner/Kconfig create mode 100644 drivers/crypto/allwinner/Makefile create mode 100644 drivers/crypto/allwinner/sun8i-ce/Makefile create mode 100644 drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c create mode 100644 drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c create mode 100644 drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h -- 2.21.0