From patchwork Mon Sep 7 16:24:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Cerveny X-Patchwork-Id: 11761617 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 4293792C for ; Mon, 7 Sep 2020 16:58:29 +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 080332080A for ; Mon, 7 Sep 2020 16:58:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="mqil0iC5"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="KtFAaQWO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 080332080A 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=TZPRg2IzV0ogjSfSyLdFC97yu2GlLVBHAOM6Vg5F/M4=; b=mqil0iC5KSlg/LjCp4txrQVPJ4 qdZ8J0TGpWFq8j5bRF+VAxjNy0AH7V5EZT8V9fAt5Vt3x+1e7B4nBJvm5QvfxR68J8viBkWrLr2Cq OAqzk/AqIHHifMDfXtM6WK7aSNgfrI+A6M6yPf2YW0UlS6LMsVN5ZwdF8o8LtHs8/NxR7DR3StUFo OnkgyiB3Ce/kGdnr5Ckw55QWwibiczTfAhCoHdha1eiW7SIMEX53uUxcTxmT2rreUIQYWNAgGDWsA 4MRwvaWqIGuqoDvou+yZg9kXC5c/R40NUfg66VwlZ6f8/aAjDbqQRXBnxCCrQ1MPnP3y84DRz0wHG kPnx51sw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFKS2-0004GJ-JF; Mon, 07 Sep 2020 16:57:06 +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 1kFKRy-00049w-2w for linux-arm-kernel@merlin.infradead.org; Mon, 07 Sep 2020 16:57:02 +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=6Hr3MsMB+l2LQFK6wB3b7Z0tw+ASWoMRvwc9UAdwt+M=; b=KtFAaQWOQ417882nLCAsKH2AZg b0U2qnrWlnnQfz/ufXsCPubgpfOIcDdoFsgalHpNkA+jv7y49LUcQj7zrA3tfJnQKKLL7mRYww/sS HBCnmo7C3xlcEgteWkzSACJh2gjqj7KarG2jGaaPV+zQ3o8RYVUy7zBwrYgO9nKG7unoCQenGtJ4w xHIuDUqWNS/U5/f0FpkoIBiTZGWG3KyT4sXmCC6d75lPZ8I5p31ypyqC/zDXlCYGqEyWPclsHO0YE eKJsIFb1li9XP/KvaKFNDh/AO4x/ovT7huIRtHLZh36jKeYHk+/18pDio7Dmz9KKYzxPBUFG0kV0w 1MVwo+Mg==; 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 1kFJxS-00009J-1Z for linux-arm-kernel@lists.infradead.org; Mon, 07 Sep 2020 16:25:50 +0000 Received: from ubuntu1804.c-home.cz (unifi.c-home.cz [192.168.1.239]) by dmz.c-home.cz (8.14.4+Sun/8.14.4) with ESMTP id 087GP1f2019439; Mon, 7 Sep 2020 18:25:08 +0200 (CEST) From: Martin Cerveny To: Maxime Ripard Subject: [PATCH v3 1/2] dt-bindings: crypto: Add compatible for V3s Date: Mon, 7 Sep 2020 18:24:57 +0200 Message-Id: <20200907162458.23730-2-m.cerveny@computer.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907162458.23730-1-m.cerveny@computer.org> References: <20200907162458.23730-1-m.cerveny@computer.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200907_172530_917250_1F744729 X-CRM114-Status: UNSURE ( 8.67 ) 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.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 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, 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 Allwinner V3s has crypto engine similar to that in A33. So add compatible. Signed-off-by: Martin Cerveny --- .../devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml b/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml index fc823572bcff..d7d64335120c 100644 --- a/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml +++ b/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml @@ -25,6 +25,9 @@ properties: - const: allwinner,sun4i-a10-crypto - items: - const: allwinner,sun8i-a33-crypto + - items: + - const: allwinner,sun8i-v3s-crypto + - const: allwinner,sun8i-a33-crypto reg: maxItems: 1 From patchwork Mon Sep 7 16:24:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Cerveny X-Patchwork-Id: 11761615 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 D7B2F59D for ; Mon, 7 Sep 2020 16:58:28 +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 9F9F12080A for ; Mon, 7 Sep 2020 16:58:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="lYJIWaVQ"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="jw/4R/uQ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9F9F12080A 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=LSXOMOCLn6TkOIlZJlZEizkccTVzgiBpvYbwuHAhAgU=; b=lYJIWaVQIVaqYwlb4o9AdUEDXJ in/KGHID8/lGu3AJy+BTPOIWM8HchIIo6BMBYuGuBqkf0NIw83YpTpxwrzOG3bdHl31hlL4HpWar8 joiW5yGgkcYXCWZ3csaohGyrvanPWI0nnFJHvOCYp6pnIiYnPDmqE0nqLXONo6rKHm4XTt7uQ855W wH3Uu7wx+OW+ynnjDymuTCVuEn/5t4CX0FJyGNJ6+Al14nQtOskXnqst1M932l3i1K6RltdLxd7KQ /ddeWg/VXrIrUTobcmRkWU8VRjGnJtIhynge5NG6uMpj6+WFG3EpRT0g7YIZwbGagHF5NBpAfAzM4 /vuchMUA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFKRy-0004EU-Mp; Mon, 07 Sep 2020 16:57:03 +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 1kFKRx-00049w-7D for linux-arm-kernel@merlin.infradead.org; Mon, 07 Sep 2020 16:57:01 +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=rHwMMV5CDI27KVM0Aok7QqjIOS/1fl2X0f+xxc2PNXU=; b=jw/4R/uQxAdNL9LTB+4dxNNckZ bbUft3xf4eAwZLSSZtk4Aevuof6xM9RLAfCuLBDGLOrlGmKHtoW7u80APZtdjQrwd04TphWSC6awV u9BcEJyHOPoZUOgS/hoIuAANzKDgnnFn54ouqCZiCcAPxl1YqVDXRS+aq8s5XfuD/V9HJvJKOvoHF DRAzWdZt0Zmre62pAVahUHoyeGOhGjd3yCXaB8x0M7rMlARo6U5SoXIlE5gZ6bK+fRRSBez6y5+2i dE+55ozMtRhAHqp+nOuaHzlv08Fg5BemnruMZ9c0cC+oAnN4CT9Q0jsPY3dm8pPJy6SUDiw5udOPR sCRhOIWQ==; 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 1kFJxk-0000Bn-DO for linux-arm-kernel@lists.infradead.org; Mon, 07 Sep 2020 16:25:51 +0000 Received: from ubuntu1804.c-home.cz (unifi.c-home.cz [192.168.1.239]) by dmz.c-home.cz (8.14.4+Sun/8.14.4) with ESMTP id 087GP1f3019439; Mon, 7 Sep 2020 18:25:09 +0200 (CEST) From: Martin Cerveny To: Maxime Ripard Subject: [PATCH v3 2/2] ARM: dts: sun8i: v3s: Enable crypto engine Date: Mon, 7 Sep 2020 18:24:58 +0200 Message-Id: <20200907162458.23730-3-m.cerveny@computer.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907162458.23730-1-m.cerveny@computer.org> References: <20200907162458.23730-1-m.cerveny@computer.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200907_172548_723807_132236DD X-CRM114-Status: GOOD ( 10.05 ) 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.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 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, 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 A33. Add device tree node. Signed-off-by: Martin Cerveny --- arch/arm/boot/dts/sun8i-v3s.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi index e5312869c0d2..6eb9c39aa93f 100644 --- a/arch/arm/boot/dts/sun8i-v3s.dtsi +++ b/arch/arm/boot/dts/sun8i-v3s.dtsi @@ -234,6 +234,17 @@ #size-cells = <0>; }; + crypto@1c15000 { + compatible = "allwinner,sun8i-v3s-crypto", + "allwinner,sun8i-a33-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>;