Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2159747ybe; Sat, 7 Sep 2019 09:57:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVzMt3TAMHGlXk2K2YZmMIHRo4MmaAK3ZZJpZcrUXL8MVh/ZK2birGKFGREDZg9KVDm9Bl X-Received: by 2002:a17:90a:bb89:: with SMTP id v9mr8157587pjr.88.1567875457823; Sat, 07 Sep 2019 09:57:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567875457; cv=none; d=google.com; s=arc-20160816; b=d7G7Y1Q+zARj2fH++c1DKtXqCpV/iQRq8JGuqYr+vPgoGXVorB+QB4wGzYYMudGLtD /0F2kPd2wQYZz3xduw+9IWDHqgd+cnnO4WLqK6dYqCB6whmHZvmQhjog6X1kzA8WDzRQ JH/bu3fNbFKHqK91bzSo7v054aT5cJmzFBUsMLFQfiwp/OvJE5Nncr6ThMLCSqsPj7t3 MVcupHO3SeO/WMOQXoOSLAml2wEyGOnnj5vlxNJ0g0rMMVT/Jk9FbddCVx/HpIOULfdV Y/GuGtvYJbZVWSakkmqe4dINJXxaV7oj6QK/37ol5q+f8yYqgWu8VoFzsUVjgEYdopTI WADg== 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=6gfPZRpIljPhV4Y76bqDwXphABtlmbrLYPaesl3pjCI=; b=gbQYdjjnfgFzu6JUXVaOSlXGOH6yaAh6yA2zax9SzwDDnfEV5kb0J8INUJSZ9WSyGl 5caq+OBDf50M9Miid/uchSw1SbkNkL0uPCc6SM5B2zgjDrJTCbRrTiiaJj+Qz+YuPacp 4AZka/LuTu1Bgj1p238IftGLfw5OgjxxXll22XQFJ/HzegeoFDIwk+d1FSOeyufkQTm6 /VtxnHU35VvZKtEY6BFFzakoy1lsq/QV3ee7EXBmoI6tI/6/bECiezwfPl3BqZUr8WqN j9XuIZqrSiLVeeAdOweBBFjO/fuX2i/a2j2gctWS4gHc8bkhR20BFQQh9L2pYVxSAa8d zoog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ZhrFxoH/"; 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 c128si2800327pfa.165.2019.09.07.09.57.24; Sat, 07 Sep 2019 09:57:37 -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="ZhrFxoH/"; 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 S2395388AbfIFSqN (ORCPT + 99 others); Fri, 6 Sep 2019 14:46:13 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:40341 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2395376AbfIFSqM (ORCPT ); Fri, 6 Sep 2019 14:46:12 -0400 Received: by mail-wr1-f65.google.com with SMTP id w13so7597887wru.7; Fri, 06 Sep 2019 11:46:11 -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=6gfPZRpIljPhV4Y76bqDwXphABtlmbrLYPaesl3pjCI=; b=ZhrFxoH/Go/p9mDemMia8OkzNhnhOPc3pjz+NcsRC2j4y/b2FxlHEx4JI6pFQy0591 5dKC6539twpYGEEBLEixpHsXoY3A9qmMkHplxGPCYrps8CgvQNI0OwcF8f9GdHF72+HS 4yDE06GGnbURNVBeChjpzi5N+D6lFsH4LobskCrGZ2NTTEXsELEuxBBeGPI5Um6IWuc/ YCbM76t3XLK0cDZcGgRKd2h1JxU038SSQKQBuJAceVR+tTAAvsXVfkRIczqqGy5HptOu 7RaTRWVYWuewASFlg3+W/7rRkSmk2Y5TcmjmddP2D3iO3Cl+H0S+GLhQYHWHAdPtn9lD G4wQ== 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=6gfPZRpIljPhV4Y76bqDwXphABtlmbrLYPaesl3pjCI=; b=msZj72w29CyeVmvABNQscxSJzsbXL2ZrS9DUR3jPiGtO4i/cDHljuimgntOJNsUcIj PIuJNW4XyNTWp+vkl04cqJ/IMHXZ6Tqvqg84Bemt5acw/dhz0qCdKhhb04ohBNAjzipa 9xQbb1FKgBBikwl+5rVGmX7Fcu6BcVd0VInik+Nbls46hcPa2boTCESOe9oQH60sbqIh 4B6B+w/DCT9HFoLK4oTXIIGOCfrmFmNnDv2f2mdf9PXp/NdamVBYxEFa/JvnOon1dGqX TR8D5OKFOm8BpiDyUbwAUNqNSaxdJ23/r8pQnr7wjY0/zTW4Xo4auQFJPHU6hs37himh eC1g== X-Gm-Message-State: APjAAAUXiRDC9zeNHm/suCRBvyRYg2qLeptvjl5x7k8m8gN10Gzui3Yi qsThtuWQc73GFMGc2gFu6P6G1Dr8 X-Received: by 2002:adf:e30e:: with SMTP id b14mr8399491wrj.168.1567795570676; Fri, 06 Sep 2019 11:46:10 -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.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Sep 2019 11:46:10 -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 5/9] ARM: dts: sun8i: h3: Add Crypto Engine node Date: Fri, 6 Sep 2019 20:45:47 +0200 Message-Id: <20190906184551.17858-6-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 Content-Transfer-Encoding: 8bit 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 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi index e37c30e811d3..873abe1b279b 100644 --- a/arch/arm/boot/dts/sun8i-h3.dtsi +++ b/arch/arm/boot/dts/sun8i-h3.dtsi @@ -153,6 +153,17 @@ allwinner,sram = <&ve_sram 1>; }; + crypto: crypto@1c15000 { + compatible = "allwinner,sun8i-h3-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"; + }; + mali: gpu@1c40000 { compatible = "allwinner,sun8i-h3-mali", "arm,mali-400"; reg = <0x01c40000 0x10000>; -- 2.21.0