From patchwork Fri Feb 4 13:37:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 12735075 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2E268C433EF for ; Fri, 4 Feb 2022 13:39:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=7JskCOGL34FXvBtrKAbPT07lWohqIl1DE1XaVBiYhfA=; b=o4pbxT5HW/ZyZU AfCF+NQFS9P8JT2FakhBF586OjBs+dC4UxOdYCUMLifyvBK1d4NAGliZ5pldHN3fXzmLwrovtB+6/ 0B3VNqjcsaVKht3y48Ie07dCGfdJpqUghv+05N01K/gRFRi7z6P+JKDcxVRImOKGdbKnZwDSrBdyi 5se5wgWZFuEXueBFvQsLWjtGxAsQ2ksfT1mX26A58IaaM78UeJ1uwm5o2M0PKeKg+8DdplVlq6QEG J3ypzabsjoywUb+Kq0zusEKAAJ8rtIgV0HeW8f0E59Z1lrHfpEK9RRipW48z+UQ45Jl/Is0hOs16V +HaSfRkhbjFtftItN7Og==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFymo-004PzG-JL; Fri, 04 Feb 2022 13:38:02 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFymj-004PyO-ED for linux-arm-kernel@lists.infradead.org; Fri, 04 Feb 2022 13:37:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1643981878; x=1675517878; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ins3wjr1yw8GLN2RCWCRKZ7wEA5SACV7Eby0ebdTizI=; b=sWn5O4a4SYHLdOHjcBsJ50RkdQbtMDls8nK6/71RgJBLUnKrgHYE4n9O MDA6tjxJcIbXge9bEqvX50aQRE6quuUMJJpAL9zuwHnRxLibZSIdNeCtP sfhpqtfQtAMmn/+NjNZA2IXO1lmdGchef4FuosqseHhxHPrOU2nyzuvkh 92x7b1MdymFb40g/x3FMx39iNyD+jf3KYWNexo6VBzHiuq/c7AX0rW1hY Tgh9ugMLCfgN3FswojdSIWi+hodkaEhlq2Wd+V0i+RMi43fHbwqTbLg6d TygcGbFEasLHsiLVX+caZV6kx7XTljgDerd/5PPnBbhXRXRvaKlDrN4Yw w==; IronPort-SDR: GObYwLT3RkKPIG3eW2ryvclkpvDVyYLSnseXNQyBoxcdlZqG7iYDfbA78TqWZlI/fA/V29BBUc AO1vAstjEm15yCGEJnzERVSdRfx4UXRfDH9061Yynk3kUry9MZiba8ux1s6wJ83mTNe62aLDVX HJRusjsYSsGemgtokY6b+f7YINMnPLo1QS86FSHXDV3fS81yQ0pZOaiAd12U1s2xU9S5DKuTbl K44t8qseYgNnwYpnceHMqxGLp6vhAaYLkUdM8ozCgu/HoWi13WB2y7mTQDQlJQk7fnCQZ1jcb/ +BCHye7jOGWujiJQ9SRRvJh8 X-IronPort-AV: E=Sophos;i="5.88,342,1635231600"; d="scan'208";a="151967375" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 04 Feb 2022 06:37:58 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Fri, 4 Feb 2022 06:37:56 -0700 Received: from ROB-ULT-M18064N.mchp-main.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Fri, 4 Feb 2022 06:37:54 -0700 From: Tudor Ambarus To: , , CC: , , , , Tudor Ambarus Subject: [PATCH] ARM: dts: at91: sama7g5: Add crypto nodes Date: Fri, 4 Feb 2022 15:37:51 +0200 Message-ID: <20220204133751.498600-1-tudor.ambarus@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220204_053757_509896_3A59AB85 X-CRM114-Status: UNSURE ( 7.06 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Describe and enable the AES, SHA and TDES crypto IPs. Signed-off-by: Tudor Ambarus --- arch/arm/boot/dts/sama7g5.dtsi | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/sama7g5.dtsi b/arch/arm/boot/dts/sama7g5.dtsi index 7972cb8c2562..1f2731a64139 100644 --- a/arch/arm/boot/dts/sama7g5.dtsi +++ b/arch/arm/boot/dts/sama7g5.dtsi @@ -393,6 +393,29 @@ pit64b1: timer@e1804000 { clock-names = "pclk", "gclk"; }; + aes: aes@e1810000 { + compatible = "atmel,at91sam9g46-aes"; + reg = <0xe1810000 0x100>; + interrupts = ; + dmas = <&dma0 AT91_XDMAC_DT_PERID(1)>, + <&dma0 AT91_XDMAC_DT_PERID(2)>; + dma-names = "tx", "rx"; + clocks = <&pmc PMC_TYPE_PERIPHERAL 27>; + clock-names = "aes_clk"; + status = "okay"; + }; + + sha: sha@e1814000 { + compatible = "atmel,at91sam9g46-sha"; + reg = <0xe1814000 0x100>; + interrupts = ; + dmas = <&dma0 AT91_XDMAC_DT_PERID(48)>; + dma-names = "tx"; + clocks = <&pmc PMC_TYPE_PERIPHERAL 83>; + clock-names = "sha_clk"; + status = "okay"; + }; + flx0: flexcom@e1818000 { compatible = "atmel,sama5d2-flexcom"; reg = <0xe1818000 0x200>; @@ -475,6 +498,18 @@ trng: rng@e2010000 { status = "disabled"; }; + tdes@e2014000 { + compatible = "atmel,at91sam9g46-tdes"; + reg = <0xe2014000 0x100>; + interrupts = ; + dmas = <&dma0 AT91_XDMAC_DT_PERID(54)>, + <&dma0 AT91_XDMAC_DT_PERID(53)>; + dma-names = "tx", "rx"; + clocks = <&pmc PMC_TYPE_PERIPHERAL 96>; + clock-names = "tdes_clk"; + status = "okay"; + }; + flx4: flexcom@e2018000 { compatible = "atmel,sama5d2-flexcom"; reg = <0xe2018000 0x200>;