From patchwork Tue Oct 1 18:41:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 174937 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp8933877ill; Tue, 1 Oct 2019 11:42:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9Omm6FYnGasPo2YWih7Njc5eXwjVt4HU7iqLy9MNj9C6u0ksT/Ad+CO/ZDCz/rUS5q56a X-Received: by 2002:a05:6402:17a2:: with SMTP id j2mr27337489edy.121.1569955343237; Tue, 01 Oct 2019 11:42:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569955343; cv=none; d=google.com; s=arc-20160816; b=pE4GrwFIlT5KRmKQbmFVJtClGIvt0WY569Jo8jBmshZQRLp/1Zz3NdoWkkShvAhqUy nVanGTpDsD9cokfQ0qM9uzzHeoXMaqgS1+bktNydTY7CuQ8Yo1ik0Y4eVW4UOfcdyG3n cezJojiQ9rH26R+8Bw3otPdGpzKv6KCbXo9unaRmM0PFvLZuF+ebLXYvkguj1C2LU6Rf FvaCTjc/OwGUMARvw5+wfk5HbuQrDFo7ZawXPci1DTZO4ewzcxxg80kz+9+uE/sdZmgT aIfXjD9Ck4Tb5i4QtczwDdgvUj2UIbp45jxPaidY5ejgsURBYH9RzPVJyLK4ZWwLZakc dZRw== 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=AE8l+XRMu1sgkl2Oy/fFtmiZlnFZOea3H9nl7n7sx/w=; b=ALuduQTkVIUKzlYW2vdLlnks2HSPDuGaLJWjVeBJvvlpzz3H5DbrNiS9RSLKm2+49b wUJl567ojGvJBO5mkJs7ekumWB3oGl0WhZJ8ZTN8XRgnSDOVxMVlXG3xGX06CPQihNPl YrCuQ9jqFNVPe2jaG9gopuZot1Ptqnt/P6PZr/cDb2PTj9GbLrcTw62dYNZBUEPZxBVp NbwBNH+sBXSSj1AN6OOFy/5fvxlLexqL/pq+vhstQumAThQPQAH4MnF3sJoS4LbQL6s3 4yXjJZK1xnrxKNE/ckAYmjS+5DvzQnQBUS95dPnzFNOr6N1zk9REcaUQwSdlvlCmRPZ/ Zkkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dZGVoaQA; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 i10si10528063ede.101.2019.10.01.11.42.23; Tue, 01 Oct 2019 11:42:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=dZGVoaQA; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1726060AbfJASmW (ORCPT + 8 others); Tue, 1 Oct 2019 14:42:22 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:46343 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726669AbfJASmB (ORCPT ); Tue, 1 Oct 2019 14:42:01 -0400 Received: by mail-wr1-f66.google.com with SMTP id o18so16718448wrv.13; Tue, 01 Oct 2019 11:41:59 -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=AE8l+XRMu1sgkl2Oy/fFtmiZlnFZOea3H9nl7n7sx/w=; b=dZGVoaQA65ACdRAYWhu+1Xw/6V2dJNORC94PgsqCbn9mSou5fkbF3DTRF/S+ViuVBf brZ+C1r6l5dNcudiP9HUWpzGaNkDj1WKb+ZVgygsustay5u0I7RJgJvpB69Qj6pnF14q yI40IetVyDwgS2lydWxz3NLubVhsycKQBNDhpDTVLMr0k9KeQSqnCN8IyrPvY7wXBgAT nBTMRm+cT6z25P+5hCtYUtw5MfKB5FfqzLUsk5SntHQ/yQ9tbhjS9ftZtRAHgX9/2An2 Icd9384WOreyeGOaWltflmV2OVTP8JV0tpcqOEZ7dhKQC1u5qurqzULDh8/2teFdD9i5 GEfw== 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=AE8l+XRMu1sgkl2Oy/fFtmiZlnFZOea3H9nl7n7sx/w=; b=DFZj3Bi0fo6yB/AhUO3shGVrUtsTPDYFS6OH17GkkdlW50uzDUQJ4h0ORBXmhPD2EP zIKiKJks5vwA+50Zfg0O9SHWg65TVlASpw0q/SnVkKOamBFejiM1mjoFBLqdZfRoBYl2 6Abfl9IQAS1mXvq3AgIeUxOtVhp1XmgfmCTCZ6nKCg4GTHit+aEZITe4DYuL6ep+FS8o 7dFCq/Meed4Yet8qCivkSmiigZOjkC/Omx5QNoGWwGNRnXQVZp0bE1aT0v34IVB8l5rE W7tMLz5LMs9fbS9+eGbvLOn4U9Te5WdDa9TxtUcmrhn1OI9184zMeeaYBjMlhC5/aco+ VECA== X-Gm-Message-State: APjAAAUoNcJ6WuwmVQZWwvgKi7zBo81AL+k76Q8/q7KWCS9nvzuDYsns kN0Kh3QJFZPWNcuCnvMPtfQ= X-Received: by 2002:a5d:52cd:: with SMTP id r13mr18241988wrv.376.1569955317656; Tue, 01 Oct 2019 11:41:57 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id n8sm6788987wma.7.2019.10.01.11.41.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Oct 2019 11:41:57 -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 v2 07/11] ARM64: dts: allwinner: sun50i: Add crypto engine node on H5 Date: Tue, 1 Oct 2019 20:41:37 +0200 Message-Id: <20191001184141.27956-8-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191001184141.27956-1-clabbe.montjoie@gmail.com> References: <20191001184141.27956-1-clabbe.montjoie@gmail.com> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 H5 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 2.21.0 diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi index f002a496d7cb..362f78e9122e 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi @@ -127,6 +127,17 @@ allwinner,sram = <&ve_sram 1>; }; + crypto: crypto@1c15000 { + compatible = "allwinner,sun50i-h5-crypto"; + reg = <0x01c15000 0x1000>; + interrupts = ; + interrupt-names = "ce_ns"; + resets = <&ccu RST_BUS_CE>; + reset-names = "bus"; + clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>; + clock-names = "bus", "mod"; + }; + mali: gpu@1e80000 { compatible = "allwinner,sun50i-h5-mali", "arm,mali-450"; reg = <0x01e80000 0x30000>;