From patchwork Fri Sep 6 18:45:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 173279 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp1106972ilq; Fri, 6 Sep 2019 11:46:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwAFT5bkCraSZpvJbIsoh3lR2nzKSPGdyzRG0BetAJ5qDe0ghn111IJSyB8hz+a2IGyYXu9 X-Received: by 2002:a63:5c1a:: with SMTP id q26mr8624694pgb.19.1567795609256; Fri, 06 Sep 2019 11:46:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567795609; cv=none; d=google.com; s=arc-20160816; b=gVyxIODijsE5z0RStBS7rQSXXkQgeewFcQOyxTO+cGaVxcO0Th2vJed5kDvEECPS82 SXKsbym9aUivSxC6tuzIrkMnru44R1WkmNQUJcvJHuki91wNu6405CDgA2PBy3PwIU77 5v3COvVEfF920kHHKzRMwM0yBSbsZVRQzeQO1N2HQgWkmTm47XZDcKmXyZjjiDta3+yK JiNZfSk5oUkvMvimZjrFWFG+ioGah/1Wq4eZ3a64kPnxj+kyZfLAz8ynZpQBG4DXJn8d JLeTQgAPgh35zrlJqcpTxYhaOTpmbd/FKFX0npXWbDmqFI47K6PAACA9b3/5qni4+bH/ BK0Q== 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=xU1lxAstjQUR72wZ/J0MWjQAlXMs9ML/BZPoCjnCEo0=; b=tx/t8+PtUaHJyQtDh+sH/pWBStbyb9W4s8T0M572/02uUjHjt20gYJXN+Ir2FFbRg4 x51nsZcQRKiI52/sot49KdX6R46WSMg33b05IiRd9a11MOlG36EHlz9iNxwt5Q6xQaEG 4df9TC+hRc54/2p1QOjq99MfxVVNvt7OwokV3GaqQuRG6DXzZ/0CHSs85r7bXrPMbx8v 773lmb5hZRgeX9KpgN4q7+n7I7NerVtW2EUmRTvp+pol2oK5HInX6xC4v5u2WNq56lFz dtd7jmxGo957avDkjJWXzzX7DcPDka/Zp6b1E92hlGdomVhsFVI5ETilWwASvpuH2DZn qgsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QL30LEzc; 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 p16si5482716plr.234.2019.09.06.11.46.49; Fri, 06 Sep 2019 11:46:49 -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=QL30LEzc; 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 S1732774AbfIFSqr (ORCPT + 8 others); Fri, 6 Sep 2019 14:46:47 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:46689 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2395374AbfIFSqM (ORCPT ); Fri, 6 Sep 2019 14:46:12 -0400 Received: by mail-wr1-f65.google.com with SMTP id h7so7599796wrt.13; Fri, 06 Sep 2019 11:46:10 -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=xU1lxAstjQUR72wZ/J0MWjQAlXMs9ML/BZPoCjnCEo0=; b=QL30LEzcYGE52tClH7qDSUb8rdbuplxJVHHskcftGAV0S6j3DeS2KHQNHuWtYJp5Sb hXGerX01T65u+PFpqv0CH6/t9MQpbNd1qCWZdD5PE3ir5Eoy6IcVgqs/KRa3cGbl5w5S xdLu216r67or4h0XUxQZuyEy38Gy9E9Hbu5d/8VSRGG6/aTUg5aVEiiheI8qhCmt7C6o VW0jsr2hgYyUEAAgk4Gm6RnWV47lWY9Tp9zVXQ4qet/NwZZskfp7HE4q2QzqXKT8/aDO 68ZZMMuhHYLzwJvDrJzggQzkJAeztA7oL5btV9AW0EbepEkzFfx+Df+6hj0sKcj3pk7n xuGw== 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=xU1lxAstjQUR72wZ/J0MWjQAlXMs9ML/BZPoCjnCEo0=; b=bCFw7vyuC2xbAPPCqkP9dEmlGRWZOhNXtcESPLGttIn1v2WwBiu9Gn1otxSRYC0i02 YsZ7hmb35EA5jmRtfWcQJCkfnCpXGciGvOHzCT7ZuWzafIhMSPVqWsMd0yKYVo/FFr/m 4x12Xmp/+wGIxydNHTTZiiyldId9qxoy8YIcABHN1yOIlKQVfEVZYQ/FKR3RvAgCQhTs y8KqVk0f7XYkBU2AiTMtTDiXhbIP1r2bFhVFPPdN14hfsZ8p+WLmZO7nRk2TY5CbaeuA BbnUy47/I4ALlSy4KgJzRJWpZueVAljCO8P34O64TVaWRy7PeCrkSG442OhIiJLVkDMb jBpQ== X-Gm-Message-State: APjAAAVFCGbue02SiaP0F3udC698ffoGH7KX2jokwW4JoP/iHZVS9Xay NsBuvnYqhH0zPz6RLKxtLKY= X-Received: by 2002:adf:dbce:: with SMTP id e14mr8938109wrj.56.1567795569299; Fri, 06 Sep 2019 11:46:09 -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.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Sep 2019 11:46:08 -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 4/9] ARM: dts: sun8i: r40: add crypto engine node Date: Fri, 6 Sep 2019 20:45:46 +0200 Message-Id: <20190906184551.17858-5-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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The Crypto Engine is a hardware cryptographic offloader that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner R40 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-r40.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 2.21.0 diff --git a/arch/arm/boot/dts/sun8i-r40.dtsi b/arch/arm/boot/dts/sun8i-r40.dtsi index bde068111b85..7eb649cea163 100644 --- a/arch/arm/boot/dts/sun8i-r40.dtsi +++ b/arch/arm/boot/dts/sun8i-r40.dtsi @@ -266,6 +266,17 @@ #phy-cells = <1>; }; + crypto: crypto-engine@1c15000 { + compatible = "allwinner,sun8i-r40-crypto"; + reg = <0x01c15000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>; + clock-names = "ahb", "mod"; + resets = <&ccu RST_BUS_CE>; + reset-names = "ahb"; + status = "okay"; + }; + ehci1: usb@1c19000 { compatible = "allwinner,sun8i-r40-ehci", "generic-ehci"; reg = <0x01c19000 0x100>; From patchwork Fri Sep 6 18:45:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 173275 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp1106436ilq; Fri, 6 Sep 2019 11:46:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBzAVD9ulDhi5XZuvX42NiSTjKuZrDPBt9LQw5Aj9kzR9/o4fRCWYnNqhHtntHFS+YMl8v X-Received: by 2002:a63:20d:: with SMTP id 13mr9413570pgc.253.1567795578064; Fri, 06 Sep 2019 11:46:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567795578; cv=none; d=google.com; s=arc-20160816; b=Rf6KKIXVQFKSl/KG51qIYaVMA8b6yKiNuEK2CZwAnbIT4eag7E1eVvGdbbSr5GEcn1 h1j7sT5WecZalX5Tg59XCVG3cQ5Y5p89o+O/kbTdrwc8r0ED0E1D1/doHNGypvsCDvP8 NS3buF6mb9+ckcHHZdeGf3qQBZZbIzwJ1178f6mdfh13LWNOy1ftS1FWz3rPP3AxcKma ANTSpWSRFaNBVvHY/bt9R/8gI6seKWYUPH3XhcLuEvwtbJv17OZwEGRrLhG/BhetHZJm EEnbSPjn60d8uwmC1/P72aLUz2C97/Wp//Y3X0o5PpCs7GJ/kTHJbY2/b98vJ3sPLXpO 12xg== 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=8QtDLRptoE0CXvLgWwD97LTRuIDfzhWBaIHIlaUJgmo=; b=mAhmvBlNRH7kfUBoncbmsMlPQtL2LZf/86q2I6ssUntXwUxY3dV1pPaSlV/ao2Mtkg vsMAl4DzNm9N9+b2HGBBcytvjpKxjvDn717t8KTG0bq4MRpK/Ze/z26GW/40Zv0wPE5d Wyt8mP9ZHKmYnnjLpKUH7mHzAsRJn2BmB2oqnFwQG/VKybplOLCWtlDcydHPSG3zkng7 5T/WBsynLp2abw9NNbvZBsPiNnPSLtep8wEKGlPLzrVYQGhlEjU0SFy24/f5gsUgIn0L nPT3mclb88NVC7/4YWaRBk4/OxIBakDtw0SJZnM/zcG9Swku4tfB0ZRlEwX9urAZ8uLo 0nVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ep9HDZiC; 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 g3si5620643pld.75.2019.09.06.11.46.17; Fri, 06 Sep 2019 11:46:18 -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=ep9HDZiC; 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 S2436578AbfIFSqR (ORCPT + 8 others); Fri, 6 Sep 2019 14:46:17 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:39008 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2395395AbfIFSqP (ORCPT ); Fri, 6 Sep 2019 14:46:15 -0400 Received: by mail-wr1-f65.google.com with SMTP id t16so7598389wra.6; Fri, 06 Sep 2019 11:46:14 -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=8QtDLRptoE0CXvLgWwD97LTRuIDfzhWBaIHIlaUJgmo=; b=ep9HDZiCfuH8kRXERj63g91rhrUuOyjEtVhLHhk3QU7BOoV9SqhsZwanleSEly4oOJ w7Y3pMfAcOu2q5O1TSb6zwebqf/VygYEk0FnMQzBbayl/y+4F9NoAROZEWG9wYTzecab ILeNav7qAoyi8Jlr3+aGknSZpYk8aUkjUZkykfwVW9yawNu4C8/RAX9hVgKUn8OrniEM 2OTJYpZwtnU2xUlqymmZrxVpBu9NYIJz1BIM2mTokFhR0nMnFaT6/yT0ebWuINPczJO1 218A/xVTZ9dWS0qUzRQXYOO8cYk2BfhUhq6b/t8T/mvl1h/bRNy+5ecEIK13j8qkQ4c0 +s1Q== 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=8QtDLRptoE0CXvLgWwD97LTRuIDfzhWBaIHIlaUJgmo=; b=lPVVLGAL8agD4BHOlh4hgSCwQ7xSpKGnib8+8yTOcQMRSP8kFYOyqRT+wL82b5b6SN 0pztxlQ02QCM2882nf+6LiRByTdjatnRP3JVhohIXxuf7bs2rAUJBo/1n64nAAaoTvKf tu9NIvxig3N+J/J5Jwcli1XNXbH6ggbFkOmbLMVp+SbRymvjQwEIPN9MYA8jp5UbhfPQ CQ0Oh7sGg1VTNBwx2ekHLpS3HIqjtGx3GxBPg/dD+nB0OmnY39Ck447mcjORkn95qNWZ AQUL9iDBdGfV5YsqaAUhIV+Kc98yQeXFlAQTClo+w77CCV6Ne/TlltgPe48wTbxv7mU7 AXBg== X-Gm-Message-State: APjAAAVA1rA5N8q9FD8+p/tg/6dKoi1PqiV2h4OBF4xwsS64R7ORgY9o PAd+RJ1gIEHVRt+kIwUhSw4= X-Received: by 2002:adf:db8e:: with SMTP id u14mr1800226wri.50.1567795573543; Fri, 06 Sep 2019 11:46:13 -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.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Sep 2019 11:46:12 -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 7/9] ARM64: dts: allwinner: sun50i: Add crypto engine node on H5 Date: Fri, 6 Sep 2019 20:45:49 +0200 Message-Id: <20190906184551.17858-8-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: 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..174fb3dcb3f7 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 = "ahb"; + clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>; + clock-names = "ahb", "mod"; + }; + mali: gpu@1e80000 { compatible = "allwinner,sun50i-h5-mali", "arm,mali-450"; reg = <0x01e80000 0x30000>;