From patchwork Wed Sep 11 12:42:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wadim Egorov X-Patchwork-Id: 13800506 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 9E63DEE499D for ; Wed, 11 Sep 2024 12:45:00 +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: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=slzBr5ofOXIbaO0C4oMrV+hQd8/b9+oHnHk6jwXMf6s=; b=pvbo8IgbsfR3+sb/lrD55IeGtJ xJEj+YB8RM9I+KmwKp6XToHFe9Rtme6DfOmk7WLbMen5rhtaSnyC9o/Ocve5G+yg1eEB+JCVLTT2v hNJLNU+c6/uI5zbNJnHqApOoG2IlJ5WnRaSUvDi7IyW3dxTjXEWDzBv0aygZin3uC9QRviUvmavOp QIzt7iTWfbD6lm/JTyiSnUeW8ZhEQC7S7ghu2M2efMjRcuF4ffMsG6P93IoQi/YJsveTy9nawXVLu 1Y5m2zgOCa8l33xuH2/UvuC6DtkGRaMnHOXcuz9NZAsbuutIt9DB+X11qj8/4940UlhUWLff4ryFr RvotRg+Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soMiH-00000009Xtq-3V0s; Wed, 11 Sep 2024 12:44:50 +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 1soMgg-00000009XaG-3B4T for linux-arm-kernel@lists.infradead.org; Wed, 11 Sep 2024 12:43:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1726058585; x=1728650585; 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=H9016pDN+jnRk7afjG42UwRS+TxBKUvEeWbGSrqKomQ=; b=gY9oOD/Xt73+euTy58ORHsy/weqhaTgWe3duHlVnA2c8pk1hX0s1M8W9B3cedMXF 0de/iviFAQ2s5Oggm7sMxQAGyB9WXe360r2pCvbAKwm+xgIAV4nFsGeMP4ZhCb4M Xs/rMMvV0lGdH0fCn4by8PuymrR9BtvZ6Vg5TRhDyPM=; X-AuditID: ac14000a-4637f70000004e2a-df-66e19059ef28 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 3A.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 1/3] arm64: dts: ti: k3-am62-phycore-som: Add M4F remoteproc nodes Date: Wed, 11 Sep 2024 14:42:49 +0200 Message-ID: <20240911124251.702590-1-w.egorov@phytec.de> X-Mailer: git-send-email 2.25.1 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+NgFrrBLMWRmVeSWpSXmKPExsWyRpKBRzdywsM0g7+njCzW7D3HZDH/yDlW i+WfZ7NbvJx1j81i0+NrrBaXd81hs3jz4yyTxf89O9gtut+pW/w/+4Hdgctj06pONo/NS+o9 +rtbWD2O39jO5PF5k1wAaxSXTUpqTmZZapG+XQJXxuHfuxkLbgtU/Dz4hLGBcS9vFyMHh4SA icTVY4VdjFwcQgJLmCRmT2ljhnAeM0qsP7KXqYuRk4NNQF3izoZvrCAJEYE2RomVf6+zgTjM ApMYJS78+8kCUiUsECTR8+AHWAeLgKrEm+O/2EFW8ApYSKx4JQ0SlhCQl5h56Ts7iM0rIChx cuYTsFZmoHjz1tnMELaExMEXL8BsIaD4i0vLWWB6p517zQxhh0ps/bKdaQKjwCwko2YhGTUL yagFjMyrGIVyM5OzU4sys/UKMipLUpP1UlI3MYJCX4SBawdj3xyPQ4xMHIyHGCU4mJVEePvt 7qUJ8aYkVlalFuXHF5XmpBYfYpTmYFES513dEZwqJJCeWJKanZpakFoEk2Xi4JRqYKx5PKXg nZ3V8+OdTM46hiHyDRzuL28vl/A47+5bELpRKX2dq0x8mK6F7v95nh8viOzp40+5EeCnsdbJ T9tY94LcNf6U+3eYbqdNOfGk6OxNf6cojexnG2Jt55o1Zbo2OslVyytZHNiw5UxIUcxcGV+P SsezNqfYjad466tyTF5vLXXrpusuJZbijERDLeai4kQAODGEDWsCAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240911_054311_256577_36DE40C9 X-CRM114-Status: GOOD ( 12.54 ) 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 AM62x 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-am62-phycore-som.dtsi | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62-phycore-som.dtsi b/arch/arm64/boot/dts/ti/k3-am62-phycore-som.dtsi index 43488cc8bcb1..bbf99938c187 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-phycore-som.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-phycore-som.dtsi @@ -45,6 +45,18 @@ ramoops@9ca00000 { pmsg-size = <0x8000>; }; + mcu_m4fss_dma_memory_region: m4f-dma-memory@9cb00000 { + compatible = "shared-dma-pool"; + reg = <0x00 0x9cb00000 0x00 0x100000>; + no-map; + }; + + mcu_m4fss_memory_region: m4f-memory@9cc00000 { + compatible = "shared-dma-pool"; + reg = <0x00 0x9cc00000 0x00 0xe00000>; + no-map; + }; + secure_tfa_ddr: tfa@9e780000 { reg = <0x00 0x9e780000 0x00 0x80000>; alignment = <0x1000>; @@ -196,6 +208,13 @@ cpsw3g_phy1: ethernet-phy@1 { }; }; +&mailbox0_cluster0 { + mbox_m4_0: mbox-m4-0 { + ti,mbox-rx = <0 0 0>; + ti,mbox-tx = <1 0 0>; + }; +}; + &main_i2c0 { pinctrl-names = "default"; pinctrl-0 = <&main_i2c0_pins_default>; @@ -295,6 +314,13 @@ i2c_som_rtc: rtc@52 { }; }; +&mcu_m4fss { + mboxes = <&mailbox0_cluster0 &mbox_m4_0>; + memory-region = <&mcu_m4fss_dma_memory_region>, + <&mcu_m4fss_memory_region>; + status = "okay"; +}; + &ospi0 { pinctrl-names = "default"; pinctrl-0 = <&ospi0_pins_default>;