From patchwork Wed Oct 23 20:05:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 177353 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp1216030ill; Wed, 23 Oct 2019 13:07:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzA9Dgtz+SzcZExQRHN1y7lsPWHBJJTzBzJgVT1ZZ1JWR1Y51C5t8F+kDxEMwmRvwIR8LKo X-Received: by 2002:a17:907:10d3:: with SMTP id rv19mr33224075ejb.301.1571861156646; Wed, 23 Oct 2019 13:05:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571861156; cv=none; d=google.com; s=arc-20160816; b=P1tbdbmmQn1pxg22e6ucdi/wZP1ZKNl6pEWoTObam967DCp/51qoL5ROpTkErao9MA jENUk+yeaRHrczIlLynpZbYXhmXLVGsCd4oI1rxadtUzbq4KK4VudbUHUkBWa4k/YKTK ta9HzlaLKRWhPP0ZYKHX5DRHTvjf291GQrmaHwY3agbjGgOKaB2UpWNvVbIsgKZ6rD+v BqRHEX0XH7pQyQv3KFK7TH1x4GffFb2QnvF5ExTdobg//asOcB+fhLydxZrQe1oBBTum iKZI6rx15BppY+QoIC/9AvNY8Eg45LsslzwFdLgv9CvVDlPoCm8fdlPc8kwS3AIvuZ9o Z3gQ== 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=1LcPRSweYpxW+Ru1oGSa20C29+Rhu7RNAj0ZxbDdCTI=; b=pFEiVZhOdPOO5SsiFGX9+iTrJpBhMcHjSLrAQUkjNsUgEBaT0Vs4QwBRcDznIsyNJF B5obzwaiHE3Ww/BF7QshrouGuIX7nIuVB6cPGZKmJ54CXH4XY+GXD9YMbmElIN84vEnC dYsi1Dmj3ASFNcKAoQKEkt9PaDpjUse1iVmXH2dm7bcYo6n6P59rwH7sGDolkf8ogdTf 4/T+/AmIePcUZqLx9RAPHi6yzQZj6bWmVoXIx6E7O6UPjDVZI0Chq5WXHqboT8zanYCx odB6SEDGD1an89Lnmp/VV11yotxz+HnIvTiLODwh38RJn2JbJ0MX/kgxoJRmkxMifjOr Guvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=U66CqiY4; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 m12si15605205edc.50.2019.10.23.13.05.56; Wed, 23 Oct 2019 13:05:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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=U66CqiY4; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 S2407349AbfJWUFa (ORCPT + 3 others); Wed, 23 Oct 2019 16:05:30 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:43005 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407338AbfJWUF3 (ORCPT ); Wed, 23 Oct 2019 16:05:29 -0400 Received: by mail-wr1-f66.google.com with SMTP id r1so13657590wrs.9; Wed, 23 Oct 2019 13:05:26 -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=1LcPRSweYpxW+Ru1oGSa20C29+Rhu7RNAj0ZxbDdCTI=; b=U66CqiY4+lFNvwG903V5JZTA1ctJodLAwwNzXswZ6B2C1OIJetWoDLLz2fCLY+enHt tEQGsyVyHxrvDRAzotOg1hArtf+PmvY/UELd1/J5G0NWQ1VPHZyJvgpyPHSyNrsKvVpB urILbX7Vy6HtUiuunGEETFxBfVKMTY0tL7JtCg/R5ahcVdopNaVtj+tWyHOnU+9+sVl2 p3qb6uj6kEZonvYAklSXjKjldqKxEjLrwmbVzYGI2mlsgqOXlpklbfv96U0HZkDvnKY0 rTSRd8apocs3dlPXkGzZppqkC1k4Bx9VLaWgxMWB+AFc79sieDKZqkYLNtcmxCaEpAWC CWLw== 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=1LcPRSweYpxW+Ru1oGSa20C29+Rhu7RNAj0ZxbDdCTI=; b=dlAxwfLrHDwSjIqWRGcxQn4b69WoEdk9EusTEQIyOTu5LG7J1Ns7c+Jnv6REbVJ2OJ U22vyWu7gbMenAlGZopwl2oXtGc/vFBaVD5WEIQtK8JFXgagxgX7IeZppVylozL06UH2 rB1jFl5FJE0dBr0swpw/aYh1xsqAhc5VT1EVm0G14uNWCC4GTDWZaM5zCbyvA8RbhiJX lNJZ5G+gm2bII262N9eNvlC2golb3c9+uf1RmeDTEeV03AttsTKYFnuVS0PkD/NwUvV0 f9q6q5QZoHssmKSHfo8PoAjQmAk4UglBOAlp8FLzxoGgisIAPBINL8R6JjBjTPDEtRtX AAeA== X-Gm-Message-State: APjAAAX1RJ/oUQQleK0vTLHB8HTlIiosExDldXNIf0lSs208UEDYHbQ5 XtRj+ZuHJ6LTc+9vYLuZTu4= X-Received: by 2002:adf:828c:: with SMTP id 12mr446863wrc.40.1571861126143; Wed, 23 Oct 2019 13:05:26 -0700 (PDT) Received: from Red.localdomain (lfbn-1-7036-79.w90-116.abo.wanadoo.fr. [90.116.209.79]) by smtp.googlemail.com with ESMTPSA id b5sm177555wmj.18.2019.10.23.13.05.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2019 13:05:25 -0700 (PDT) From: Corentin Labbe To: catalin.marinas@arm.com, 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, will@kernel.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 v6 05/11] ARM: dts: sun8i: H3: Add Crypto Engine node Date: Wed, 23 Oct 2019 22:05:07 +0200 Message-Id: <20191023200513.22630-6-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191023200513.22630-1-clabbe.montjoie@gmail.com> References: <20191023200513.22630-1-clabbe.montjoie@gmail.com> MIME-Version: 1.0 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@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 H3 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-h3.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.21.0 diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi index e37c30e811d3..78356db14fbb 100644 --- a/arch/arm/boot/dts/sun8i-h3.dtsi +++ b/arch/arm/boot/dts/sun8i-h3.dtsi @@ -153,6 +153,15 @@ allwinner,sram = <&ve_sram 1>; }; + crypto: crypto@1c15000 { + compatible = "allwinner,sun8i-h3-crypto"; + reg = <0x01c15000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>; + clock-names = "bus", "mod"; + resets = <&ccu RST_BUS_CE>; + }; + mali: gpu@1c40000 { compatible = "allwinner,sun8i-h3-mali", "arm,mali-400"; reg = <0x01c40000 0x10000>;