From patchwork Mon Jul 11 08:57:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 12913175 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 18BFEC43334 for ; Mon, 11 Jul 2022 08:58:59 +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:References:In-Reply-To: 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: List-Owner; bh=4BYkj6aJ/aJfhi2Ffa/0NG78A3AXdmJ/TzFw1m5GQck=; b=CX7q3B6qMr3XWC aclWM8UtjWQR6fLsQi/qkfJugPkcMuWKxydGU7rrsUua7YEZuw8TF2y/AcIe0pCxUHK0x6/YmhmkD lVLvCK5k2nKFC+Zg+UuW6hrEP6TtmpW6jzikchaGiTypV2zp/+jHZS7UwkIpusfDsbWaZXWnCiHpc 5Kl3WnekqNJ5YcKHZhiF6Igwj3Z08RPzp9GIJpv/thUg2l1EREWx9o/2OnUU5Mzt33VozM2KejowX 9M8XQG/jNpnqufx/qrKJ9efzd+lQYQiQ2euGGMx7CUaOl7FPyT6J7VM9WdHej9w7kPYnxMUL0ZkAi HiAxeEOmUtCTcpBTonYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oApEv-00HPnH-RJ; Mon, 11 Jul 2022 08:58:01 +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 1oApEs-00HPk7-8o for linux-arm-kernel@lists.infradead.org; Mon, 11 Jul 2022 08:57:59 +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 26B8vknN040990; Mon, 11 Jul 2022 03:57:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1657529866; bh=UinwLqd6zWhyZIOTuXz8QUpJHoWQPFqGR0Yqkfs0HPs=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=V32UnphGTTcGrTPDHwB6OP/1yXkqODwH5efMld2ZeTgHkTQA6w/455V7Car26XV5M WvAIfn+jgmKCBWFm9skHLslyi6HX2yWVcO6q25OfPamO+PZqzqO3cdQ2la62gMTCmQ KzZOaMhCHBrn1rg0tszWZ9XezbLBLt/l7T340cIA= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 26B8vkPR077587 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 11 Jul 2022 03:57:46 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) 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; Mon, 11 Jul 2022 03:57:46 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE114.ent.ti.com (10.64.6.35) 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; Mon, 11 Jul 2022 03:57:46 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 26B8vj2f008185; Mon, 11 Jul 2022 03:57:46 -0500 From: Jayesh Choudhary To: , , CC: , , , , , Subject: [PATCH v2 1/2] arm64: dts: ti: k3-am64: Add SA2UL address space to Main CBASS ranges Date: Mon, 11 Jul 2022 14:27:42 +0530 Message-ID: <20220711085743.10128-2-j-choudhary@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220711085743.10128-1-j-choudhary@ti.com> References: <20220711085743.10128-1-j-choudhary@ti.com> 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-20220711_015758_381469_0EE4984F X-CRM114-Status: UNSURE ( 9.07 ) 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 From: Suman Anna Add the address space for the SA2UL in MAIN domain to the ranges property of the cbass_main interconnect node so that the addresses within the corresponding sram nodes and its children can be translated properly by the relevant OF address API. Signed-off-by: Suman Anna Signed-off-by: Jayesh Choudhary Reviewed-by: Kamlesh Gurudasani --- arch/arm64/boot/dts/ti/k3-am64.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/ti/k3-am64.dtsi b/arch/arm64/boot/dts/ti/k3-am64.dtsi index 016dd8511ca6..c858725133af 100644 --- a/arch/arm64/boot/dts/ti/k3-am64.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64.dtsi @@ -82,6 +82,7 @@ <0x00 0x3b000000 0x00 0x3b000000 0x00 0x00000400>, /* GPMC0_CFG */ <0x00 0x3cd00000 0x00 0x3cd00000 0x00 0x00000200>, /* TIMERMGR0_CONFIG */ <0x00 0x3f004000 0x00 0x3f004000 0x00 0x00000400>, /* GICSS0_REGS */ + <0x00 0x40900000 0x00 0x40900000 0x00 0x00030000>, /* SA2_UL0 */ <0x00 0x43000000 0x00 0x43000000 0x00 0x00020000>, /* CTRL_MMR0 */ <0x00 0x44043000 0x00 0x44043000 0x00 0x00000fe0>, /* TI SCI DEBUG */ <0x00 0x48000000 0x00 0x48000000 0x00 0x06400000>, /* DMASS */ From patchwork Mon Jul 11 08:57:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 12913176 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 D9DB5C43334 for ; Mon, 11 Jul 2022 08:59:07 +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:References:In-Reply-To: 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: List-Owner; bh=3H//uN+nv8zFSTEjiMjiuz0nofIsRo/PRmhMQctwdtE=; b=ToTi005WmKXJvA 8hKw/et/gNa1GuD/2scPuTIX4ZvhNnmI9GqZZi0BQvC2mg4+ty1sQ0vDg+XxuCOJzGHdc+CoTPTtv 7sGOtOrFupyyAO2tTBac7yfQr2F3SCWnBxGzSc4Gshj73jWb7n7fYmvFFKWj5SQWpGhJzAxynL1lr dPF/1ZbtHLYJp2NO8OCdrFMiQj+hFdTEUkk3sQumm50Yrf1/MavDoxSbsn66T6VDWL0UucKJ9Sr71 TQU2dMl7x+NLFsnZ7aEKN03/3qKoTxuiNzxJPrdCEsViCZBWpVVRyNrT/BTGyACW7OCYFMUvsVylR 6orwMr2VbOQAVtIqz+JQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oApF4-00HPqP-4O; Mon, 11 Jul 2022 08:58:10 +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 1oApEs-00HPkE-8n for linux-arm-kernel@lists.infradead.org; Mon, 11 Jul 2022 08:57:59 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 26B8vm8o040995; Mon, 11 Jul 2022 03:57:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1657529868; bh=qrx1CkC1Z0I6PpMOoosSCsb0UbstgFHvsbdiRvadMZE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=LFU+OSCHHfqjORE69oOme70Aobn2C3feZRWiL0BfQxgAh2rmbxLkmttBjQv17+DH4 JlaXlvcsU5MObvXcOeTh/DPu7F5zzcDxdVnti78G5r9/zDAG8jnhITdi80nbgmz4N5 A4ff7Nko8ttGaXgyMXwcbe7E/eLVMGv6BAS5N4gE= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 26B8vmkU068276 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 11 Jul 2022 03:57:48 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Mon, 11 Jul 2022 03:57:48 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE104.ent.ti.com (10.64.6.25) 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; Mon, 11 Jul 2022 03:57:48 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 26B8vllX008198; Mon, 11 Jul 2022 03:57:47 -0500 From: Jayesh Choudhary To: , , CC: , , , , , Subject: [PATCH v2 2/2] arm64: dts: ti: k3-am64-main: Enable crypto accelerator Date: Mon, 11 Jul 2022 14:27:43 +0530 Message-ID: <20220711085743.10128-3-j-choudhary@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220711085743.10128-1-j-choudhary@ti.com> References: <20220711085743.10128-1-j-choudhary@ti.com> 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-20220711_015758_418318_43EE2C27 X-CRM114-Status: UNSURE ( 9.54 ) 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 From: Peter Ujfalusi Add the node for SA2UL. Signed-off-by: Peter Ujfalusi [s-anna@ti.com: drop label, minor cleanups] Signed-off-by: Suman Anna [j-choudhary@ti.com: disable rng-node, change flag to shared] Signed-off-by: Jayesh Choudhary Reviewed-by: Kamlesh Gurudasani --- arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi index ada00575f0f2..06fada0d82b1 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi @@ -1308,4 +1308,24 @@ interrupt-names = "int0", "int1"; bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; }; + + crypto: crypto@40900000 { + compatible = "ti,am64-sa2ul"; + reg = <0x00 0x40900000 0x00 0x1200>; + power-domains = <&k3_pds 133 TI_SCI_PD_SHARED>; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x40900000 0x00 0x40900000 0x00 0x30000>; + dmas = <&main_pktdma 0xc001 0>, <&main_pktdma 0x4002 0>, + <&main_pktdma 0x4003 0>; + dma-names = "tx", "rx1", "rx2"; + + rng: rng@40910000 { + compatible = "inside-secure,safexcel-eip76"; + reg = <0x00 0x40910000 0x00 0x7d>; + interrupts = ; + clocks = <&k3_clks 133 0>; + status = "disabled"; /* Used by OP-TEE */ + }; + }; };