From patchwork Fri Jun 24 04:39:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 12893690 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 C9ED6C43334 for ; Fri, 24 Jun 2022 04:40: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=g8z+umOpWFAvwj7LqizIEfQAZ8y7zflmBknaIV44KGo=; b=x8WoDMlYR1P/TG 6B0DTCtYZN6U5LTshx3+JcS/elGvJ7CQq6ZYGXKbOY5ICvwdd3uBTlSdRFZlMGwPR1htbcwGBY+Yj /npKvzmakBWunZVBU95vQ++82stWmT4XS+YOXXpCHea+UmcQKjE8v89wc22LJApCob/0u9o/Ui249 4DmdYpCRy9k/JmdVVN1KRWnNEYEQyzNQaCdc/EE+kS93NARRalvzaSgJcq/qYuF02TuiNq71QJVTf nOB4sr6XkYhGt2p5p+75Q0uThBHO5+NtcVfrlSK1+/Nb/++FM9q8/JfJ1TYMkeanikwPaKF5ImVzz Et7DGrReWSAy1QpQHSUQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4b6F-000DNN-GR; Fri, 24 Jun 2022 04:39:19 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4b6B-000DLs-CO for linux-arm-kernel@lists.infradead.org; Fri, 24 Jun 2022 04:39:16 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 25O4d6qS068763; Thu, 23 Jun 2022 23:39:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1656045546; bh=Qr7kwL8JoQVm3lN/8hS8jovzJ7eb7o2KHm2DeVEvAWU=; h=From:To:CC:Subject:Date; b=Ta3MbIfGZIeJ9bSjXBbGrMG5kKQD0/UF6u6aKdCGmIKqzG+gHD6BGgGRSL38c4FL4 Zt0lKkjRdqn+BE1LQvzD7l0tom+b0A3sWclizsulsE1XzuAHdh+uDOqDZxjWT7Cp1N xVAyXqoB71K1SEDr9Caj/++LYIaKpPrFOSd2AZ1k= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 25O4d6qC023184 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 23 Jun 2022 23:39:06 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Thu, 23 Jun 2022 23:39:06 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE102.ent.ti.com (10.64.6.23) 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; Thu, 23 Jun 2022 23:39:06 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 25O4d547018862; Thu, 23 Jun 2022 23:39:05 -0500 From: Jayesh Choudhary To: CC: , , , , , , , Subject: [PATCH v2] arm64: dts: ti: k3-am62-main: Enable crypto accelerator Date: Fri, 24 Jun 2022 10:09:05 +0530 Message-ID: <20220624043905.129207-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-20220623_213915_606032_67471D08 X-CRM114-Status: GOOD ( 10.93 ) 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 sa3ul crypto accelerator. Signed-off-by: Jayesh Choudhary --- On local testing, crypto self-tests and tcrypt tests were passing for SHA256, SHA512, ECB-AES and CBC-AES algorithms. RNG node has not been added due to the indirect access of the hardware random number generator from OP-TEE. Changelog v1->v2: - Change the flag from TI_SCI_PD_EXCLUSIVE to TI_SCI_PD_SHARED since sa3ul hardware is also used by OP-TEE and so it should be requested using shared TI-SCI flag arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi index df3b9883e887..8bb9cb5d4c1a 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi @@ -165,6 +165,19 @@ }; }; + crypto: crypto@40900000 { + compatible = "ti,am62-sa3ul"; + reg = <0x00 0x40900000 0x00 0x1200>; + power-domains = <&k3_pds 70 TI_SCI_PD_SHARED>; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x40900000 0x00 0x40900000 0x00 0x30000>; + + dmas = <&main_pktdma 0xf501 0>, <&main_pktdma 0x7506 0>, + <&main_pktdma 0x7507 0>; + dma-names = "tx", "rx1", "rx2"; + }; + main_pmx0: pinctrl@f4000 { compatible = "pinctrl-single"; reg = <0x00 0xf4000 0x00 0x2ac>;