Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6922400rwr; Tue, 2 May 2023 07:17:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5gcF/4y0DbEon5RVZxHDWJilzVGmXfyZWLKhcy5ZUp3ffzPlURvP1ke9uh6Ia0hPqeool8 X-Received: by 2002:aca:d0a:0:b0:387:14b7:f8e7 with SMTP id 10-20020aca0d0a000000b0038714b7f8e7mr8353529oin.38.1683037027808; Tue, 02 May 2023 07:17:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683037027; cv=none; d=google.com; s=arc-20160816; b=baMj+83xdOEfWqguIhQzWteWk+LG1t7Om5AvTVxQyMCHJELroTFnvJzYp2NZRwuCAM OzRueHePj6JP7R39ZhMn4oma2ZB45Z2gqk4Qd1c1gw7JQBoXt92lD8YhdQT/RK+lMFvS T36SB4CCPwRdKIGmKyUxAeH9bWxqwknwKSdt07xxmTZZFY89iysjUftnVjT6CrmvsXPW +3V8wRzh0DtSNeZVsuAEzMoXYr6O2rzIoG1Q4gJTgZi+7HOzX6zw/k7YSK46Q6xgPiNT VyPd0gYN2H8SrbAPTPIZBeYBUSEKp14QV56C0wQ6/8xkd+ecKSwA7BE1B9P8JnQnG6eJ haLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=UTK2Od9HOOtShq03bPak6T9KZCsVQyBH0UMESsO7pqk=; b=Jopgwpa0Z9RB1WLYjEHCzM/kGCrCbFl2cHtv8Qps4cLKQ5xX4fvNL+AKVl4GND7fAB jHwlZtU73l5cvKqBteyFkVIlMWXnNtCu5ExrBDfe90/L7u/gBm4Pp+5V+EydXQBWVNAZ AUq3B7DGvTkZ7T5qQHz+qrqVimxV+TIRH/0adhVbF15QfzN5r7r/qC54FqitayAyEcOv Nc7M/QhIAk5XGsB6jeFX/Zu3dpmBeOuCAYvUB4z+3DvojkTBK7vyUwR7mxq5F6AKOJHL IO2HumE19y1LpCkOTw06rw3KPnCrDfY/GCdVT0ypnLEb8vkW9Ee1TVd3Dw7tmvpA0Ksm DTlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=t41pflFs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v64-20020acade43000000b0038e47557497si21062314oig.299.2023.05.02.07.16.53; Tue, 02 May 2023 07:17:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=t41pflFs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234368AbjEBOOm (ORCPT + 99 others); Tue, 2 May 2023 10:14:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233800AbjEBOOj (ORCPT ); Tue, 2 May 2023 10:14:39 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B19AFD; Tue, 2 May 2023 07:14:36 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 342EEHCo022585; Tue, 2 May 2023 09:14:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683036857; bh=UTK2Od9HOOtShq03bPak6T9KZCsVQyBH0UMESsO7pqk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=t41pflFsFUIxpn3FRsZbMBZKsxsjGMFpBH9dcg4J1Kb+gTXkwcV0Qf2msWSGMQPl6 2INOHn+76SfzT44MTkU0Ht1l/TVXDhheF5xQXOiV470yRGqwnqXI4/P1B8aZ7fft+O o5tG2BV1jOI2QlNZeSdAIy+CvqH1m4TKL6Tos2+I= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 342EEHxJ022225 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 2 May 2023 09:14:17 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 2 May 2023 09:14:17 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE103.ent.ti.com (157.170.170.33) 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, 2 May 2023 09:14:17 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 342EEHUX102438; Tue, 2 May 2023 09:14:17 -0500 From: Hari Nagalla To: , CC: , , , , , Subject: [PATCH 2/2] arm64: dts: ti: k3-am62a7-sk: Enable remote proc nodes Date: Tue, 2 May 2023 09:14:16 -0500 Message-ID: <20230502141416.9924-3-hnagalla@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230502141416.9924-1-hnagalla@ti.com> References: <20230502141416.9924-1-hnagalla@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reserve memory for remote rpoc IPC and bind the mailbox assignments for each remote proc. Two memory regions are reserved for each remote processor. The first region of 1Mb of memory is used for Vring shared buffers and the second region is used as external memory to the remote processor, resource table and as tracebuffer. Signed-off-by: Devarsh Thakkar Signed-off-by: Hari Nagalla --- arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 69 +++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts index f6a67f072dca..231ff393e241 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts @@ -49,11 +49,41 @@ secure_ddr: optee@9e800000 { 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 0x01e00000>; 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 0x0f00000>; + no-map; + }; + + 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 0x01efffff>; + no-map; + }; }; vmain_pd: regulator-0 { @@ -292,3 +322,42 @@ cpsw3g_phy0: ethernet-phy@0 { ti,min-output-impedance; }; }; + +&mailbox0_cluster0 { + mbox_r5_0: mbox-r5-0 { + ti,mbox-rx = <0 0 0>; + ti,mbox-tx = <1 0 0>; + }; +}; + +&mailbox0_cluster1 { + mbox_c7x_0: mbox-c7x-0 { + ti,mbox-rx = <0 0 0>; + ti,mbox-tx = <1 0 0>; + }; +}; + +&mailbox0_cluster2 { + mbox_mcu_r5_0: mbox-mcu_r5-0 { + ti,mbox-rx = <0 0 0>; + ti,mbox-tx = <1 0 0>; + }; +}; + +&c7x_0 { + mboxes = <&mailbox0_cluster1 &mbox_c7x_0>; + memory-region = <&c7x_0_dma_memory_region>, + <&c7x_0_memory_region>; +}; + +&wkup_r5fss0_core0 { + mboxes = <&mailbox0_cluster0 &mbox_r5_0>; + memory-region = <&wkup_r5fss0_core0_dma_memory_region>, + <&wkup_r5fss0_core0_memory_region>; +}; + +&mcu_r5fss0_core0 { + mboxes = <&mailbox0_cluster2 &mbox_mcu_r5_0>; + memory-region = <&mcu_r5fss0_core0_dma_memory_region>, + <&mcu_r5fss0_core0_memory_region>; +}; -- 2.34.1