From patchwork Wed Sep 11 12:42:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wadim Egorov X-Patchwork-Id: 13800507 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 6FB17EE499F for ; Wed, 11 Sep 2024 12:46:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=1NTIxcRrQ9lubWOgmIprF/uLQJGp+LNUJGmvBE5+09I=; b=IBr+XtcLIvtzgDocqY0k7cfEOp 3Xh0WsFtGd1PgNpmZzoMT0FtSQZ/NSeDZy8M5zBWQCPnqC8k6S+5D6GXOXushrDQUZETr1184SD4/ hPOzJ8sPvxjO+QhazfHEog1sxaoY8btTkKmT8p7rxcOdAY5QtuUO70b8W+ctoAHX79YK+vnFuShZr QcCqAhExR+tTF32l4Ns8kMw1Py6j+iqpBLhFlzuTt4t0a4YQPJvup4aRCnpx0KKMSoR3bjmAMSl7Y ZthHChawjPHXct3e72ieVkcv8CEp7i6KiFvzd9uT5/8xbjqCR526I4ciwGN+a3dX2pPHKi8wzE2hS H3VXSV+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soMjI-00000009Y4r-2QpB; Wed, 11 Sep 2024 12:45:52 +0000 Received: from mickerik.phytec.de ([91.26.50.163]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soMgj-00000009XaG-0DRb for linux-arm-kernel@lists.infradead.org; Wed, 11 Sep 2024 12:43:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1726058586; x=1728650586; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:CC:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=BH2ZrelUubVJCF6wTv9S6Cqu7h+JqUuIXV9011jFZ24=; b=IzzA2EBoZBVxYVSe5VLEUjJJbMIvYF78OHPhnguODwpt/SYKQg5DnHXllKAJ0Moi rnRc5OW3K/WQlDXlw3AyTQQNd4d8lCAwVAkj/oNzqOYm8WdSB0C82U/pfeF+VAgg 4MvhsT3LJINycvNIOUiATDhRIGT+2F2k1uEwwpNgVS0=; X-AuditID: ac14000a-4577e70000004e2a-e0-66e1905995fa Received: from berlix.phytec.de (Unknown_Domain [172.25.0.12]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id EA.35.20010.95091E66; Wed, 11 Sep 2024 14:43:05 +0200 (CEST) Received: from augenblix2.phytec.de (172.25.0.11) by Berlix.phytec.de (172.25.0.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.6; Wed, 11 Sep 2024 14:43:05 +0200 From: Wadim Egorov To: , , , CC: , , , , , , Subject: [PATCH 2/3] arm64: dts: ti: k3-am64-phycore-som: Add M4F remoteproc nodes Date: Wed, 11 Sep 2024 14:42:50 +0200 Message-ID: <20240911124251.702590-2-w.egorov@phytec.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240911124251.702590-1-w.egorov@phytec.de> References: <20240911124251.702590-1-w.egorov@phytec.de> MIME-Version: 1.0 X-Originating-IP: [172.25.0.11] X-ClientProxiedBy: Berlix.phytec.de (172.25.0.12) To Berlix.phytec.de (172.25.0.12) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrELMWRmVeSWpSXmKPExsWyRpKBRzdywsM0g02frS3W7D3HZDH/yDlW i+WfZ7NbvJx1j81i0+NrrBaXd81hs3jz4yyTxf89O9gtut+pW/w/+4Hdgctj06pONo/NS+o9 +rtbWD2O39jO5PF5k1wAaxSXTUpqTmZZapG+XQJXxs3LZ1gKXghUvDm5nLWB8SRvFyMnh4SA icTttbuYuxi5OIQEljBJHD/1gA3Cecwosf7IXiaQKjYBdYk7G76xgiREBNoYJVb+vQ5WxSww iVHiwr+fLCBVwgJBEosbHoHZLAKqEl8vr2UHsXkFLCSebN7FDrFPXmLmpe9gNqeApcTzkxvZ QGwhoJpLj1ug6gUlTs58AjaHGai+eetsZghbQuLgixfMEPXyEi8uLWeBmTnt3GtmCDtUYuuX 7UwTGIVmIRk1C8moWUhGLWBkXsUolJuZnJ1alJmtV5BRWZKarJeSuokRFC8iDFw7GPvmeBxi ZOJgPMQowcGsJMLbb3cvTYg3JbGyKrUoP76oNCe1+BCjNAeLkjjv6o7gVCGB9MSS1OzU1ILU IpgsEwenVAOji1SZ+/3N6nNmV1eu3MR2PCxX+lDynKKehM3tk4wZ1jJcDfuxvfRfm0ze51+h /Mvqyp9NSc9drq8rz2A8LcXz9TKGa5/D3Xlr9mf4Bxwyu/lxzjrtQwVRPL3XpVLuKUyprI9N fXNevbKa7+U2zeaHmzfPS4nmUtVe8vZN+w8u5vLfEzfWS21XYinOSDTUYi4qTgQAAnLk+IUC AAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240911_054313_261906_6BE424C4 X-CRM114-Status: GOOD ( 13.20 ) 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 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 does not have an MMU, and as such requires the exact memory used by the firmware to be set-aside. Signed-off-by: Wadim Egorov --- .../boot/dts/ti/k3-am64-phycore-som.dtsi | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am64-phycore-som.dtsi b/arch/arm64/boot/dts/ti/k3-am64-phycore-som.dtsi index ea7c58fb67e2..ea3ce3338783 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-phycore-som.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-phycore-som.dtsi @@ -87,6 +87,18 @@ main_r5fss1_core1_memory_region: r5f-memory@a3100000 { reg = <0x00 0xa3100000 0x00 0xf00000>; 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; + }; }; leds { @@ -242,6 +254,15 @@ mbox_main_r5fss1_core1: mbox-main-r5fss1-core1 { }; }; +&mailbox0_cluster6 { + status = "okay"; + + mbox_m4_0: mbox-m4-0 { + ti,mbox-rx = <0 0 2>; + ti,mbox-tx = <1 0 2>; + }; +}; + &main_i2c0 { status = "okay"; pinctrl-names = "default"; @@ -335,6 +356,13 @@ &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>; + status = "okay"; +}; + &ospi0 { status = "okay"; pinctrl-names = "default";