From patchwork Tue Sep 27 08:00:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 12990102 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EB9BBC07E9D for ; Tue, 27 Sep 2022 08:07:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231691AbiI0IHk (ORCPT ); Tue, 27 Sep 2022 04:07:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231706AbiI0IHX (ORCPT ); Tue, 27 Sep 2022 04:07:23 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2B4FF34C6 for ; Tue, 27 Sep 2022 01:01:52 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id i203-20020a1c3bd4000000b003b3df9a5ecbso8916919wma.1 for ; Tue, 27 Sep 2022 01:01:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=Lbh/c4vCkGtXonzdpXdp4XQ0sSxf7/y8kx7FY8V2Teo=; b=BPWFqeFE/urWJLLIaffyOd62/9aionydmnuP+9XMmZJffpqDs6QmZ/24AkuJ3D7N84 ByyBfct8LiRIIoyZDV3HMUi2jYHyTutDESS42723sHZikNFRK4kLjyTW/USb2BUiQ62r DZTlUdoqciHoSoHPfhYhnuY1IOWe2MO+E9yVo8TRCi7jNRkAgWWpDJ0pogSk9WnIPWa1 P0iLnnUs45yJhQOHL96REtFFMBQ1EkGWklMdv6M8YzSldMPZ6WWoUbFiM+BcJyE74VrK qLR8yhFB4nqn/2R2RSy2y/GnCP3+Yl5J9YPCOuS85oryBpOs39PYU5ik7ebJy8oeIWOr bd2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=Lbh/c4vCkGtXonzdpXdp4XQ0sSxf7/y8kx7FY8V2Teo=; b=QMg5/+BHtT2hsy52DA4QhqW/ne1DZiOMIR39Jx+ezngkXF+wErk7PJPUBZk/QDxBc+ kGxj/ksadaqcIO8YBzWYAbjG8+uSOFpGxoZKZti9agL1VLAxFg4BClD1T3+0N3Bh7Y5H ABDxrQ2oxE4clqKURSkm9yPifBDx0M18XdqSxGgzwwIKuxS1VmaiYgrZLEytcPzJ2lPN Nj+w3CBXiBpcRPrsIIVB1OMQRi/MSZ47h2/u1CKcvfIq4JHLJGcPyuMTJFEgTp4CnScA D0n0VEf3Z+cMNyueupG+h5PHQDRuknL+PWI4EsKdhAD6XmjdIpqYzlsEyQM+92WB2VXU bamA== X-Gm-Message-State: ACrzQf0au5ID7TUwrvD6bVT1Z6sOOJusjTGK5dVYGO7w5UoBPnNbdBT1 ISFpquhagNhTM9c7MCceyMlnww== X-Google-Smtp-Source: AMsMyM4F+y88kC71sg139FfgxCHot0WplCztNaRCYtlq/L2u4WA2oLX8IoD9BEP1Q6eR5bWasJoqmg== X-Received: by 2002:a7b:ce08:0:b0:3b4:ff9b:3d89 with SMTP id m8-20020a7bce08000000b003b4ff9b3d89mr1639769wmc.31.1664265666615; Tue, 27 Sep 2022 01:01:06 -0700 (PDT) Received: from localhost.localdomain (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id p4-20020a1c5444000000b003a5c7a942edsm13357199wmi.28.2022.09.27.01.01.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 01:01:05 -0700 (PDT) From: Corentin Labbe To: heiko@sntech.de, davem@davemloft.net, herbert@gondor.apana.org.au, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Corentin Labbe Subject: [PATCH RFT 0/5] crypto: rockchip: add crypto offloader V2 Date: Tue, 27 Sep 2022 08:00:43 +0000 Message-Id: <20220927080048.3151911-1-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hello Rockchip rk3568 and rk3588 have a common crypto offloader IP different than rk3228 one. I started to work the driver for this IP on a rk3588 based board, but this SoC is still not upstream. So it is why I send this serie asking for test since I own no rk3568 and I need to be sure datasheet is right. Note: I keeped all rk3588 reference intentionaly, but probably it will need to be removed until this SoC was upstream. Regards Corentin Labbe (5): crypto: rockchip: move kconfig to its dedicated directory dt-bindings: crypto: add support for rockchip,crypto-rk3588 MAINTAINERS: add new dt-binding doc to the right entry crypto: rockchip: support the new crypto IP for rk3568/rk3588 ARM64: dts: rk3568: add crypto node .../crypto/rockchip,rk3588-crypto.yaml | 71 ++ MAINTAINERS | 1 + arch/arm64/boot/dts/rockchip/rk3568.dtsi | 14 + drivers/crypto/Kconfig | 32 +- drivers/crypto/Makefile | 2 +- drivers/crypto/rockchip/Kconfig | 56 ++ drivers/crypto/rockchip/Makefile | 5 + drivers/crypto/rockchip/rk3588_crypto.c | 646 ++++++++++++++++++ drivers/crypto/rockchip/rk3588_crypto.h | 221 ++++++ drivers/crypto/rockchip/rk3588_crypto_ahash.c | 346 ++++++++++ .../crypto/rockchip/rk3588_crypto_skcipher.c | 340 +++++++++ 11 files changed, 1703 insertions(+), 31 deletions(-) create mode 100644 Documentation/devicetree/bindings/crypto/rockchip,rk3588-crypto.yaml create mode 100644 drivers/crypto/rockchip/Kconfig create mode 100644 drivers/crypto/rockchip/rk3588_crypto.c create mode 100644 drivers/crypto/rockchip/rk3588_crypto.h create mode 100644 drivers/crypto/rockchip/rk3588_crypto_ahash.c create mode 100644 drivers/crypto/rockchip/rk3588_crypto_skcipher.c