From mboxrd@z Thu Jan 1 00:00:00 1970 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 20B0AC001DB for ; Tue, 8 Aug 2023 12:08:47 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:CC:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Nf13C/VGSVzpBgcS2oVp0iOo0cytmum/3nnP97YEGFQ=; b=VPMhMIWo/P/NYU ALmnDluYwyGVsOtskgOeDmy6dwWI4hnA1kO7q/OHec7NzmdfTuNKZZZCIRevj1df0f2zVY3OTnuWx 1bFh+db96MkTeC16FgG3id6JISkojcLsDR6UTTp+dwvK/ulVpqE6PcZrTLLQT71Y8adWkP7QM3+GP NWb8eBTbHqjcKXOPfK83/Na0LihUC61DveYnpaoauwXIK5v06NckxST264tMuaNAXCJr2EKzODRW/ n/jX62Ewxvriym10dZlfUvl9bzia2uhihQg0g3+FVP54jSIHJKWNC0EAioFCT9Ndy8k18u3rqfmbu wAjf13ZFx42JcoC07lVQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qTLVb-002XGt-0K; Tue, 08 Aug 2023 12:08:19 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qTLVY-002XG6-3B for linux-arm-kernel@lists.infradead.org; Tue, 08 Aug 2023 12:08:18 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 378C87DW006713; Tue, 8 Aug 2023 07:08:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691496487; bh=VnOCs6UaJwX+cbaWHIHII7/eUBileZ4AqfuZy1fwOkg=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=eEfKxtcvjyIfdPz0HYNI2Ssmg9LVHvS8gqZze2WwerEu1JStcoUk9LTBsrBuFtFmF SNTAogfdzvcPqZFVKVvg6TXhLT/FaiHk3qpUjbfpLQwa7irSloT6XfIp+jYiAk9/zh VnpsDviloZnI/q6pO3eaD6nxTjAssanI+hGJHR6k= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 378C87e3080374 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 8 Aug 2023 07:08:07 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 8 Aug 2023 07:08:06 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 8 Aug 2023 07:08:06 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 378C86CT032757; Tue, 8 Aug 2023 07:08:06 -0500 Date: Tue, 8 Aug 2023 07:08:06 -0500 From: Nishanth Menon To: Hari Nagalla CC: , , , , , , , , , , , , Subject: Re: [PATCH v5 3/5] arm64: dts: ti: k3-am64 : Add M4F remote proc node Message-ID: <20230808120806.5ymcvsqgg2kv65qq@arson> References: <20230808044529.25925-1-hnagalla@ti.com> <20230808044529.25925-4-hnagalla@ti.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230808044529.25925-4-hnagalla@ti.com> 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-20230808_050817_107521_C6E6FF7F X-CRM114-Status: GOOD ( 22.37 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 23:45-20230807, Hari Nagalla wrote: > The AM64x SoCs of the TI K3 family have a Cortex M4F core in the MCU > domain. This core can be used by non safety applications as a remote > processor. When used as a remote processor with virtio/rpmessage IPC, > two carveout reserved memory nodes are needed. The first region is used > as a DMA pool for the rproc device, and the second region will furnish > the static carveout regions for the firmware memory. > > The current carveout addresses and sizes are defined statically for > each rproc device. The M4F processor do not have an MMU, and as such > require the exact memory used by the firmware to be set-aside. > > Signed-off-by: Hari Nagalla > --- > Changes in v5: > - Add M4F device node patches to the patch list This will need to be reviewed after driver changes are complete and should go through the SoC tree. > > arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi | 12 ++++++++++++ > arch/arm64/boot/dts/ti/k3-am642-evm.dts | 18 ++++++++++++++++++ > arch/arm64/boot/dts/ti/k3-am642-sk.dts | 18 ++++++++++++++++++ > 3 files changed, 48 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi b/arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi > index 686d49790721..4151d0057bc8 100644 > --- a/arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi > @@ -158,4 +158,16 @@ mcu_esm: esm@4100000 { > reg = <0x00 0x4100000 0x00 0x1000>; > ti,esm-pins = <0>, <1>; > }; > + > + mcu_m4fss: m4fss@5000000 { > + compatible = "ti,am64-m4fss"; > + reg = <0x00 0x5000000 0x00 0x30000>, > + <0x00 0x5040000 0x00 0x10000>; > + reg-names = "iram", "dram"; > + ti,sci = <&dmsc>; > + ti,sci-dev-id = <9>; > + ti,sci-proc-ids = <0x18 0xff>; > + resets = <&k3_reset 9 1>; > + firmware-name = "am64-mcu-m4f0_0-fw"; > + }; > }; > diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm.dts b/arch/arm64/boot/dts/ti/k3-am642-evm.dts > index d84e7ee16032..4fd1dc162534 100644 > --- a/arch/arm64/boot/dts/ti/k3-am642-evm.dts > +++ b/arch/arm64/boot/dts/ti/k3-am642-evm.dts > @@ -99,6 +99,18 @@ main_r5fss1_core1_memory_region: r5f-memory@a3100000 { > no-map; > }; > > + mcu_m4fss_dma_memory_region: m4f-dma-memory@a4000000 { > + compatible = "shared-dma-pool"; > + reg = <0x00 0xa4000000 0x00 0x100000>; > + no-map; > + }; > + > + mcu_m4fss_memory_region: m4f-memory@a4100000 { > + compatible = "shared-dma-pool"; > + reg = <0x00 0xa4100000 0x00 0xf00000>; > + no-map; > + }; > + > rtos_ipc_memory_region: ipc-memories@a5000000 { > reg = <0x00 0xa5000000 0x00 0x00800000>; > alignment = <0x1000>; > @@ -639,6 +651,12 @@ &main_r5fss1_core1 { > <&main_r5fss1_core1_memory_region>; > }; > > +&mcu_m4fss { > + mboxes = <&mailbox0_cluster6>, <&mbox_m4_0>; > + memory-region = <&mcu_m4fss_dma_memory_region>, > + <&mcu_m4fss_memory_region>; > +}; > + > &serdes_ln_ctrl { > idle-states = ; > }; > diff --git a/arch/arm64/boot/dts/ti/k3-am642-sk.dts b/arch/arm64/boot/dts/ti/k3-am642-sk.dts > index 963d796a3a97..f919dd5ba9ba 100644 > --- a/arch/arm64/boot/dts/ti/k3-am642-sk.dts > +++ b/arch/arm64/boot/dts/ti/k3-am642-sk.dts > @@ -98,6 +98,18 @@ main_r5fss1_core1_memory_region: r5f-memory@a3100000 { > no-map; > }; > > + mcu_m4fss_dma_memory_region: m4f-dma-memory@a4000000 { > + compatible = "shared-dma-pool"; > + reg = <0x00 0xa4000000 0x00 0x100000>; > + no-map; > + }; > + > + mcu_m4fss_memory_region: m4f-memory@a4100000 { > + compatible = "shared-dma-pool"; > + reg = <0x00 0xa4100000 0x00 0xf00000>; > + no-map; > + }; > + > rtos_ipc_memory_region: ipc-memories@a5000000 { > reg = <0x00 0xa5000000 0x00 0x00800000>; > alignment = <0x1000>; > @@ -637,6 +649,12 @@ &main_r5fss1_core1 { > <&main_r5fss1_core1_memory_region>; > }; > > +&mcu_m4fss { > + mboxes = <&mailbox0_cluster6>, <&mbox_m4_0>; > + memory-region = <&mcu_m4fss_dma_memory_region>, > + <&mcu_m4fss_memory_region>; > +}; > + > &ecap0 { > status = "okay"; > /* PWM is available on Pin 1 of header J3 */ > -- > 2.34.1 > -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel