From patchwork Sun Oct 19 14:16:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 5101031 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EAF009F30B for ; Sun, 19 Oct 2014 14:20:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1A0D4201CD for ; Sun, 19 Oct 2014 14:20:40 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4A0DD201BC for ; Sun, 19 Oct 2014 14:20:39 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XfrIF-0000nw-4v; Sun, 19 Oct 2014 14:17:11 +0000 Received: from mail-wg0-x234.google.com ([2a00:1450:400c:c00::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XfrHx-0000hi-0X for linux-arm-kernel@lists.infradead.org; Sun, 19 Oct 2014 14:16:53 +0000 Received: by mail-wg0-f52.google.com with SMTP id a1so3725234wgh.23 for ; Sun, 19 Oct 2014 07:16:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=IPwuaszyyqpBtH0iCB1ajN/0Rrzn32LC3CnCdCYafAc=; b=eCT4/mdGviRI0/JwrBZ/hFqKcLTf91LTWqviSMAVCKV+RAZ2xtz0KvNqrflfr/r5TP UPbtsKWElck1Sppj/JlotCH7VOOn4zZ0vlvWCAAk1iLGYq227Cq6P0UkVBp9z3mzvLYm 5Vygpsfw9di5WENws0/x81hziApX93uX21EdQV1gOJLeflGHxQ/93MgVmuLclVigFbCR zsEb8Jpzm76bJKSmDoxGoqaVhwOpY5TRQ02YIR7Y2MrN8DMKPTZIlFmDh1SiW5DyC2jJ 7TUaWfoKUkEgHyluenwZGCpDM8WtFff/ls8HaeGKeLYcusLdfJxab945oY5/jMEt2SNn nQpQ== X-Received: by 10.194.6.233 with SMTP id e9mr26049147wja.20.1413728188919; Sun, 19 Oct 2014 07:16:28 -0700 (PDT) Received: from Red.local (ANice-651-1-421-213.w83-201.abo.wanadoo.fr. [83.201.125.213]) by mx.google.com with ESMTPSA id td9sm6264992wic.15.2014.10.19.07.16.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Oct 2014 07:16:28 -0700 (PDT) From: LABBE Corentin To: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, maxime.ripard@free-electrons.com, linux@arm.linux.org.uk, herbert@gondor.apana.org.au, davem@davemloft.net, grant.likely@linaro.org, akpm@linux-foundation.org, gregkh@linuxfoundation.org, joe@perches.com, mchehab@osg.samsung.com, crope@iki.fi Subject: [PATCH v5 1/4] ARM: sun7i: dt: Add Security System to A20 SoC DTS Date: Sun, 19 Oct 2014 16:16:19 +0200 Message-Id: <1413728182-13569-2-git-send-email-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.0.4 In-Reply-To: <1413728182-13569-1-git-send-email-clabbe.montjoie@gmail.com> References: <1413728182-13569-1-git-send-email-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141019_071653_280259_03BC5D7D X-CRM114-Status: GOOD ( 10.41 ) X-Spam-Score: -0.8 (/) Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, LABBE Corentin , linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The Security System is a hardware cryptographic accelerator that support AES/MD5/SHA1/DES/3DES/PRNG algorithms. It could be found on many Allwinner SoC. This patch enable the Security System on the Allwinner A20 SoC Device-tree. Signed-off-by: LABBE Corentin --- arch/arm/boot/dts/sun7i-a20.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index 82097c9..ebcdc76 100644 --- a/arch/arm/boot/dts/sun7i-a20.dtsi +++ b/arch/arm/boot/dts/sun7i-a20.dtsi @@ -577,6 +577,14 @@ status = "disabled"; }; + crypto: crypto-engine@01c15000 { + compatible = "allwinner,sun7i-a20-crypto"; + reg = <0x01c15000 0x1000>; + interrupts = <0 86 4>; + clocks = <&ahb_gates 5>, <&ss_clk>; + clock-names = "ahb", "mod"; + }; + spi2: spi@01c17000 { compatible = "allwinner,sun4i-a10-spi"; reg = <0x01c17000 0x1000>;