Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp441595rdb; Tue, 5 Dec 2023 09:27:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IFWtzpNOhR4nD/2fsfVhAHErodettElFNIW5Pvip2lGMGQP8OQYNKnVEXciVvG62OELxsKD X-Received: by 2002:a05:6358:6f86:b0:16d:bb7b:c0a7 with SMTP id s6-20020a0563586f8600b0016dbb7bc0a7mr6889605rwn.10.1701797266480; Tue, 05 Dec 2023 09:27:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701797266; cv=none; d=google.com; s=arc-20160816; b=rDsjwO7dzkru6jdZuiMjnEN4gGFo99AXSrSjlezC7B0rdWKhHLYbqUkcs+ilpVIV3H rE9mmWrjMxU2vyxovx/oxZrlbknCdcBMqI++1Z+kgJqcFO0LVAnIDKaVYlJIxfGt/UZq 01lMmSitw6k1j4bM9nYE3x7fqOU3lQwHuxL6liwueMMtaUwgozfnBKa9R4Qk0vlXUnCI obL40oc3rxlAlEzV7M77DXbOz3DNqIb9M5kuL/Q+J4RFPohOYCSiYohp+mDvtWLAW/iL k4GSsuP7RgSTosJykK8zgqdOVQ+gTFtGcM1wdcuITrlQDWDtpv5dVY556XXc2D0IPJkK gXxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=R9zsRXWWU0BW7BetUL4d1CMS1/HX/dGIgDp8hLVo2Cs=; fh=WtP2AirhzYq6uwd0fIYYaiEZi2YHzp144pUd4UYuSRk=; b=zFDWLMvSv790oTI81DOmHvmuYu/BR+kmgNZgdQAz+t8r3FAD6xX8+QRd/nid/ZfkqU UwkDurPVu7MUHlZgyGN9u7UDWOy9sygJo8ohvOtPzzORMbEalzlcqu8PUzO00lAyZjSH F5/LfhJtDAeJ713sz0btbi0ksjQ9suTyyVr4wSazeLZgW9zw0JbUVV83GVrUp0sdn3gA MPtLvtePtZos13HKhKBRUcaqe68NYZ/9gZcMgqz3mEZP8YYvCNYfAIOhq07g8wfWe6Bl ezGYksBJv/3XMSd5yjIStb4u6DcMSyy4aOsd/hqXkB0aHUgdIwNRjCcblEqLMJc/mlX8 EJiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@phytec.de header.s=a4 header.b=IhW1N+WZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id cu11-20020a056a00448b00b006ce4052d05csi4865168pfb.79.2023.12.05.09.27.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 09:27:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=fail header.i=@phytec.de header.s=a4 header.b=IhW1N+WZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id E080380A8DB2; Tue, 5 Dec 2023 09:26:22 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345246AbjLER0E (ORCPT + 99 others); Tue, 5 Dec 2023 12:26:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235086AbjLER0C (ORCPT ); Tue, 5 Dec 2023 12:26:02 -0500 Received: from mickerik.phytec.de (mickerik.phytec.de [91.26.50.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E54051A1 for ; Tue, 5 Dec 2023 09:26:05 -0800 (PST) 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> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 05 Dec 2023 09:26:23 -0800 (PST) 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";