From patchwork Wed Oct 23 20:05:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 177351 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp1214169ill; Wed, 23 Oct 2019 13:05:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzso3nzyqlvzGYywErV16tOp3Du5D8h0z9viCblBIDM1uAID1tteD+1alSqlniBqSR4V9N1 X-Received: by 2002:a05:6402:b02:: with SMTP id bm2mr2749781edb.244.1571861155563; Wed, 23 Oct 2019 13:05:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571861155; cv=none; d=google.com; s=arc-20160816; b=aeXzCik8YoT+u7xZ9mNnTL5H0v4rCDhMg174a7Yjx5BwbVS2QKJ5gEsz7oJMuLJ98j cfuWetnDfazHw7kXoe1DnoepB9qG6b/eRrSPXXQPsLdrs+1BIyizpy+EiKyMgrRMlRqu r/1mw/HGmeSJVUAF1cGjM96MksIrO9I1tBLeqYEnEE+wVhMMyUBlh4DtgQ1U1nfDW3SV jVssHXGFCVhbzhE00+Dif/Rk658IviXgOHjB/yJhpo/txMAtg7B7/yop7XkdYDuSD/eX cV80d/ngm1jY4hzdyBnOcF3RjZXLk6K6LOtkjCaErfBQKapsj+tSJhdo2Tefxugg3VY8 RJOA== 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=BlSNEKakkPz3qSacpRbF5fymVNSJO3OQiWGq/ZKj+yQ=; b=CoWofukl4t0Onq544HA6LIHeQe1C/VdXLmxgEire38wkVXkMQdkBPrmwLjUtx/QCzS 4C3Y/mr4CxUhdx2NvJnr/A6sfx5jIru6CJCYdVNKLTal/JApQv81ZlpRhic8W9TdJmJK tI6HRKHckaPKd73WLO02sfumCFpebZjH6i+/a28cO6D69M78dp41mV05X9Fqe/cKudxx 2UXalcpN0YnL+RWDM/CNPeqhD5Gt20rtAHoxVUBIUojEXmxRBHFtJvcGpRnH/KUW8t50 5VjcDQrjdlmu2DeKhNZFuyBaqp1OsTBnCgrDLj+Z5WG/iwnnbkgdU623niejXh0G9GXf B6OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AuWzuW+A; 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 m12si15605205edc.50.2019.10.23.13.05.54; Wed, 23 Oct 2019 13:05:55 -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=AuWzuW+A; 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 S2405572AbfJWUFv (ORCPT + 26 others); Wed, 23 Oct 2019 16:05:51 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:43172 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405443AbfJWUFb (ORCPT ); Wed, 23 Oct 2019 16:05:31 -0400 Received: by mail-wr1-f65.google.com with SMTP id c2so18212110wrr.10; Wed, 23 Oct 2019 13:05:29 -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=BlSNEKakkPz3qSacpRbF5fymVNSJO3OQiWGq/ZKj+yQ=; b=AuWzuW+AYZImfZjow+rRGRgANqzxjgatKAUOk+Fli9w1R5po/O0rM1MeeDL5QzfvX+ ibph7gyBzHehtYoC6CJQIDXI9PkWyDkP/QqlFkGAk4VYSO6dZ/JgoxYlVef/lBD0pOOt 8+oVhFlVop0jjj2xQ15hw7c5UNK3Sk1Q38oy0I4YVKhf3uq1UVLAoCp2S42Q+3DwgbN4 bvNGp9cGZ659TbJo7aoxHYecZ8tb5lBgSdMiIwxtQX2Ku58wpxMVfupz3cFqjHGoFfvF n0Jt3cQqP17n1kk2+7tNeVDHJnJhvrKJg37V33baV4RAJ05Uwy3XKcACpXB8zhUFANrM 0RZQ== 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=BlSNEKakkPz3qSacpRbF5fymVNSJO3OQiWGq/ZKj+yQ=; b=j9Fl0pd0MaWf2k1xrLrPYzdlGtuDSPA411yHA8d4pDYxKgSBze+nfIZIdNrjguFdAE DKHTyry7INAlJWMRxHPOkPh35gB/kFAswQJ4G008MGu/1EAkTRVgZFL0QU4FvUZN3lIq eiZ3L3wctsv5LZTosq3SHHAY0rdl10eW8goXp5mf315CYJSEcozsbkmlR6NNmxlfjsvD v2BFV2yFB1eJmtwDNRbQ4J6BzNnLH2wZIfvZrJWl6k48yPKjvfCz6HwLi6R7182wn+l/ 8y1+yLSstt7qTRuuIlhkjU4rNvYVc0wZCQuxdl/FvX76eV2WR8Ud1lJxWIM2fonTq7GS pTxw== X-Gm-Message-State: APjAAAVBT38Jn4zOn5eVayfZA8JkE/dlU+1TvLGjoLfzgXbNGNGbZTPs YjWm+I7na6FBplzkUwmojf8= X-Received: by 2002:adf:f447:: with SMTP id f7mr422943wrp.210.1571861128757; Wed, 23 Oct 2019 13:05:28 -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.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2019 13:05:28 -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 07/11] ARM64: dts: allwinner: sun50i: Add crypto engine node on H5 Date: Wed, 23 Oct 2019 22:05:09 +0200 Message-Id: <20191023200513.22630-8-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-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 H5 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 9 +++++++++ 1 file changed, 9 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..e92c4de5bf3b 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi @@ -127,6 +127,15 @@ allwinner,sram = <&ve_sram 1>; }; + crypto: crypto@1c15000 { + compatible = "allwinner,sun50i-h5-crypto"; + reg = <0x01c15000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>; + clock-names = "bus", "mod"; + resets = <&ccu RST_BUS_CE>; + }; + mali: gpu@1e80000 { compatible = "allwinner,sun50i-h5-mali", "arm,mali-450"; reg = <0x01e80000 0x30000>;