From patchwork Fri Sep 6 18:45:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 173276 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp1106524ilq; Fri, 6 Sep 2019 11:46:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxlDBx3HzZPe/sd7ZcH/lg8SLevcEpFLIAXslQZKfjfVw2RHvnHXgwa4GSZX8bCZ74LFSBS X-Received: by 2002:aa7:9a97:: with SMTP id w23mr11853643pfi.148.1567795583403; Fri, 06 Sep 2019 11:46:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567795583; cv=none; d=google.com; s=arc-20160816; b=R2pY1rbWBVW2JA104V7tk6CQB/zbrnsgmM7raX5Zrlir9+NFQBcc0ZCBPxccVMJuyi ehhs7ygV8ZYJf9aS+R2DEYHgLHCrVMFeYkuwEspXN+HU+Nu6m1WtV3uupxRh7SbmD2X4 t57/B4wFbZXdskXKimRtbDIIh/rJDKqfYQuKTSXguAw8iWxJ7W6Z6GLdvoQjVayhFyB9 TG/u2XJe+Abg/XMJ0mzt6kGDk5VsI292ivm7DoCsYaLEop2mfUYxWHJm/K5TXxWZTXnq /1ntZG4jd9bl3qjnaGbASoXV+K9aluwzi/TTXAglt/VvPDko1k3g/SsdMtlTgCby+lLr Eu+A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=H7B3pdgueaTQoEx/oPVjB5PBvNleh5XGxboZw228Zx0=; b=0yVFh2LPvKO1KG4AXYjEzyH8ZiACRMGCg/LVl0G9KOpkGYRMu72kCmeIEJsTTnqo9l pwN6Axnd4LHQk64XFDWXET3jSNbXcczZWx6O5SU5Q982qHkTzVqKYwU41C/I56uXrBHh yqCNBxKvmCJOsnvXGuRbt+gKcXWCdk/SKo1/PhvpLddHDYOqVXS5E85yxeRwQws/NKgG hXde0PkB2bHsVE2mvZg6+B/8oCuHB7tVT+z8qFyyKxyMM9ZltlgYI2ZwMgdwY3jX5zGY S5+c5qtbBk2j1txUAgMWAU5WMV3FtwvMZCH/h6el3/GPCR3+tBiEekAF2T3zl01fayRa BuXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="fXAj/oFn"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 h91si5517185pld.3.2019.09.06.11.46.23; Fri, 06 Sep 2019 11:46:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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="fXAj/oFn"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S2436594AbfIFSqS (ORCPT + 28 others); Fri, 6 Sep 2019 14:46:18 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:35130 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2395384AbfIFSqN (ORCPT ); Fri, 6 Sep 2019 14:46:13 -0400 Received: by mail-wr1-f66.google.com with SMTP id g7so7639429wrx.2; Fri, 06 Sep 2019 11:46:12 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=H7B3pdgueaTQoEx/oPVjB5PBvNleh5XGxboZw228Zx0=; b=fXAj/oFnSdb6IabmspTKjVarmJg8RHtLu3Ax/i7LLanXPSfUnht0o0jIOlQIkQNPvi hnKTdLMkqBNr3Kc8/50ClePJkB/Mdfe7bfoEVM0zoUEGcgpVUe0qLuWslAw32wGZoFoi ssQBgtefefxHpKJ7YypkI4UU2OHlU6J4HCF4F6pwvy6Ckft/tS4BmY0fxXlbkVrngXGe faiadrmAN43x0lessYdYqObgKhb5QoYZEDdXCYhdSo29kRPVveu1UEZxCDmVE9YzzvvW KELGFrgDBHtl4TcZCZniYtJz6wQ99NCSKb93+szw6Jv3an9pNddMt2usjMcZJIOwlSCV imUQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=H7B3pdgueaTQoEx/oPVjB5PBvNleh5XGxboZw228Zx0=; b=RX3M3KwzjNunmhsKf0Miq3VDdJ/RIsELfJfRMmduxj4Rzvi3I9nZ77/tIWUS2ABHE7 2gU+UoEII11mpdBICtqHpuxBgoe2ovM45Kw7SkOCQjcVRCJya4BAF6ERmgpaBK702sf3 rdU4P9QU+jUy7eflixlMOLO4l3zPjI1aFzee7O+hrs6WrVRuNzKr1k2jrLIHSYpGH7E1 vEl5hcrb+9Z0ZntlgEqV5WQUTwWV60BxapUhzmSlYicIMnYHnAHS3oXDup+v3rrEsi4r CBIRf6h94eDgF5LjU0WPJhztPyVYzwvlPRR10pv/RV8suv8P+CcHW3gK7MZGsfgn4GOa uphA== X-Gm-Message-State: APjAAAVt5YefglvRtYvag39BlNFkhc/5D65sPf/OAEYEt3IOX1ihkIlw 4HEA9kc6+NVqjtqJVxnMrIA= X-Received: by 2002:a5d:6504:: with SMTP id x4mr8443567wru.227.1567795572094; Fri, 06 Sep 2019 11:46:12 -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.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Sep 2019 11:46:11 -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 6/9] ARM64: dts: allwinner: sun50i: Add Crypto Engine node on A64 Date: Fri, 6 Sep 2019 20:45:48 +0200 Message-Id: <20190906184551.17858-7-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190906184551.17858-1-clabbe.montjoie@gmail.com> References: <20190906184551.17858-1-clabbe.montjoie@gmail.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner A64 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 2.21.0 diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 69128a6dfc46..c9e30d462ab1 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -487,6 +487,17 @@ reg = <0x1c14000 0x400>; }; + crypto: crypto@1c15000 { + compatible = "allwinner,sun50i-a64-crypto"; + reg = <0x01c15000 0x1000>; + interrupts = ; + interrupt-names = "ce_ns"; + resets = <&ccu RST_BUS_CE>; + reset-names = "ahb"; + clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>; + clock-names = "ahb", "mod"; + }; + usb_otg: usb@1c19000 { compatible = "allwinner,sun8i-a33-musb"; reg = <0x01c19000 0x0400>;