From patchwork Wed Oct 16 15:01:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 176484 Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp7282204ocf; Wed, 16 Oct 2019 08:01:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzowWsXGSxJvZuDZ0espG4lMZA9MeGWE+zS+d1T4tcZPwV2KFgSEHSsO3DC9OjwtVhhW8kU X-Received: by 2002:a17:906:474b:: with SMTP id j11mr40675558ejs.325.1571238103223; Wed, 16 Oct 2019 08:01:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571238103; cv=none; d=google.com; s=arc-20160816; b=vqSVP8ArUYvzfPYEXDy//31xwacXRwf6wPk4Z0N5Zr9ogMbT/X8Ex3+U2AdLKiL2yd TN5Am49CODHBHft6O/BnN8MUQ7hdwPgcrAElFzlxmr2lpQBCI2634yxzI8l25j7frwMZ AQ2VORt+T/6VqHKEYPojPSSWxWkif1Vq4YBqs2Onqaf12oNinpBoOTBBB3jMx9QzPE3/ Rnhc3AIoMnCF6bs7Ybzgx754szBZApT6QqiGTfVZLese8W0ep175xRYr+7KLdxIuSuR7 /19oWqo7yLMCB2cppfjDtRCOblXWgP1ypOB7oFvjFmbvTOwJNKUa7CAd+WQhn0squbY6 yJ3Q== 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=VpdEp2zf81VBM+LhkWglZ2eMDIpA3da8iXPWPqvvAdE=; b=hAHODZ8i1JRy6X2B61J6LYrb7hl+yooasAMwjy80I8QQC/uxMCf3G0JVhwe9oL0l5p DjwUi5PbHaR/sw8IROn47dITH+98Ffxfyy0amYJKuw2v6Fbqbrv6CAUGIIqwQnFftxQo FT7U+lAjGpDBPoaFHLy2oVNIKmlTuq7IcKwJl0OkQjAEKMMS7ttvCWaHvPVTHnkyp8FN gmvuBQm13+7u2AjXuNcCeaf+VOzG8y16QMlae3nH+C7dnu7/kM2dU5kwQBPCdn9eVlFf cPPsdv6wHQB0w7dEJcUbc2HuXVMVRzFl12zYHr77DKElsb7MDoVrm9YeX5uJubUG900h H5Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=u2Li+8fG; 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 l8si15526466ejc.432.2019.10.16.08.01.42; Wed, 16 Oct 2019 08:01:43 -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=u2Li+8fG; 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 S2392374AbfJPPBk (ORCPT + 26 others); Wed, 16 Oct 2019 11:01:40 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:54984 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392187AbfJPPBh (ORCPT ); Wed, 16 Oct 2019 11:01:37 -0400 Received: by mail-wm1-f67.google.com with SMTP id p7so3287039wmp.4; Wed, 16 Oct 2019 08:01:36 -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=VpdEp2zf81VBM+LhkWglZ2eMDIpA3da8iXPWPqvvAdE=; b=u2Li+8fGwbUzcPJxxvOBpyqCzMizq522pSUKcGfpCAvPVCu/xb71Ztqe3MF8EHlkzi C6Nw5hH7TGPzEgamiHkcD457loJHQ/duxoyhzL2Tga3I9niCXRQ+7pmFUmyaoCrBKprY Q3u5EO2sgi8Td29J42iRStmS4OZEPWXiu/nl1tenbyXtxClgcjV/UfVPH8mNCXPEJdd4 jVQPJEl9tYPrcqzlpTEunFumnh90l7idaVo18Zec/sot0tX+APqKD8MRLeE44/yu3aZx 7qxdFrqKnLMRh58jYl16fYI8zyCeEEyW1e1YJrHdrZnZGG8lrJp3HCs3toFJYdTGKHmI 3LxA== 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=VpdEp2zf81VBM+LhkWglZ2eMDIpA3da8iXPWPqvvAdE=; b=YMCQTtDdBk1xmj7Ff8RoN3U5TTifeZEKRG3J1D8UbQ1e9ldHEvbG1VDtB0FBpR1O2c TsTaKJJKeL917D6Drt5RF6NnAcjHtr6IsLtYkm7z0O2myrHfAAY3qnpc1FCR0x+LYTjt VSH2NGp7N7pNOa7JV2QfOsnVgf9IfjdwZtDQ9KtS+MOUK01w/6PkrI3GOFi3qKoA4QWN H/twLk+eemyUBr+LGi9i6NFd7cWX/GjyLYV3ix6qh/EUXHSaGQ4tU6h/w4ZFrTRRNV/I zwzHP2i/dt/pbrkodYPq1wiHk7y2RpwfihnVYmTF14gnNRWskq0Bfd+2OAzalu8KR9QZ gc0g== X-Gm-Message-State: APjAAAW2FRFgL+LeRF7Exl4nUpI0dToZQFaM9asubKiYbQZ+YUjH2va/ r//UtwO1J/W1nk/EsRFITWFP1drP X-Received: by 2002:a1c:b4c1:: with SMTP id d184mr3583046wmf.37.1571238096285; Wed, 16 Oct 2019 08:01:36 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id r18sm3215437wme.48.2019.10.16.08.01.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 08:01:35 -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 v5 01/11] crypto: Add allwinner subdirectory Date: Wed, 16 Oct 2019 17:01:21 +0200 Message-Id: <20191016150131.15430-2-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191016150131.15430-1-clabbe.montjoie@gmail.com> References: <20191016150131.15430-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 Since a second Allwinner crypto driver will be added, it is better to create a dedicated subdirectory. Acked-by: Maxime Ripard Signed-off-by: Corentin Labbe --- MAINTAINERS | 6 ++++++ drivers/crypto/Kconfig | 2 ++ drivers/crypto/Makefile | 1 + drivers/crypto/allwinner/Kconfig | 6 ++++++ 4 files changed, 15 insertions(+) create mode 100644 drivers/crypto/allwinner/Kconfig -- 2.21.0 diff --git a/MAINTAINERS b/MAINTAINERS index c7b48525822a..9153c02e1f63 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -690,6 +690,12 @@ L: linux-crypto@vger.kernel.org S: Maintained F: drivers/crypto/sunxi-ss/ +ALLWINNER CRYPTO DRIVERS +M: Corentin Labbe +L: linux-crypto@vger.kernel.org +S: Maintained +F: drivers/crypto/allwinner/ + ALLWINNER VPU DRIVER M: Maxime Ripard M: Paul Kocialkowski diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index 3e51bae191ec..610bb52d77d6 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig @@ -11,6 +11,8 @@ menuconfig CRYPTO_HW if CRYPTO_HW +source "drivers/crypto/allwinner/Kconfig" + config CRYPTO_DEV_PADLOCK tristate "Support for VIA PadLock ACE" depends on X86 && !UML diff --git a/drivers/crypto/Makefile b/drivers/crypto/Makefile index afc4753b5d28..90d60eff5ecc 100644 --- a/drivers/crypto/Makefile +++ b/drivers/crypto/Makefile @@ -1,4 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 +obj-$(CONFIG_CRYPTO_DEV_ALLWINNER) += allwinner/ obj-$(CONFIG_CRYPTO_DEV_ATMEL_AES) += atmel-aes.o obj-$(CONFIG_CRYPTO_DEV_ATMEL_SHA) += atmel-sha.o obj-$(CONFIG_CRYPTO_DEV_ATMEL_TDES) += atmel-tdes.o diff --git a/drivers/crypto/allwinner/Kconfig b/drivers/crypto/allwinner/Kconfig new file mode 100644 index 000000000000..0c8a99f7959d --- /dev/null +++ b/drivers/crypto/allwinner/Kconfig @@ -0,0 +1,6 @@ +config CRYPTO_DEV_ALLWINNER + bool "Support for Allwinner cryptographic offloader" + depends on ARCH_SUNXI || COMPILE_TEST + default y if ARCH_SUNXI + help + Say Y here to get to see options for Allwinner hardware crypto devices From patchwork Wed Oct 16 15:01:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 176488 Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp7282490ocf; Wed, 16 Oct 2019 08:01:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDYQfKwLOXsyM3mg6PAXCyoC/DGKjdiXGeegx3GhEcrY5V5F7VPydby7WKY1JRay51hNGu X-Received: by 2002:a17:906:24c9:: with SMTP id f9mr40517884ejb.201.1571238114422; Wed, 16 Oct 2019 08:01:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571238114; cv=none; d=google.com; s=arc-20160816; b=GIYKMh4QcqFAbRnEi5l16lHq28/76cwzSbtCqY/i9+9pYOezjOFuXGrcVboraWfuqR Byqy15ZO9YI/ik6n7TWnROCTY7wrXG2x5Bwr3HJBtCP9J0cQDB9yonBD094OuqqNz+6X XN2XlLzaLWA0hEK1/Sy5Nzz2yrR6AkLg+vThtYlc97BhkEh3d3A6kuqE38nucpl3WVSj EQI16LONdxRNWc7e1F2dH/BSn2KYuZ1ophP5Mt5aO6p3u5bEN1w5YEP2JT5ZXghLeH5U 6t+vQbsxf9Mf69UNMiXZhBG5Or+qFsEJJKRe1Yn0S+6P+jqdAW9wt6F4px5EcKUKcFL/ zXTg== 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=x1tjy9K8y1C+m9QH0XRce06eeU7n8YEvUBXZg0IAXUnYMN2AiU+/dyDGKpstffPrdp lDrI4hh77ArWCxfgglU/5d0EBrsDVHTxYmbPp28ty0qnbvlar/bajq4ioMGR2BqSeqYM EjLsYztlqhMMwtrnYfuiyfhtKcp9Rue1ksw4U9jkxQ9lCmpDr8AL/nHSgFahCXd9iGfJ 2+tvDTUNWMVMIwqFChLfwpX0DpBmIZdWJTnYk8O2YwDRJhiMsGzxKv7GaVnRYReVviAl nBSQTqtTN50UqavI5U9YD6kRt5oXac1OZmktmIpGiQkN42tpCibHqY4fOHx5S34hlSne rR8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DPkTAru0; 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 k7si15338505eja.377.2019.10.16.08.01.54; Wed, 16 Oct 2019 08:01:54 -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=DPkTAru0; 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 S2392759AbfJPPBw (ORCPT + 26 others); Wed, 16 Oct 2019 11:01:52 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:43723 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392381AbfJPPBq (ORCPT ); Wed, 16 Oct 2019 11:01:46 -0400 Received: by mail-wr1-f66.google.com with SMTP id j18so28442501wrq.10; Wed, 16 Oct 2019 08:01:45 -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=DPkTAru0Yql5GtRWNDospNrLRWn8xyUN21TNlKMPAiwJ2Rda76JTw24YsVGFRIkMzM n9IEJWOYuzan0n36KWSNTEzU6wiyGDlEkxWFzUXBdbnoU5zjRT1wD1y0q7PHoVtCBtzS 1yMNq9GPSqhrKa+Q2SOTC3T+F+9ws+fnuCJAzoRBBOtW1V2dbKWK5L8P2uUHSiNksDpq X/RTQ+bysHQLZawwV2drb86MMzick4gq2N9ekLy/8xNUX+LJSZuFHXw7/J/kVE9vDWpL aOUSXG6gGzNbq2HTC0hk0TwQmzyzdVJ5aNRISWOAMFV4DP2KEzippzg5hIPnVT9C/2T+ a4/g== 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=KQ/lXQZSKIZvOo+fHyH34NooTvBhKhwChQNpDoA0ImfRI2/PaGQZamWYQ6iBnU7T7b LYhRVFnObARATH7+dyPJu2s+eFxa3gvGWvA6Zl3GRJDvvY3Kftgv7JQcjKHedP+NzX5V uxS468fOWWUZDd8TlPTvvGtyivkmuQlqElGOIi7+4ZxwsSnbhJp9uDnqBdgU9BMKSLnh UV1h0JFtkun5YHIcyeO27KBHTseeskrbTCrqH4D5YkgKEUBKk/g4V/GKkztxyv9QCGA3 AuzsvPnaScNat5Cr+sLnV5k6ym5ZsrD3wp3+cNzKAaDc6J215zkdXKkHxXpPRU/3dQY2 dS1g== X-Gm-Message-State: APjAAAXXeTTIPrwXNh9G75/uKKqZzm1yh+67AJ6qPkbJXQmTuRxiQprZ 5BW85//ljONurrrseXK99SA= X-Received: by 2002:a5d:4302:: with SMTP id h2mr3265040wrq.35.1571238103862; Wed, 16 Oct 2019 08:01:43 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id r18sm3215437wme.48.2019.10.16.08.01.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 08:01:42 -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 v5 05/11] ARM: dts: sun8i: H3: Add Crypto Engine node Date: Wed, 16 Oct 2019 17:01:25 +0200 Message-Id: <20191016150131.15430-6-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191016150131.15430-1-clabbe.montjoie@gmail.com> References: <20191016150131.15430-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 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>; From patchwork Wed Oct 16 15:01:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 176494 Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp7283312ocf; Wed, 16 Oct 2019 08:02:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxN/8TfAk2Cc9KhdHhYRQeysOtHZRnV7QmitkQfeV0Bf4PIgWkLm2eE19PYtKET2fzEa+A9 X-Received: by 2002:a17:906:4548:: with SMTP id s8mr40950142ejq.198.1571238143579; Wed, 16 Oct 2019 08:02:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571238143; cv=none; d=google.com; s=arc-20160816; b=JR2Pr8QXPhdxnAVhfUd7m2fsDu1txosNvEcL+T4x72BzM7ZAzE6bUCkIMtGR/AA3zb eKwr51Xi7lVB3rlLUGM08VmfYgvkn8XlOgQ2ZLqBEgAowSTGV8FxuifkIorZZaM28O7T EfYdx9YTnPtT/KYSpfZF/AXWC4GCDgleBtZWG1DZEd2f5hJt1eKwD63lEfg6tit++rD2 +HZF32Mrh3ddr6d08rhCd6AQPVbU6DAGUFq2gIyFn4koPtFUnAPCOfn7ONfL34R5lWtD Nl59AR+sLS6fEavzbZSItkayAgNnWLG3MvLJxhnEHPtzUmMYMyNy2hyQ/bHCyEAPTvr0 xqRQ== 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=O5/D2feesKr/KrRGqbqm7uqs8lLHXbtcnfEHTYlS4RfjQ2shtYlk3QRx5SLZg4VxH5 h4Vzt3ma82QX7cgwTljoOcjs2NiyTVYcpgjhR4fLdfpldpfAcUKQHNr2IbABjx6maRcW 6kuSUZgvjAmG+N68YHIhnQmDCi14oJLUF//DVTaz8dxwIUfUQdu9Cra6EqQw5xnaUyWN GGmTqwoVpxYxle4y1HTBhzq8mHdi0Pk2aOU4kwfApmXQn3cSKqv0oa8NOeYSQbqYKTy2 P5CmD0XUcL3dmeuwi8LVWf1mwqTQcWm5eyGfBwOp5iPZurmfnhHOWH7Ey2+RUNVliMWi oBsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GkCbdZxZ; 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 u26si15953702edx.33.2019.10.16.08.02.23; Wed, 16 Oct 2019 08:02:23 -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=GkCbdZxZ; 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 S2392075AbfJPPCR (ORCPT + 26 others); Wed, 16 Oct 2019 11:02:17 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:50728 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388424AbfJPPBt (ORCPT ); Wed, 16 Oct 2019 11:01:49 -0400 Received: by mail-wm1-f66.google.com with SMTP id 5so3313821wmg.0; Wed, 16 Oct 2019 08:01:48 -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=GkCbdZxZSlrSuU1lMZlxTCRgfOho3FeWP9Qb8VexJMxSLiNn5QjHzSDGN78YTYZ6sY HKcjigC+gPZxcNGwA+C9HVpZNGqNRCIMCliHH6+LLpJo/rYCco8kbNNcxtKNclmJCNxu fUf3b1rOa5YFScI5y3mJyeStfmJbnwLf1KI3rznvtXKk6YpImbYcjFzIYeLQT88OVbjh 50Zmmg9bqWdU5PesiUkB+cQmqKOpb4PZ0VAV2BfqcJ9QC14Nbh0RaZYXqcoeQlIswlDI fLh6Xsp8MlT7CWp0QWf9W2nfQP35hri/lFKjBDEY/3WM0nYcvgdZEeM7DfEa1s9BPBfG //0w== 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=dCxLFPbLZVl+X/AHILEnw6DU/6ZpYgsUihGIyu8LyHeWL+SZc/dch/FEOFs0Xblzd7 C7iyRdP4WX7iYJ1R2PWUVMnmADcP2qnwe21o/NpF/EiZsL2h4+lpijmwAntbJLAnIyKZ CeVV4DJHANH532lvZc+icwKuLB8Fs6YyYPLrEc0VLOdvuEuOg91V7CC/IcAukOK/6Srf p5ZC0f6c+wvLi+W54zYzUE8h5r7vturNY+w0ra5yPVdcLhIx+QIznmL1/KhAHuJMizqc getLXGWzJxAazhI5aFjfdFXan5OtPFY9PDMz8wUtXsVez2JAO3xjIovwCjynbHZR3E9L cDFA== X-Gm-Message-State: APjAAAWnaL8yZ5odTiKd/SNmnWqU156dQ/vE0LfxmBHoQ2Xkr3wuPCDk DRbEcJMe1pCNf5nM08HL2C4= X-Received: by 2002:a05:600c:2185:: with SMTP id e5mr3908701wme.78.1571238107027; Wed, 16 Oct 2019 08:01:47 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id r18sm3215437wme.48.2019.10.16.08.01.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 08:01:46 -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 v5 07/11] ARM64: dts: allwinner: sun50i: Add crypto engine node on H5 Date: Wed, 16 Oct 2019 17:01:27 +0200 Message-Id: <20191016150131.15430-8-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191016150131.15430-1-clabbe.montjoie@gmail.com> References: <20191016150131.15430-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>; From patchwork Wed Oct 16 15:01:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 176492 Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp7282929ocf; Wed, 16 Oct 2019 08:02:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/fEQgOWy8ibJELA+JR2tHq4gBbHThbnXZYDtQCYS9UDbaAzhE7Wm7BEn7r5JlK/tlJqbF X-Received: by 2002:aa7:cfcd:: with SMTP id r13mr40381474edy.146.1571238130281; Wed, 16 Oct 2019 08:02:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571238130; cv=none; d=google.com; s=arc-20160816; b=B5zgN5V7rczsBuUuOS9b+mEyYSjW9am9PLe3EDF6FN+u81RC5MkRLv10Zcrvn4Izal uT0jeHWOaV0M1hZc2y5cMyz6JMkYk6mm7s9dk1yh6D/S9PmH1/yC9zOQmtikGm2iMi0N PWj4XZyqrqe0NK2s+yJ5C1hprO8tOfRgjGWxHc4NZiH6elxJA+mnO077bIZE405dbOax zdBCgslpkR7Nvl5EUe2c4h1XDDX9gzemL2Fe4hQAxHUGNpc0Uuexu7zuJMK8fD/maPIF H8DZ+ck8Ed8o4EcsJASyGXfNVtOXeG5Zps8i+HUWE9yRKQeBh4nsN/dwn7Qlx0GlKCxi +gWA== 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=44TuELDtNCusYZupj5B8B0t5vnjX1mlerc4abRfeM5Q=; b=HomlVR+pWUi3YpyQKIsyjjLgloSxJTrhxQ+yDE2ZZFgk899xZDusctpAa2pO4m5fDq p5vHzPhzr+pF+JlBkhAHQUSIQrT+72DZNwPhmFYuJ/+8BesbD5kftYIfzjlPPUD6kP2k la2ZTrEFkxdEBOtGrV1HF3ug1qSyOMM17L7fvsSu5cGjrl6cVdV+JeXhdsWaqKzm7RY9 yMibPSwGQlz4WL3+TFVAdQk5X0aLeJ82Fq6mBZK5VHA9ESIgEnkNtR3QAjkV1bi3L49P 7JcXZZo5kFZfH3lYVveHjpr9xEYsfDvxW9MB5j9bOZ8HaLihlzSSKSZ6kIg+c6ONH11c ClYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qAuaa7ZS; 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 y26si14499293edu.176.2019.10.16.08.02.09; Wed, 16 Oct 2019 08:02:10 -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=qAuaa7ZS; 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 S2404655AbfJPPCH (ORCPT + 26 others); Wed, 16 Oct 2019 11:02:07 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:54007 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392684AbfJPPBv (ORCPT ); Wed, 16 Oct 2019 11:01:51 -0400 Received: by mail-wm1-f67.google.com with SMTP id i16so3296547wmd.3; Wed, 16 Oct 2019 08:01:49 -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=44TuELDtNCusYZupj5B8B0t5vnjX1mlerc4abRfeM5Q=; b=qAuaa7ZSjn0FhJ00uXag5V81k2j4Jd8wB3mlHyQMAOmseqw6EhNJ8BC2g7O+/gpJT0 AKHLSx/YhDsRflFs6PfgQ0DbQPo9jkyYQg7zMZ0eMTGS9WkCPvY774POUrzSJkebbp4Z NmKFTj4ZFuku85+S/jOGzuoEZYoA2+nJ3i4lrs+uenKplwZ9WN3BcFpQLSZV5wX9pcZg UWfDhZmF/MG4FqIGd64FhvJ8EMp2GNS+7+3FxYLPXOxa6EGjbxbAjChZU5+ZcWuuJaDK YAaI6H5jMk7+hk6rb2Gzw6rMT4e5y6Z+2Lrs4KBWwyTX0PJQjj4u3nmgy4nMaLVa2JTE 4PTw== 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=44TuELDtNCusYZupj5B8B0t5vnjX1mlerc4abRfeM5Q=; b=KA99nAaBVU3mveb6vtWR6WfBb6CQY4GTh0N+0HFZ+bOyYwOz1xksTWXQA6Y7I2hrF7 vu2+xnTCSP3ngsaEUi8KfIH5gLSsWzST8Ojpwpm0SWkd3domSvAiA91DcTBzhkTPzzsH ss0lyp4k/X22pUd3Z97FM6lGY+a7JfcRI2uQp3/5A5KG1F3TRn3dzo/STv5f9124cQQQ +O7FCpxFmBsetc7WGxcJgBAi4CIFoAnqDhyk7FWifi8LqZh7Y+v8vbuBBuFepGU/N6kH 9cN+QNkSpJ7TK/mSggZSYMJiUryPuIUpQ7N67QDtn7qwv3TRdvKIsPsF+8eeHzqb6GrO DO6w== X-Gm-Message-State: APjAAAW5xRVyBVZmbU2qpvO6JyYseAm1ol9ZCNSfnhzdGbv7fBWBfey9 rztqObH6e9WEToCb8tdMEy4= X-Received: by 2002:a05:600c:22d7:: with SMTP id 23mr3765323wmg.31.1571238108577; Wed, 16 Oct 2019 08:01:48 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id r18sm3215437wme.48.2019.10.16.08.01.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 08:01:47 -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 v5 08/11] ARM64: dts: allwinner: sun50i: Add Crypto Engine node on H6 Date: Wed, 16 Oct 2019 17:01:28 +0200 Message-Id: <20191016150131.15430-9-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191016150131.15430-1-clabbe.montjoie@gmail.com> References: <20191016150131.15430-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. This patch enables the Crypto Engine on the Allwinner H6 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.21.0 diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index 5d7ab540b950..89d09b441abc 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -149,6 +149,15 @@ allwinner,sram = <&ve_sram 1>; }; + crypto: crypto@1904000 { + compatible = "allwinner,sun50i-h6-crypto"; + reg = <0x01904000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>, <&ccu CLK_MBUS_CE>; + clock-names = "bus", "mod", "ram"; + resets = <&ccu RST_BUS_CE>; + }; + syscon: syscon@3000000 { compatible = "allwinner,sun50i-h6-system-control", "allwinner,sun50i-a64-system-control"; From patchwork Wed Oct 16 15:01:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 176489 Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp7282580ocf; Wed, 16 Oct 2019 08:01:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5igw3YD4ITCp8QDYT5YYJIuU7ISTZkFo1uz6WeU6wXSuip2Iv3yrJCdvlNi0ZDHggElA7 X-Received: by 2002:a17:906:e2d6:: with SMTP id gr22mr39427458ejb.160.1571238117167; Wed, 16 Oct 2019 08:01:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571238117; cv=none; d=google.com; s=arc-20160816; b=BwO0CiTB2U2FEiYemfUCwVkbwNhhvGAkxOlll/qErMpQo36CCvCs9NwBrzr/ebTAcU +mb6o5rys+zvzxcI4bEr3Og0IhLmXhuy+qo7oh+6t0DO1CIXw3J1a/rz4KNpgBfoSXLe R823QzY79gcKBfedR7UyRSQk/A/7Tt4uQBNnR5P70LUlXlmCCpZHCHHsDD6m3gou076E W+ylwJyA+QXYF9ML1ZGBfOpKdm+yyLk1xTncKmhU033Z5Wr2xL23rx51tE3X2KqoZISF gjB2BLy1hucc9uGjEkaWsK/ZSFF+92UrMgLXQnbjp6CZCi58KaawSRbG4J7pbq5C3AyH 33BQ== 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=zV4+mJumjqZCVRf0c568eaULYg2KEJ/Mri+qUnmNENE=; b=OAlsmKtEAohDIyLQvM3d60NRlNyj+BLJfo0dBUiEST5c8SPe4IC1l6ISf/QezAPcFf sqxwQ711KW3jW6kGOCEZ5ktonb2ViMVGTAyHLajZrAmQUDCPOxjSntclafjSDi11XJKB JfU5pnjp5kDDXP3Iv6pG7rt3IItk2YB5kT5STf75/L8soqD51eKsE5/gDxaqBSzu36Mn T4i6woKInt2kUTutVBuwOuvzhqvu0PN+qiDSwZWO9o0hQgzgTjbvB3GD3HoYAe0NsZED jjS1xjg3RoFCLPoyLfS+rE2z4DOvCdEWPnEu5WxQgtlH28FDpFwnOoxZ6ZpTesqAk9y7 PhYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hGLnN2wb; 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 p3si15766257ejj.347.2019.10.16.08.01.56; Wed, 16 Oct 2019 08:01:57 -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=hGLnN2wb; 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 S2392867AbfJPPBy (ORCPT + 26 others); Wed, 16 Oct 2019 11:01:54 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:40825 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392725AbfJPPBw (ORCPT ); Wed, 16 Oct 2019 11:01:52 -0400 Received: by mail-wm1-f66.google.com with SMTP id b24so3128776wmj.5; Wed, 16 Oct 2019 08:01:50 -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=zV4+mJumjqZCVRf0c568eaULYg2KEJ/Mri+qUnmNENE=; b=hGLnN2wbqzjUWYMYe8XYApr0ASx80B8BAD0rdumLrqT5gUGWH3QNtpUOaD9/EQtuG4 rPiG7+TK/xTsteZ+sUZ/aH58g7wTO7x9Tn7+Dswe+dXwVb6MrW2Hy15tEpYZ7YZdccXE 3Y9FPj3AK15cCRBQ52zd9W4L9KXPlUyC100rr8HgMyKmTV7NH6EKESyn+uVUpPV2YAWO NXYIP+bPKp8A5JzDtQXiCd/VrjDZYTcB+UHTi6PQWrfKHl3g+FvEBtRf/ZtCFX+GLlwn BBRJgH5iM0OQUyHSO+Bdnb6AGKhwLfGyG6ipzNjSWgLI8He3rhQZp8WVlP4CUY2r5Juu viMw== 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=zV4+mJumjqZCVRf0c568eaULYg2KEJ/Mri+qUnmNENE=; b=H1S4uRyEpUW5RjSTWSvqPXKLra8nTLaUcHdDXrIDLubek4hJBSZ4VIG4rfHlY69x8l WyvFN6ObK8Tr1oy6q9jQszTaXnE7YwzM3XlcysZyBC89422Wjffqwy7ofi+b9se6I1fo 7SYcCmBeJl90JUDnFdJEz0ZVcffVUiocVjCgSw/LN6WP8zK0/P9sXbbN5olSL/SVeNuG hLH5dVgg5z1Yo5ZBf2mGYwPb5lo8vrbr5bE8MormntdF9clw2TT1apzrlaFZnSefaIpC 1KWuhAd/6J8KK3BIsnjKsxLflXUBwqMXPgidFifZbaSEEgwCzVU5DimexhRUYz356CvS +oVQ== X-Gm-Message-State: APjAAAVUbp4ktx28C0Hqo+y2fyd3ISj6dQmaN6BdRo4IVvKw0yzvs12m ZmpyCymyHAQ6LPoud5g9Se0= X-Received: by 2002:a1c:7c13:: with SMTP id x19mr3768680wmc.80.1571238110118; Wed, 16 Oct 2019 08:01:50 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id r18sm3215437wme.48.2019.10.16.08.01.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 08:01:49 -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 v5 09/11] sunxi_defconfig: add new Allwinner crypto options Date: Wed, 16 Oct 2019 17:01:29 +0200 Message-Id: <20191016150131.15430-10-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191016150131.15430-1-clabbe.montjoie@gmail.com> References: <20191016150131.15430-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 This patch adds the new Allwinner crypto configs to sunxi_defconfig Signed-off-by: Corentin Labbe --- arch/arm/configs/sunxi_defconfig | 2 ++ 1 file changed, 2 insertions(+) -- 2.21.0 diff --git a/arch/arm/configs/sunxi_defconfig b/arch/arm/configs/sunxi_defconfig index df433abfcb02..d0ab8ba7710a 100644 --- a/arch/arm/configs/sunxi_defconfig +++ b/arch/arm/configs/sunxi_defconfig @@ -150,4 +150,6 @@ CONFIG_NLS_CODEPAGE_437=y CONFIG_NLS_ISO8859_1=y CONFIG_PRINTK_TIME=y CONFIG_DEBUG_FS=y +CONFIG_CRYPTO_DEV_ALLWINNER=y +CONFIG_CRYPTO_DEV_SUN8I_CE=y CONFIG_CRYPTO_DEV_SUN4I_SS=y From patchwork Wed Oct 16 15:01:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 176490 Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp7282617ocf; Wed, 16 Oct 2019 08:01:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9CLDYnbfVRgWMbERhC7eecJB8vSo6FuHeLWZQzZ1ESm5I0d9doE5XMnuUCUoEYHHwdW1D X-Received: by 2002:a05:6402:21e8:: with SMTP id ce8mr40018189edb.32.1571238118678; Wed, 16 Oct 2019 08:01:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571238118; cv=none; d=google.com; s=arc-20160816; b=VM/kpD1wZRk0TWJJipXzTvrNRwDj7A087v3ZmqbIuibd3nBwRxieafDPLUruLNmVtO W/od6+Yp8KaAeICKm+5pTj0wMfX8VdcTraOkEvlpPLri/9qbcOKqKCAoql2gVHXJ1YnG R28m+2FIkXcQ0sFDODtT4W/tYoBsunr7xqxcGSKJjHHZpX8Dp4dORVhuMN7PCibegOVX I++gTvLCc8lN3t+Igd3/5+aZZV99gX0WJ3GxEjMo8OO90pu0iB+m7sNsDGhCdEOfxXQx L9VtEz+EmE4KhKUpTIg/U3HY9al2tcRrDEVqDnPNPaEXiJV3HfinIemvduPiqkEyJn/t i8Mg== 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=e457YyDFVfE5IUj3AWYMM47UgnP78lQnD30EkuZGvV4=; b=rz8ap8GSsFf+VW8wm8Q+XVkF6kAA3rBphZ5xBtz0+8vDBjFGQXT8mR2ZMXe0kXIvTN D35GCIaTisqulv/PATd+ECnk8Bbc0tZKaD8CYkhoc4DdgDN6vXuRhMY+HoJlA9l1M2PA tECCG/I4VY+j7SXoA4CNE7YVpIGYXfcJ8Jg2PCbT9b7U8Gh2YzffvzTnxEcjDo1z6Tgz Dzw7iiPankPVYjgMQpFA7cZBs2sMrv4DduXPawRku3NOEITgs8A0pjsrkD2XqbyV3zat jD7gZhg31rnghqYJEFovQjZ8KEIsrnDRPCsiZTG3a4/zfCMX4c/mqddn0uipDzF6WKpd ectA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IbvFwY7y; 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 p3si15766257ejj.347.2019.10.16.08.01.58; Wed, 16 Oct 2019 08:01:58 -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=IbvFwY7y; 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 S2392977AbfJPPB5 (ORCPT + 26 others); Wed, 16 Oct 2019 11:01:57 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:41486 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392725AbfJPPB4 (ORCPT ); Wed, 16 Oct 2019 11:01:56 -0400 Received: by mail-wr1-f68.google.com with SMTP id p4so12589294wrm.8; Wed, 16 Oct 2019 08:01:54 -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=e457YyDFVfE5IUj3AWYMM47UgnP78lQnD30EkuZGvV4=; b=IbvFwY7y30vzZmQNQZIdNwtpOJW3l/IQEoam6v99L4QEnCH773bL58VkU8OkkT8W+t fbTZvpkR8YBT+PlV374xiKueR6wTf99r8NJPMF+vx+jizVYbSRcXaFywAxq70iVM0gX/ +7OQD6wxYq72vzAiykXQ4gULTs+vzG6TN/NLwwQ3ZUVv4y+YdQ2HUjpVS2kF2NxTTpD5 BQ3sFQAKhDACFjUnBgP7t0WCQHfwDnanmEAEzd5OmTms90ICnMwBoHoJUGdZSbBGiJXY si97Fj9Sm2Puh+Wy5hp92JVLGsEu8j6R74lVyWpbEDRS+UzTzZ8p5pKPQWgmyg8LaEpQ jJAQ== 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=e457YyDFVfE5IUj3AWYMM47UgnP78lQnD30EkuZGvV4=; b=gQgAHSlNry0NvvXNTShn1PpSOvG3HdfV+zqCTgaNW5FNdrw0vMxm4Ti198fxZMJvoC W/t2ji/5UrbkauhqpjIfv2WU7AzSIf4jt43gvMeDo16ZrgQfXYmhoCgAOP9Y6KmYRo34 Cw40ogQpQqZo0Qqw+4d4grJptoAytW8WqpE9XsVDuef7xTwaMKLy37JrtNA58BJ8MexX vWTknIhZGwoewPHKSToSLd08x9dDk1I2SY8XDkfuijI4JoqFB6kSHtAFBhDEtDwwBFiv y8QC8aa8Maz+llAtH3eib75ox8t+FWEGRACW44XUIrRsFQ5guDX/zxOygfT3cTDZcW6o k8NQ== X-Gm-Message-State: APjAAAUXfoYzYqmt5N9pGrFcK1IO2Ob14vAefPvl6gMOfwm/j6IoHmSX T8GxJP9VxRvgvkc4N4d+Miw= X-Received: by 2002:adf:e8c6:: with SMTP id k6mr3139239wrn.78.1571238113369; Wed, 16 Oct 2019 08:01:53 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id r18sm3215437wme.48.2019.10.16.08.01.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 08:01:52 -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 v5 11/11] crypto: sun4i-ss: Move to Allwinner directory Date: Wed, 16 Oct 2019 17:01:31 +0200 Message-Id: <20191016150131.15430-12-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191016150131.15430-1-clabbe.montjoie@gmail.com> References: <20191016150131.15430-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 Since we have a dedicated Allwinner directory for crypto driver, move the sun4i-ss driver in it. Acked-by: Maxime Ripard Signed-off-by: Corentin Labbe --- MAINTAINERS | 6 ----- drivers/crypto/Kconfig | 26 ------------------ drivers/crypto/Makefile | 1 - drivers/crypto/allwinner/Kconfig | 27 +++++++++++++++++++ drivers/crypto/allwinner/Makefile | 1 + .../{sunxi-ss => allwinner/sun4i-ss}/Makefile | 0 .../sun4i-ss}/sun4i-ss-cipher.c | 0 .../sun4i-ss}/sun4i-ss-core.c | 0 .../sun4i-ss}/sun4i-ss-hash.c | 0 .../sun4i-ss}/sun4i-ss-prng.c | 0 .../sun4i-ss}/sun4i-ss.h | 0 11 files changed, 28 insertions(+), 33 deletions(-) rename drivers/crypto/{sunxi-ss => allwinner/sun4i-ss}/Makefile (100%) rename drivers/crypto/{sunxi-ss => allwinner/sun4i-ss}/sun4i-ss-cipher.c (100%) rename drivers/crypto/{sunxi-ss => allwinner/sun4i-ss}/sun4i-ss-core.c (100%) rename drivers/crypto/{sunxi-ss => allwinner/sun4i-ss}/sun4i-ss-hash.c (100%) rename drivers/crypto/{sunxi-ss => allwinner/sun4i-ss}/sun4i-ss-prng.c (100%) rename drivers/crypto/{sunxi-ss => allwinner/sun4i-ss}/sun4i-ss.h (100%) -- 2.21.0 diff --git a/MAINTAINERS b/MAINTAINERS index 9153c02e1f63..2120c74f476a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -684,12 +684,6 @@ S: Maintained F: Documentation/devicetree/bindings/opp/sun50i-nvmem-cpufreq.txt F: drivers/cpufreq/sun50i-cpufreq-nvmem.c -ALLWINNER SECURITY SYSTEM -M: Corentin Labbe -L: linux-crypto@vger.kernel.org -S: Maintained -F: drivers/crypto/sunxi-ss/ - ALLWINNER CRYPTO DRIVERS M: Corentin Labbe L: linux-crypto@vger.kernel.org diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index 610bb52d77d6..9f08ed72eae8 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig @@ -659,32 +659,6 @@ config CRYPTO_DEV_IMGTEC_HASH hardware hash accelerator. Supporting MD5/SHA1/SHA224/SHA256 hashing algorithms. -config CRYPTO_DEV_SUN4I_SS - tristate "Support for Allwinner Security System cryptographic accelerator" - depends on ARCH_SUNXI && !64BIT - depends on PM - select CRYPTO_MD5 - select CRYPTO_SHA1 - select CRYPTO_AES - select CRYPTO_LIB_DES - select CRYPTO_BLKCIPHER - help - Some Allwinner SoC have a crypto accelerator named - Security System. Select this if you want to use it. - The Security System handle AES/DES/3DES ciphers in CBC mode - and SHA1 and MD5 hash algorithms. - - To compile this driver as a module, choose M here: the module - will be called sun4i-ss. - -config CRYPTO_DEV_SUN4I_SS_PRNG - bool "Support for Allwinner Security System PRNG" - depends on CRYPTO_DEV_SUN4I_SS - select CRYPTO_RNG - help - Select this option if you want to provide kernel-side support for - the Pseudo-Random Number Generator found in the Security System. - config CRYPTO_DEV_ROCKCHIP tristate "Rockchip's Cryptographic Engine driver" depends on OF && ARCH_ROCKCHIP diff --git a/drivers/crypto/Makefile b/drivers/crypto/Makefile index 90d60eff5ecc..79e2da4a51e4 100644 --- a/drivers/crypto/Makefile +++ b/drivers/crypto/Makefile @@ -40,7 +40,6 @@ obj-$(CONFIG_CRYPTO_DEV_ROCKCHIP) += rockchip/ obj-$(CONFIG_CRYPTO_DEV_S5P) += s5p-sss.o obj-$(CONFIG_CRYPTO_DEV_SAHARA) += sahara.o obj-$(CONFIG_ARCH_STM32) += stm32/ -obj-$(CONFIG_CRYPTO_DEV_SUN4I_SS) += sunxi-ss/ obj-$(CONFIG_CRYPTO_DEV_TALITOS) += talitos.o obj-$(CONFIG_CRYPTO_DEV_UX500) += ux500/ obj-$(CONFIG_CRYPTO_DEV_VIRTIO) += virtio/ diff --git a/drivers/crypto/allwinner/Kconfig b/drivers/crypto/allwinner/Kconfig index a3e5781fa95e..9c445973ca08 100644 --- a/drivers/crypto/allwinner/Kconfig +++ b/drivers/crypto/allwinner/Kconfig @@ -5,6 +5,33 @@ config CRYPTO_DEV_ALLWINNER help Say Y here to get to see options for Allwinner hardware crypto devices +config CRYPTO_DEV_SUN4I_SS + tristate "Support for Allwinner Security System cryptographic accelerator" + depends on ARCH_SUNXI && !64BIT + depends on PM + depends on CRYPTO_DEV_ALLWINNER + select CRYPTO_MD5 + select CRYPTO_SHA1 + select CRYPTO_AES + select CRYPTO_LIB_DES + select CRYPTO_BLKCIPHER + help + Some Allwinner SoC have a crypto accelerator named + Security System. Select this if you want to use it. + The Security System handle AES/DES/3DES ciphers in CBC mode + and SHA1 and MD5 hash algorithms. + + To compile this driver as a module, choose M here: the module + will be called sun4i-ss. + +config CRYPTO_DEV_SUN4I_SS_PRNG + bool "Support for Allwinner Security System PRNG" + depends on CRYPTO_DEV_SUN4I_SS + select CRYPTO_RNG + help + Select this option if you want to provide kernel-side support for + the Pseudo-Random Number Generator found in the Security System. + config CRYPTO_DEV_SUN8I_CE tristate "Support for Allwinner Crypto Engine cryptographic offloader" select CRYPTO_BLKCIPHER diff --git a/drivers/crypto/allwinner/Makefile b/drivers/crypto/allwinner/Makefile index 11f02db9ee06..fdb720c5bcc7 100644 --- a/drivers/crypto/allwinner/Makefile +++ b/drivers/crypto/allwinner/Makefile @@ -1 +1,2 @@ +obj-$(CONFIG_CRYPTO_DEV_SUN4I_SS) += sun4i-ss/ obj-$(CONFIG_CRYPTO_DEV_SUN8I_CE) += sun8i-ce/ diff --git a/drivers/crypto/sunxi-ss/Makefile b/drivers/crypto/allwinner/sun4i-ss/Makefile similarity index 100% rename from drivers/crypto/sunxi-ss/Makefile rename to drivers/crypto/allwinner/sun4i-ss/Makefile diff --git a/drivers/crypto/sunxi-ss/sun4i-ss-cipher.c b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c similarity index 100% rename from drivers/crypto/sunxi-ss/sun4i-ss-cipher.c rename to drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c diff --git a/drivers/crypto/sunxi-ss/sun4i-ss-core.c b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c similarity index 100% rename from drivers/crypto/sunxi-ss/sun4i-ss-core.c rename to drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c diff --git a/drivers/crypto/sunxi-ss/sun4i-ss-hash.c b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-hash.c similarity index 100% rename from drivers/crypto/sunxi-ss/sun4i-ss-hash.c rename to drivers/crypto/allwinner/sun4i-ss/sun4i-ss-hash.c diff --git a/drivers/crypto/sunxi-ss/sun4i-ss-prng.c b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-prng.c similarity index 100% rename from drivers/crypto/sunxi-ss/sun4i-ss-prng.c rename to drivers/crypto/allwinner/sun4i-ss/sun4i-ss-prng.c diff --git a/drivers/crypto/sunxi-ss/sun4i-ss.h b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h similarity index 100% rename from drivers/crypto/sunxi-ss/sun4i-ss.h rename to drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h