From patchwork Mon Aug 31 07:30:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Cerveny X-Patchwork-Id: 11745651 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 77CBC166C for ; Mon, 31 Aug 2020 07:32:35 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 51A2D20738 for ; Mon, 31 Aug 2020 07:32:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="wmSPWOgS"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="jcLLZWpx" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 51A2D20738 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=computer.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To: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:List-Owner; bh=nsuHJfDNPmT3VvDgZg9iUwU32pvGu4r/Xa/KYWHiF3I=; b=wmSPWOgSb28R47+4Eo5xj80hIf NlI4bO2IxIfLbeS9iDR3YN5Lh1KaSiEanIbZx6KFttS4ysMPZ8LjHiAr40YYSqxT/9Z2tzvk5751A ymN3nbuGsPic2R3t7qbna1WrTPD5a+kMmxVorew1skpQiTELMedN1Z+AfF8gsYOOI6qzFf1zHi4VS kZKm4NzkNNK/CgIKkvtVi2VZoUNjfPHDS2vOLe5dxZ2xrWgemCbbYS4NSpHmlTG/ggixOgJwSOUg1 yk6iaH9g5FBrL9upaB8UMqd24JFiCXVzfUQ7OnQpyCWj+aZuBOS5RwBpVax4a76JYwi2CyWXapIsy FF2j3USg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCeIe-0008CY-NQ; Mon, 31 Aug 2020 07:32:20 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCeIc-0008CC-3d for linux-arm-kernel@merlin.infradead.org; Mon, 31 Aug 2020 07:32:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Zcq89B5KvlNKhvyuYxIADJgYvW8jCiuCj7s6JFIrong=; b=jcLLZWpxeK7fhhsbq9529VoIJd jUVkYi5aT7oBWd3QBH9R7a4X+93MNaOJ6WbXa4oE9e2AFFp6HqHMp3vMAF8Bb7p2ftWD81hRNe+Yt gOI8rJC7LR4EQNoUQBizcCNVpOUckk3DM4o9nfspHqGVzbJKyKrqU31k0Y308s6zAQ7KtIEbpN6xi 1M7FcnsCztrgTy+0qs2LOxFqQhBydlgAeNITJET1uenDU4v1KCBdHxfZcYedO+H+B/taze8ze4cHJ UW1OHEW0DqmDfNWXuXVI5qO4ccNitw4h2bYP3EZUTorq/XLXmVd0AkZW9GbFeZYaRqCNdMUOZnaRp GsjJw+VA==; Received: from gw.c-home.cz ([89.24.150.100] helo=dmz.c-home.cz) by casper.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCeIV-0002qG-RF for linux-arm-kernel@lists.infradead.org; Mon, 31 Aug 2020 07:32:16 +0000 Received: from ubuntu1804.c-home.cz (intra-239.c-home.cz [192.168.1.239]) by dmz.c-home.cz (8.14.4+Sun/8.14.4) with ESMTP id 07V7VPlH005879; Mon, 31 Aug 2020 09:31:35 +0200 (CEST) From: Martin Cerveny To: Corentin Labbe Subject: [PATCH v2 1/3] dt-bindings: crypto: add new compatible for V3s Date: Mon, 31 Aug 2020 09:30:59 +0200 Message-Id: <20200831073101.3608-2-m.cerveny@computer.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200831073101.3608-1-m.cerveny@computer.org> References: <20200831073101.3608-1-m.cerveny@computer.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200831_083212_139115_3F44FB4A X-CRM114-Status: UNSURE ( 9.68 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.4.4 on casper.infradead.org summary: Content analysis details: (-1.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 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: devicetree@vger.kernel.org, Herbert Xu , linux-kernel@vger.kernel.org, Maxime Ripard , Chen-Yu Tsai , Rob Herring , linux-crypto@vger.kernel.org, Martin Cerveny , "David S. Miller" , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Like A33 "sun4i-ss" has a difference, it give SHA1 digest directly in BE. So add new compatible. Tested-by: Martin Cerveny Signed-off-by: Martin Cerveny --- .../bindings/crypto/allwinner,sun4i-a10-crypto.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml b/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml index fc823572b..180efd13a 100644 --- a/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml +++ b/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml @@ -25,6 +25,7 @@ properties: - const: allwinner,sun4i-a10-crypto - items: - const: allwinner,sun8i-a33-crypto + - const: allwinner,sun8i-v3s-crypto reg: maxItems: 1 @@ -59,7 +60,9 @@ if: properties: compatible: contains: - const: allwinner,sun6i-a31-crypto + oneOf: + - const: allwinner,sun6i-a31-crypto + - const: allwinner,sun8i-v3s-crypto then: required: From patchwork Mon Aug 31 07:31:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Cerveny X-Patchwork-Id: 11745663 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3709013B6 for ; Mon, 31 Aug 2020 07:40:58 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 047EB20738 for ; Mon, 31 Aug 2020 07:40:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="s7f3GdTB"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="BHEx/EDa" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 047EB20738 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=computer.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To: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:List-Owner; bh=DgMw7shNZEqo8w6TCm9eRLKkWpZD+6BMJ2915GEdE5A=; b=s7f3GdTBJL3AQxaQgEoIHJRuqH wjH1RSwVxeDFyEnwUqjiGE1FdjwBnCBKs6EMQdsUAX6v+Ma9tPx9lC38U830HYcNli0pABTHwBpP1 0KsUbNfe1Y1FizR4A4XIsNPBu0ySGIwWQs3E65Teq5FLUVSagi3x7IPqTI/d3kwFZWGSY5wsRknpV Xn8I+aJYITwSLMSIvZLq6yxgtBJr21rcxg2kE1m5FN3Snx4fpo1N5eaAeEKJX3wlToOr8FwyuBHCi FzYlrftJzAVtCcX6h1GrqhItwX+qIby3OvWh+VSMNkOf8GqIi5N8G/5/btjFvzBjlfgoPqU252bjg php5JFpw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCeQb-00010y-Gd; Mon, 31 Aug 2020 07:40:33 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCeQZ-00010r-9q for linux-arm-kernel@merlin.infradead.org; Mon, 31 Aug 2020 07:40:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description; bh=QrtCNWVbgGWBT3IYPtcbZXA+GxkXRa4imXkmIHj8tpE=; b=BHEx/EDa9cvU5USHNQTMGqRth3 qSAiJ38O5nPhzUROYTUhHU8LTofA7GNMzFQBnfjardW+WVN36/UaXnixXNlY0Ry3ydd2hsiuBdqnt GoXs8BG+P8Z8afafGV7PIpsusl9aS1LGQ81L6Ly+L1Rhdn3kMyJPla6Z5r+nUrg2fzNgytG4faVTK 78uZvgiuZKl/civ5F7LoEStdwRVs0R7Sk6v2wESgRyhXpc6fR4Bgz+fzJyfYrJjZmm89T6dCDzXbG 4efhGE+sGJIY2jFo1zR1CMWbEMxxW6UWn5+mpb/Ik8v1iJOHUjYEgbxxxyAuze0SGSmJLWkLQzJU4 mi636whw==; Received: from gw.c-home.cz ([89.24.150.100] helo=dmz.c-home.cz) by casper.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCeQU-0003Kn-Bw for linux-arm-kernel@lists.infradead.org; Mon, 31 Aug 2020 07:40:30 +0000 Received: from ubuntu1804.c-home.cz (intra-239.c-home.cz [192.168.1.239]) by dmz.c-home.cz (8.14.4+Sun/8.14.4) with ESMTP id 07V7VPlI005879; Mon, 31 Aug 2020 09:31:36 +0200 (CEST) From: Martin Cerveny To: Corentin Labbe Subject: [PATCH v2 2/3] ARM: dts: sun8i: v3s: Enable crypto engine Date: Mon, 31 Aug 2020 09:31:00 +0200 Message-Id: <20200831073101.3608-3-m.cerveny@computer.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200831073101.3608-1-m.cerveny@computer.org> References: <20200831073101.3608-1-m.cerveny@computer.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200831_084028_112568_610861AF X-CRM114-Status: UNSURE ( 9.55 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.4.4 on casper.infradead.org summary: Content analysis details: (-1.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 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: devicetree@vger.kernel.org, Herbert Xu , linux-kernel@vger.kernel.org, Maxime Ripard , Chen-Yu Tsai , Rob Herring , linux-crypto@vger.kernel.org, Martin Cerveny , "David S. Miller" , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org V3s contains crypto engine that is compatible with "sun4i-ss". Tested-by: Martin Cerveny Signed-off-by: Martin Cerveny --- arch/arm/boot/dts/sun8i-v3s.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi index e5312869c..4fec84c40 100644 --- a/arch/arm/boot/dts/sun8i-v3s.dtsi +++ b/arch/arm/boot/dts/sun8i-v3s.dtsi @@ -234,6 +234,16 @@ #size-cells = <0>; }; + crypto: crypto@1c15000 { + compatible = "allwinner,sun8i-v3s-crypto"; + reg = <0x01c15000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>; + clock-names = "ahb", "mod"; + resets = <&ccu RST_BUS_CE>; + reset-names = "ahb"; + }; + usb_otg: usb@1c19000 { compatible = "allwinner,sun8i-h3-musb"; reg = <0x01c19000 0x0400>; From patchwork Mon Aug 31 07:31:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Cerveny X-Patchwork-Id: 11745655 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BE2D513A4 for ; Mon, 31 Aug 2020 07:32:41 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 972B920738 for ; Mon, 31 Aug 2020 07:32:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="EtJGmMIF"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="CCTVQbAU" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 972B920738 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=computer.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To: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:List-Owner; bh=qIL3YlLyFo+RwQCwdJOs5WlsLE5HjygdqAaQHSTqbHY=; b=EtJGmMIFCrJy52kk4jASyd1FkK byWjMBEoIo82KhJGelUReBmmLYsxyErb6jCKY8F4NI4HRV7K3NxbdUPeucYTXmNnl8LZ7tPrt9gD2 dyfDjXoleC8QnQzoHS8yA61j1nyJLOt5pzrINUx9TbZ4KngewPp8/iKaeHPowLbajKLamypYwEP/1 ooAdhuNdlDZM8YAolMmkYfHQDIz6vt5K5YWxWf6D4DfnHVUPuUysaSnlSZs+gscNgI0KLXfpbKd3f 5eLep0tAfJZRi1Ak55X5N5E6dpIsQi2TIBToTd6YjxwYFmPXLiZ8Pq1n6xovgskN7o8JLWcAYsntA 3azBHcRg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCeIp-0008EV-2M; Mon, 31 Aug 2020 07:32:31 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCeIn-0008Dj-2v for linux-arm-kernel@merlin.infradead.org; Mon, 31 Aug 2020 07:32:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Q9owZoFhQP/8v1WZ3PwRETHLEFomRSRuCsdnKw/OZVg=; b=CCTVQbAUk5PtiXHGWGsAYDd/x4 EF7f5JiN0oGLmOKbl9+dC8Tvl1dtpwsCFnLSZWdpLbqgDhUWKYm48yu87+G/3XqO1I/h3a8UP95aB OrOoTHOw+3uGwul9olVTztl1B9+4wuJkN54MAKhYbnbwIQqgvgPM7+TKRPLuiRY49QZ3uPyvYda/F YXE4HgoA4w9jPebsr5nC1JKzGCVRCttROg7qMUlnF0TA/mZPx5piuqDveqCPok90qJtk9SgfattkQ 44C6C3wfC4jn6oGIzCfAmHh/rdyC5lPS4bVl+6dKrRiufpFzZ1fe19JLb+1fSPDX5F110vRI0YKIP Hq/cZvzQ==; Received: from gw.c-home.cz ([89.24.150.100] helo=dmz.c-home.cz) by casper.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCeIV-0002qT-Rs for linux-arm-kernel@lists.infradead.org; Mon, 31 Aug 2020 07:32:28 +0000 Received: from ubuntu1804.c-home.cz (intra-239.c-home.cz [192.168.1.239]) by dmz.c-home.cz (8.14.4+Sun/8.14.4) with ESMTP id 07V7VPlJ005879; Mon, 31 Aug 2020 09:31:37 +0200 (CEST) From: Martin Cerveny To: Corentin Labbe Subject: [PATCH v2 3/3] crypto: sun4i-ss - add the V3s variant of SS Date: Mon, 31 Aug 2020 09:31:01 +0200 Message-Id: <20200831073101.3608-4-m.cerveny@computer.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200831073101.3608-1-m.cerveny@computer.org> References: <20200831073101.3608-1-m.cerveny@computer.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200831_083212_146102_CB5B9683 X-CRM114-Status: GOOD ( 10.18 ) X-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.4.4 on casper.infradead.org summary: Content analysis details: (-1.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 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: devicetree@vger.kernel.org, Herbert Xu , linux-kernel@vger.kernel.org, Maxime Ripard , Chen-Yu Tsai , Rob Herring , linux-crypto@vger.kernel.org, Martin Cerveny , "David S. Miller" , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Like A33 "sun4i-ss" has a difference, it give SHA1 digest directly in BE. So add new compatible. Tested-by: Martin Cerveny Signed-off-by: Martin Cerveny Acked-by: Corentin Labbe --- drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c index a2b67f7f8..d24496cac 100644 --- a/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c +++ b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c @@ -31,6 +31,10 @@ static const struct ss_variant ss_a33_variant = { .sha1_in_be = true, }; +static const struct ss_variant ss_v3s_variant = { + .sha1_in_be = true, +}; + static struct sun4i_ss_alg_template ss_algs[] = { { .type = CRYPTO_ALG_TYPE_AHASH, .mode = SS_OP_MD5, @@ -505,6 +509,9 @@ static const struct of_device_id a20ss_crypto_of_match_table[] = { { .compatible = "allwinner,sun8i-a33-crypto", .data = &ss_a33_variant }, + { .compatible = "allwinner,sun8i-v3s-crypto", + .data = &ss_v3s_variant + }, {} }; MODULE_DEVICE_TABLE(of, a20ss_crypto_of_match_table);