From patchwork Tue Jun 28 05:45:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 12897727 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 773DEC43334 for ; Tue, 28 Jun 2022 05:47:27 +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=mCrF3tOLkof8R8YVilRUPdaxknJJHvLhP/XDFeOa+HA=; b=oCH+4/ywtJhwPr 6+T7dUiz72G05rKxU4YxpjIwgwp1XdyEpErQFGJMd/xAgpZ5cslzp22QDdaZDb3khTEDRrb0JfLZs Jwy1+d2p164M4iEHqIUIDXGmOCcaH0oW/wJRee6TJSuxG2d/F1gSJlPrF/lgqtfcJ6i43pz5v+KRg Mu+nmlldvl1UIdmZFVul1XGijOGzJ72Ij25QVpL2h9dfLHzvWaKJfajNY54fSpydb3OderSdTpH8C v7M3VLVUIM7fYSxD/oWPH8DyDeG6DFratVeeBvHxk24nRT4ucUs4a3oHCbgvEZx0nWnDZhVTJPi24 UMthbhOMJfshw7liTmoA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o643J-004QfN-EK; Tue, 28 Jun 2022 05:46:21 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o642S-004QGd-E5 for linux-arm-kernel@lists.infradead.org; Tue, 28 Jun 2022 05:45:30 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 25S5jK6L068682; Tue, 28 Jun 2022 00:45:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1656395120; bh=ZOFIzzxgdd4Ofgh8k/nCeoLR+zNbypkEb0hbyzA2ft0=; h=From:To:CC:Subject:Date; b=EMWHXWA5ZXZ+cRcTmpjImd4FLaLRVdAKlQV64aMGKI617GJfoQ2N+jADltGrdYMqH twwbEZnXNQRantzdZAGDtXiX170/C7Uz0WHnlpT2IWKjUKEiYmsFIN5ExonaajRclQ 50pt+IOKmr5tEs7okRLO4OQ5Fke30tI6bH+sRoSo= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 25S5jKKf014983 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 28 Jun 2022 00:45:20 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Tue, 28 Jun 2022 00:45:19 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Tue, 28 Jun 2022 00:45:19 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 25S5jJTJ030296; Tue, 28 Jun 2022 00:45:19 -0500 From: Jayesh Choudhary To: CC: , , , , , , , Subject: [PATCH] arm64: dts: ti: k3-j721s2-main: Enable crypto accelerator Date: Tue, 28 Jun 2022 11:15:18 +0530 Message-ID: <20220628054518.350717-1-j-choudhary@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220627_224528_590429_28C60616 X-CRM114-Status: GOOD ( 10.79 ) 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 Add the node for SA2UL for supporting hardware crypto algorithms, including SHA1, SHA256, SHA512, AES, 3DES and AEAD suites. Signed-off-by: Jayesh Choudhary --- There is a dependency of this patch on a dmaengine patch: This patch adds the PSIL threads for main domain SA2UL. Without the above patch, dma-controller fails to get the channel and tcrypt module does software crypto. But it does not break boot since its runtime and not compile-time. Testing log: arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi index 34e7d577ae13..79ca34a7e34f 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi @@ -72,6 +72,20 @@ pinctrl-single,function-mask = <0xffffffff>; }; + main_crypto: crypto@4e00000 { + compatible = "ti,j721e-sa2ul"; + reg = <0x00 0x4e00000 0x00 0x1200>; + power-domains = <&k3_pds 297 TI_SCI_PD_SHARED>; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x04e00000 0x00 0x04e00000 0x00 0x30000>; + + dmas = <&main_udmap 0xca40>, <&main_udmap 0x4a40>, + <&main_udmap 0x4a41>; + dma-names = "tx", "rx1", "rx2"; + dma-coherent; + }; + main_uart0: serial@2800000 { compatible = "ti,j721e-uart", "ti,am654-uart"; reg = <0x00 0x02800000 0x00 0x200>;