From patchwork Tue Nov 7 15:55:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 16349 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:aa0b:0:b0:403:3b70:6f57 with SMTP id k11csp336010vqo; Tue, 7 Nov 2023 08:06:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHncW0D7j48H9zb7nZt7yY9HcFzJF0Am9U0/HQVLEu1YobI6g4CnfpDnzeRHNoIxSsKXnFc X-Received: by 2002:a17:902:f908:b0:1cc:4598:6f46 with SMTP id kw8-20020a170902f90800b001cc45986f46mr20347050plb.57.1699373194739; Tue, 07 Nov 2023 08:06:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699373194; cv=none; d=google.com; s=arc-20160816; b=c3bVf4/bCtM6ZveP2LhOMoQZ28qi3MeuAFk96F31L6jYNqSj+tI/arC7Pm1pW6POOS Ls3VraXg6q+sToZaxY0N48M0ZBAoAheAnHekOT4iACwObR/cuN+l8nYM9Ty5tu3PmLEJ THOcBx3FkDUGOKwC9sdtscZoejimqpJ85YFgncnRwdaHLqMICKgjJgWn9KxViLW0r5jr wsuYgFg3AYlhkhH34xy7UT1USnTBRi1sNYZK2TiPn64WgjsZqnhLvPcSz2VXShotoR7U VBvQaJIXBTWtViHeAHDUNdKMMD0LdbQFCpVoPBceAqsSr2suGw5aS9zNBTlhFYpYw+dU NEvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=dwIY2rn/dEbSPVpdhU2+f4uOVwzcygzYY5LLYZc61cU=; fh=+GMCTB2/spgVM/Ows9TeZE+n3L5bFlANoP6Uhwoswo4=; b=aN+vTOuwAtLwuPesUIm5nO63MYaCAmUgw7/taGR5Uyc2lq41hmeAjSMEvU9BiwAPot 7zXkCkqJMhjicE4tP9euAEdjeMrSqH9/hK47CdoC6DkeC0XDvm82Rc+VeVKJ6YIzAOyQ yL0ib4m+2vK8wWHCrRwDFRWfCkOie24UVQfiv8aYURE7GPUBAIqsykBXBoLpSqal4m// PM+4nPrdX+1suvzH0PuCR661jajj37aYrm9kKrbkaaWp9qx+xRUpo+kN7O9mbOHbplAC PqktgEimqDiEi59/whHIBnotmRYgU1VNHGQRRGi/EajRTJtlfMHnc6tNo4JEiHNayWDC EPaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=lb1Z3uYh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id h63-20020a638342000000b005bdbfff1c6fsi1486420pge.643.2023.11.07.08.06.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Nov 2023 08:06:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=lb1Z3uYh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id F09CF811904D; Tue, 7 Nov 2023 08:06:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344579AbjKGQFG (ORCPT + 32 others); Tue, 7 Nov 2023 11:05:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344698AbjKGQEV (ORCPT ); Tue, 7 Nov 2023 11:04:21 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C80746B1 for ; Tue, 7 Nov 2023 07:55:46 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-507ad511315so8432591e87.0 for ; Tue, 07 Nov 2023 07:55:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1699372544; x=1699977344; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=dwIY2rn/dEbSPVpdhU2+f4uOVwzcygzYY5LLYZc61cU=; b=lb1Z3uYhdRyz+ZQZdcQkp/JsP7erLsukxm7K8ttXw7a4MDTx7nAjWilC6/ykwBsSiz 9ah6PDdkJFggacY5pjPL/Dq9458r7WcbRlWSuHNZrawPl+jMNbPcocRSU9L1BsGC77GW FW9k5tqQQ8MZmTjtZWEEPfP74P6wO0N2OKZ/SjGTjTtmLjx4/x06Z09vLqa4MJhaPx5E NPoDdY6iEM7EFGmVlMzlAOqj5jw/Flee7uU1q+yourjDzxHunDhuyLDrpCDqGQMDdHmr 3IJKP8KAXqO/2agU9twgDZHpNndk2Uxwycnu60orLpYw6bUYHcN//VsfEJVr2kBmC6qu h1BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699372544; x=1699977344; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dwIY2rn/dEbSPVpdhU2+f4uOVwzcygzYY5LLYZc61cU=; b=vASCi/GmKQbTJYIfBSLWbyFWolug1JDcICq4ouLTq98kAJZ9+4Sa4kUzv5Dc876Qmr SJWSoWBNoybJ0teInf0un15JQwHfWFz2QmO305NoDnTvSOEgWMWTb9eSOgVKZ5jiDU23 MAlwF1MfGqPG753F5qh12hVc+S7I+w3uzqKMqLzCYL6WmxFy4rksTp2vm+OYwreUCzBj 7D2TwuVDoI1BB4rq5jDYkxkYnAIdLXHVLQwRGRLfAwBjkySStIigyt9dqElNOIKPex4a Rc3Q4B90h0yA3/KjcpIn/kjZcK1I8BVxT5UchX4meUp9JZ9pbNeobMHcemQZJ0NAfOOd BXXA== X-Gm-Message-State: AOJu0YwAGoc4GbGDjonV2pMevrqYX26cUy2pZnzuTtfi33FPX3FLaNDI UvK86snr4LJu1GFkpyepmx0GAg== X-Received: by 2002:ac2:430a:0:b0:503:257a:7f5d with SMTP id l10-20020ac2430a000000b00503257a7f5dmr21683796lfh.31.1699372544418; Tue, 07 Nov 2023 07:55:44 -0800 (PST) Received: from arnold.baylibre (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id f6-20020a05600c4e8600b003fefb94ccc9sm16579085wmq.11.2023.11.07.07.55.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Nov 2023 07:55:43 -0800 (PST) From: Corentin Labbe To: davem@davemloft.net, heiko@sntech.de, herbert@gondor.apana.org.au, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, p.zabel@pengutronix.de, robh+dt@kernel.org, sboyd@kernel.org Cc: ricardo@pardini.net, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Corentin Labbe Subject: [PATCH 0/6] crypto: rockchip: add support for rk3588/rk3568 Date: Tue, 7 Nov 2023 15:55:26 +0000 Message-Id: <20231107155532.3747113-1-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 07 Nov 2023 08:06:03 -0800 (PST) X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781921946688791453 X-GMAIL-MSGID: 1781921946688791453 Hello This patch serie add support for the new crypto rockchip IP found on rk3568 and rk3588. It was tested with CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y I would like to thanks all people which helped to test this driver Regards Corentin Labbe (6): dt-bindings: crypto: add support for rockchip,crypto-rk3588 MAINTAINERS: add new dt-binding doc to the right entry ARM64: dts: rk3588: add crypto node ARM64: dts: rk356x: add crypto node reset: rockchip: secure reset must be used by SCMI crypto: rockchip: add rk3588 driver .../crypto/rockchip,rk3588-crypto.yaml | 65 ++ MAINTAINERS | 1 + arch/arm64/boot/dts/rockchip/rk356x.dtsi | 12 + arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 12 + drivers/clk/rockchip/rst-rk3588.c | 42 - drivers/crypto/Kconfig | 29 + drivers/crypto/rockchip/Makefile | 5 + drivers/crypto/rockchip/rk2_crypto.c | 739 ++++++++++++++++++ drivers/crypto/rockchip/rk2_crypto.h | 246 ++++++ drivers/crypto/rockchip/rk2_crypto_ahash.c | 344 ++++++++ drivers/crypto/rockchip/rk2_crypto_skcipher.c | 576 ++++++++++++++ .../dt-bindings/reset/rockchip,rk3588-cru.h | 68 +- 12 files changed, 2063 insertions(+), 76 deletions(-) create mode 100644 Documentation/devicetree/bindings/crypto/rockchip,rk3588-crypto.yaml create mode 100644 drivers/crypto/rockchip/rk2_crypto.c create mode 100644 drivers/crypto/rockchip/rk2_crypto.h create mode 100644 drivers/crypto/rockchip/rk2_crypto_ahash.c create mode 100644 drivers/crypto/rockchip/rk2_crypto_skcipher.c