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 581FEC3ABBE for ; Tue, 6 May 2025 18:17: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-Transfer-Encoding: Content-Type: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=XwFxSS6/0etFSYGRDk49i+vv0sGzyJkpooN2+dhNmek=; b=ZVJO8FnX+Q9G9EewBE7b3A2IB/ +HOMdAwX4xae53mu/NzgRM7qmsWe3ejckTNjkoCfgTzZArtoESriAiv6A2hDbcagdnCIhuRvje3/P SKPnlc2YdWDMAraNRXhNEiT72UI4uzVyYcW4BuXbwGY9sqLfho+XKpSshWTQwwEev0/v7l4K83PKo og4weGIgi0e/Oh0Umfyte63g2GRQ49nFFo6x6nOy/NfDjL7atpD8WFYJEKyVRGarwUrZiZ5wwJ3nu Q2VtRdBgud+HHax6ZA4XGMW7FGYO3NKPhO6k6W8Ujfd42xWtMPlM3JG5xACuQQbHKXhriTwY3Oiqm nCQZ5uSA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uCMqZ-0000000CxGS-3Ba6; Tue, 06 May 2025 18:16:51 +0000 Received: from fllvem-ot03.ext.ti.com ([198.47.19.245]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uCJAA-0000000CIKy-2DQb for linux-arm-kernel@lists.infradead.org; Tue, 06 May 2025 14:20:51 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllvem-ot03.ext.ti.com (8.15.2/8.15.2) with ESMTPS id 546EKlqT520569 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 6 May 2025 09:20:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1746541247; bh=XwFxSS6/0etFSYGRDk49i+vv0sGzyJkpooN2+dhNmek=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=uWRmYS2kcd1ZnrEn9vFIhYXxpWKNmBXhKhWwUX1I3R+l854ZjL9Sds8WRDalA615M 53zKqJURtekMsaKqJ4MIlFtlc73pe2ShurCmtpXyafn1YAVwnTAvtQSSbKohqrVfBv wYF9t/hTXpZDzeAsEQ+SQJfB7+JFLNNlNJKqgyjc= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 546EKl6S021374 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 6 May 2025 09:20:47 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 6 May 2025 09:20:46 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE105.ent.ti.com (157.170.170.35) 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, 6 May 2025 09:20:46 -0500 Received: from [10.249.42.149] ([10.249.42.149]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 546EKk23114438; Tue, 6 May 2025 09:20:46 -0500 Message-ID: <8ffefea3-e458-4a9e-968b-89b7541d3b5e@ti.com> Date: Tue, 6 May 2025 09:20:46 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/4] arm64: dts: ti: k3-am62a-phycore-som: Enable Co-processors To: Daniel Schultz , , , , , , , , , CC: , References: <20250506133604.294920-1-d.schultz@phytec.de> <20250506133604.294920-3-d.schultz@phytec.de> Content-Language: en-US From: Andrew Davis In-Reply-To: <20250506133604.294920-3-d.schultz@phytec.de> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250506_072050_666967_F7F266CE X-CRM114-Status: GOOD ( 16.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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 5/6/25 8:36 AM, Daniel Schultz wrote: > For every remote processor, set up dedicated memory regions and > associate the required mailbox channels. Allocate two memory areas > per remote core: one 1MB region for vring shared buffers, and > another for external memory used by the remote processor for its > resource table and trace buffer. > > Signed-off-by: Daniel Schultz > --- > .../boot/dts/ti/k3-am62a-phycore-som.dtsi | 96 +++++++++++++++++-- > 1 file changed, 90 insertions(+), 6 deletions(-) > > diff --git a/arch/arm64/boot/dts/ti/k3-am62a-phycore-som.dtsi b/arch/arm64/boot/dts/ti/k3-am62a-phycore-som.dtsi > index 147d56b87984..049aa358e796 100644 > --- a/arch/arm64/boot/dts/ti/k3-am62a-phycore-som.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-am62a-phycore-som.dtsi > @@ -59,6 +59,42 @@ linux,cma { > linux,cma-default; > }; > > + c7x_0_dma_memory_region: c7x-dma-memory@99800000 { > + compatible = "shared-dma-pool"; > + reg = <0x00 0x99800000 0x00 0x100000>; > + no-map; > + }; > + > + c7x_0_memory_region: c7x-memory@99900000 { > + compatible = "shared-dma-pool"; > + reg = <0x00 0x99900000 0x00 0xf00000>; > + no-map; > + }; > + > + mcu_r5fss0_core0_dma_memory_region: r5f-dma-memory@9b800000 { > + compatible = "shared-dma-pool"; > + reg = <0x00 0x9b800000 0x00 0x100000>; > + no-map; > + }; > + > + mcu_r5fss0_core0_memory_region: r5f-dma-memory@9b900000 { > + compatible = "shared-dma-pool"; > + reg = <0x00 0x9b900000 0x00 0xf00000>; > + no-map; > + }; > + > + wkup_r5fss0_core0_dma_memory_region: r5f-dma-memory@9c800000 { > + compatible = "shared-dma-pool"; > + reg = <0x00 0x9c800000 0x00 0x100000>; > + no-map; > + }; > + > + wkup_r5fss0_core0_memory_region: r5f-dma-memory@9c900000 { > + compatible = "shared-dma-pool"; > + reg = <0x00 0x9c900000 0x00 0xf00000>; > + no-map; > + }; > + > secure_tfa_ddr: tfa@9e780000 { > reg = <0x00 0x9e780000 0x00 0x80000>; > alignment = <0x1000>; > @@ -70,12 +106,6 @@ secure_ddr: optee@9e800000 { > alignment = <0x1000>; > no-map; > }; > - > - wkup_r5fss0_core0_memory_region: r5f-dma-memory@9c900000 { > - compatible = "shared-dma-pool"; > - reg = <0x00 0x9c900000 0x00 0x01e00000>; > - no-map; > - }; > }; > > vcc_5v0_som: regulator-vcc-5v0-som { > @@ -170,6 +200,13 @@ AM62AX_IOPAD(0x1f4, PIN_INPUT, 0) /* (D16) EXTINTn */ > }; > }; > > +&c7x_0 { > + mboxes = <&mailbox0_cluster1>, <&mbox_c7x_0>; > + memory-region = <&c7x_0_dma_memory_region>, > + <&c7x_0_memory_region>; > + status = "okay"; > +}; > + > &cpsw3g { > pinctrl-names = "default"; > pinctrl-0 = <&main_rgmii1_pins_default>; > @@ -200,6 +237,33 @@ &fss { > status = "okay"; > }; > > +&mailbox0_cluster0 { > + status = "okay"; > + > + mbox_r5_0: mbox-r5-0 { > + ti,mbox-rx = <0 0 0>; > + ti,mbox-tx = <1 0 0>; > + }; > +}; > + > +&mailbox0_cluster1 { > + status = "okay"; > + > + mbox_c7x_0: mbox-c7x-0 { > + ti,mbox-rx = <0 0 0>; > + ti,mbox-tx = <1 0 0>; > + }; > +}; > + > +&mailbox0_cluster2 { > + status = "okay"; > + > + mbox_mcu_r5_0: mbox-mcu-r5-0 { > + ti,mbox-rx = <0 0 0>; > + ti,mbox-tx = <1 0 0>; > + }; > +}; > + > &main_i2c0 { > pinctrl-names = "default"; > pinctrl-0 = <&main_i2c0_pins_default>; > @@ -315,6 +379,16 @@ &main_pktdma { > bootph-all; > }; > > +&mcu_r5fss0 { > + status = "okay"; > +}; > + > +&mcu_r5fss0_core0 { > + mboxes = <&mailbox0_cluster2>, <&mbox_mcu_r5_0>; These mboxes items should be combined as they are both part of a single two-element item, not a big deal for now as the output DTB is the same, Reviewed-by: Andrew Davis > + memory-region = <&mcu_r5fss0_core0_dma_memory_region>, > + <&mcu_r5fss0_core0_memory_region>; > +}; > + > &ospi0 { > pinctrl-names = "default"; > pinctrl-0 = <&ospi0_pins_default>; > @@ -343,3 +417,13 @@ &sdhci0 { > bootph-all; > status = "okay"; > }; > + > +&wkup_r5fss0 { > + status = "okay"; > +}; > + > +&wkup_r5fss0_core0 { > + mboxes = <&mailbox0_cluster0>, <&mbox_r5_0>; > + memory-region = <&wkup_r5fss0_core0_dma_memory_region>, > + <&wkup_r5fss0_core0_memory_region>; > +};