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 F1F5FC4167B for ; Tue, 5 Dec 2023 17:26:46 +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-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:CC:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9yrH245cz2b25Qq0OrU2Y+mnnapQc4/Y0kPoRpOJti8=; b=CfJdYgOJNuyvVo qMb4MQmWa//pn25l3Gvn8pmD1p7TbWd8oV5AssinlI/3DSjU6lwoSTiTLDAeH9+e+g28wToaxgbiK I5tgjk1ptujwHJOVKzVWi4c3YTueotGCGEYjR+6k57/3lvrPB1nMUEGpvWnAc2C25YxEzCiWyPd2e RP6jivW5jd9nbCHtlhwmrGD9zqGQ8Os4kC1se1R5xhRH/t1u7qoEUrbbUnyKmieu9ecj9g33QzyLn xoLovsz2y/+q+bHv0YET1GxBV/vxryN9Xd5zRQ4jH1Hsju2VBjR0NCkt2H3//1VpA4X5YTyqlGK1n 5FJPdOqLQ4ZvvfJ/fe8w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rAZBU-0081wn-2c; Tue, 05 Dec 2023 17:26:12 +0000 Received: from mickerik.phytec.de ([91.26.50.163]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rAZBR-0081wB-3C for linux-arm-kernel@lists.infradead.org; Tue, 05 Dec 2023 17:26:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1701797162; x=1704389162; 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=LYYTLO6Sh4+IUIm2LAGszv/f3IENIM+6WU7U5kxRJ1o=; b=IhW1N+WZf5uhyvT3FREO/MTFzVwXWdHc2HiY8Be74JJQABtSgIExF059RIj1jHMx xoB+pdbgjHpBX8g2RQGlN3HS6DSMW+IrZr2XA29dqle/NsES6qAsSPSg3DeTV5H8 8m+Dl7TfVKeCL+WiMGCCb25PmhpB0rZ4Z9inKQq4x7g=; X-AuditID: ac14000a-fadff7000000290d-4a-656f5d2aca27 Received: from florix.phytec.de (Unknown_Domain [172.25.0.13]) (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 87.41.10509.A2D5F656; Tue, 5 Dec 2023 18:26:02 +0100 (CET) Received: from [172.25.39.28] (172.25.0.11) by Florix.phytec.de (172.25.0.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.6; Tue, 5 Dec 2023 18:26:01 +0100 Message-ID: <136b3721-2ea7-488a-89cc-cc74f631f5fc@phytec.de> Date: Tue, 5 Dec 2023 18:26:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] arm64: dts: ti: phycore-am64: Add R5F DMA Region and Mailboxes Content-Language: en-US To: Garrett Giordano , , , , , , , CC: , , , References: <20231204212304.1736306-1-ggiordano@phytec.com> From: Wadim Egorov In-Reply-To: <20231204212304.1736306-1-ggiordano@phytec.com> X-Originating-IP: [172.25.0.11] X-ClientProxiedBy: Florix.phytec.de (172.25.0.13) To Florix.phytec.de (172.25.0.13) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHIsWRmVeSWpSXmKPExsWyRpKBV1crNj/VYNlMM4s1e88xWcw/co7V Yv2W32wWyz/PZrfoe/GQ2WLT42usFpd3zWGzePPjLJNF1+t2dovWvUfYLbrfqVv8P/uB3YHH Y9OqTjaPO9f2sHlsXlLv0d/dwurx5+I7Vo/jN7YzeXzeJBfAHsVlk5Kak1mWWqRvl8CVce3G DraCPuWKk2u3MzcwXpfuYuTkkBAwkbi1rYuxi5GLQ0hgMZPEiekz2SCcO4wStz6cZQWp4hWw kTgzYz8jiM0ioCIx/fJ/doi4oMTJmU9YQGxRAXmJ+7dmgMWFBUIlDsxaARZnFhCXuPVkPhPI UBGBC4wSdw/1g21gFmhjlHjy8AAzSJWQgLXE11d7wDawCahL3NnwDWwzJ9DmKTM3sUNMspBY /OYglC0vsf3tHKheeYkXl5azQPwjLzHt3GtmCDtUYv6a7+wTGIVnITl2FpKjZiEZOwvJ2AWM LKsYhXIzk7NTizKz9QoyKktSk/VSUjcxguJQhIFrB2PfHI9DjEwcjIcYJTiYlUR4593KThXi TUmsrEotyo8vKs1JLT7EKM3BoiTOu7ojOFVIID2xJDU7NbUgtQgmy8TBKdXAGHT5+YcvVoHz Z7Ce0HR487TT3N4h5OH3snVNezZ9zv91iDk/JHF/TeGpQvYDrrNUj7st5dihVbjx23y+PwJz 88o+dAm7RnJsZ4xvPvXVfvu8VKOOmByrvCvcu99VcZXzWbFOtD2/9DerBF/wU8vqM2faWR+9 L36997xl2+uPE849Wn2L50XAViWW4oxEQy3mouJEAEUTIPyxAgAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231205_092610_177838_211BF3A0 X-CRM114-Status: GOOD ( 15.74 ) 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Am 04.12.23 um 22:23 schrieb Garrett Giordano: > Communication between the R5F subsystem and Linux takes place using DMA > memory regions and mailboxes. Here we add DT nodes for the memory > regions and mailboxes to facilitate communication between the R5 > clusters and Linux as remoteproc will fail to start if no memory > regions or mailboxes are provided. > > Fixes: c48ac0efe6d7 ("arm64: dts: ti: Add support for phyBOARD-Electra-AM642") > Signed-off-by: Garrett Giordano Reviewed-by: Wadim Egorov > --- > .../boot/dts/ti/k3-am64-phycore-som.dtsi | 102 +++++++++++++++++- > 1 file changed, 101 insertions(+), 1 deletion(-) > > 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 1c2c8f0daca9..37a33006c1fc 100644 > --- a/arch/arm64/boot/dts/ti/k3-am64-phycore-som.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-am64-phycore-som.dtsi > @@ -29,7 +29,7 @@ memory@80000000 { > reg = <0x00000000 0x80000000 0x00000000 0x80000000>; > }; > > - reserved-memory { > + reserved_memory: reserved-memory { > #address-cells = <2>; > #size-cells = <2>; > ranges; > @@ -39,6 +39,54 @@ secure_ddr: optee@9e800000 { > alignment = <0x1000>; > no-map; > }; > + > + main_r5fss0_core0_dma_memory_region: r5f-dma-memory@a0000000 { > + compatible = "shared-dma-pool"; > + reg = <0x00 0xa0000000 0x00 0x100000>; > + no-map; > + }; > + > + main_r5fss0_core0_memory_region: r5f-memory@a0100000 { > + compatible = "shared-dma-pool"; > + reg = <0x00 0xa0100000 0x00 0xf00000>; > + no-map; > + }; > + > + main_r5fss0_core1_dma_memory_region: r5f-dma-memory@a1000000 { > + compatible = "shared-dma-pool"; > + reg = <0x00 0xa1000000 0x00 0x100000>; > + no-map; > + }; > + > + main_r5fss0_core1_memory_region: r5f-memory@a1100000 { > + compatible = "shared-dma-pool"; > + reg = <0x00 0xa1100000 0x00 0xf00000>; > + no-map; > + }; > + > + main_r5fss1_core0_dma_memory_region: r5f-dma-memory@a2000000 { > + compatible = "shared-dma-pool"; > + reg = <0x00 0xa2000000 0x00 0x100000>; > + no-map; > + }; > + > + main_r5fss1_core0_memory_region: r5f-memory@a2100000 { > + compatible = "shared-dma-pool"; > + reg = <0x00 0xa2100000 0x00 0xf00000>; > + no-map; > + }; > + > + main_r5fss1_core1_dma_memory_region: r5f-dma-memory@a3000000 { > + compatible = "shared-dma-pool"; > + reg = <0x00 0xa3000000 0x00 0x100000>; > + no-map; > + }; > + > + main_r5fss1_core1_memory_region: r5f-memory@a3100000 { > + compatible = "shared-dma-pool"; > + reg = <0x00 0xa3100000 0x00 0xf00000>; > + no-map; > + }; > }; > > leds { > @@ -160,6 +208,34 @@ &cpsw_port2 { > status = "disabled"; > }; > > +&mailbox0_cluster2 { > + status = "okay"; > + > + mbox_main_r5fss0_core0: mbox-main-r5fss0-core0 { > + ti,mbox-rx = <0 0 2>; > + ti,mbox-tx = <1 0 2>; > + }; > + > + mbox_main_r5fss0_core1: mbox-main-r5fss0-core1 { > + ti,mbox-rx = <2 0 2>; > + ti,mbox-tx = <3 0 2>; > + }; > +}; > + > +&mailbox0_cluster4 { > + status = "okay"; > + > + mbox_main_r5fss1_core0: mbox-main-r5fss1-core0 { > + ti,mbox-rx = <0 0 2>; > + ti,mbox-tx = <1 0 2>; > + }; > + > + mbox_main_r5fss1_core1: mbox-main-r5fss1-core1 { > + ti,mbox-rx = <2 0 2>; > + ti,mbox-tx = <3 0 2>; > + }; > +}; > + > &main_i2c0 { > status = "okay"; > pinctrl-names = "default"; > @@ -180,6 +256,30 @@ i2c_som_rtc: rtc@52 { > }; > }; > > +&main_r5fss0_core0 { > + mboxes = <&mailbox0_cluster2 &mbox_main_r5fss0_core0>; > + memory-region = <&main_r5fss0_core0_dma_memory_region>, > + <&main_r5fss0_core0_memory_region>; > +}; > + > +&main_r5fss0_core1 { > + mboxes = <&mailbox0_cluster2 &mbox_main_r5fss0_core1>; > + memory-region = <&main_r5fss0_core1_dma_memory_region>, > + <&main_r5fss0_core1_memory_region>; > +}; > + > +&main_r5fss1_core0 { > + mboxes = <&mailbox0_cluster4 &mbox_main_r5fss1_core0>; > + memory-region = <&main_r5fss1_core0_dma_memory_region>, > + <&main_r5fss1_core0_memory_region>; > +}; > + > +&main_r5fss1_core1 { > + mboxes = <&mailbox0_cluster4 &mbox_main_r5fss1_core1>; > + memory-region = <&main_r5fss1_core1_dma_memory_region>, > + <&main_r5fss1_core1_memory_region>; > +}; > + > &ospi0 { > status = "okay"; > pinctrl-names = "default"; _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel