Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp903872lqt; Fri, 7 Jun 2024 02:06:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUvQW8lKvo8fK8gehYwzqP9VyWjmzIQmHw8ssXdeNHQFieoiER4xYAGyQCOuwjoMp/yaj6xyO6eXL6mvbbWf7VrEVwW192C3cI6sYxbXg== X-Google-Smtp-Source: AGHT+IEFElzI3Vd0TtOo/a8butWurTEQUVGQp6453sts5prOIaKGA8BYEVRcvqBTq4ipvqfQBhYD X-Received: by 2002:a05:6214:320d:b0:6ad:625c:cb55 with SMTP id 6a1803df08f44-6b059f92ed4mr15734086d6.55.1717751168830; Fri, 07 Jun 2024 02:06:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717751168; cv=pass; d=google.com; s=arc-20160816; b=stMZVmJVgsIAJMRMdVlCQgaJ64dJQ72yPx+oEIwctjtJn7UfB1pqzoTydUf46vW1Wh P6MxaBEo7z8oNxH59NMOuHcFCZYQt8kaNPwfEShRtBJ4BSV7btmdSbRDxTee0KU0f3Hn K0A4jlc1m7LnJ+hOK62909OwER1kDmT6yBKGu87JinPkeUdPny80FhCp2B0A6jLMiLuF K+EY/9CIveFYAtyVQkDoW83MRmwpR0lk5aVJw9qSabKeeAIwn/qTbgpXYjeadlRxxmCk 1xn2vbFtakoFDV2mZ3zByorM9NiB8xb4vg7bX8RAKC3LNqBx/QOTimK9BJpZI8dxPwN0 yIYA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=QP0/ho1jHT2b8fV+ijzgJx8hm5uDZ/97a6HnJKLegYU=; fh=CjU4/j0ak8/SkprHATNKYMZAu+Ueu2PSHQXRgKT1s44=; b=iAwSn1/bNKYr54WgeZIbMd9HPUwhosl/WqOxJxHmZMfATjmyA6w7wiaNrv9KBsslh3 stFyKGJ37PMpQdguBvVqVS8QcRkfHJDTzQotwrmv+Unf+VSM/36scIydp2DvPwegf6ks YuwPRXvrqxeJRn7UEQm90CHQ3oEY+63/JxKX4RC7heOCFfWHMB75ZN+1LWG91M/KYCPo gvm45OOPRtsipvu8flMLpVNZcAwg6UG3BG6kH2erkUVt5omqjDvKWigLISNHiMtKydKp ORlePAkHN/IDVLvNqQhDW0EOU9JzD98rTUw0jBBT+LbYtwMcAYPRcLbIOUOwBR08MiNZ G9lw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Yb0WCDUF; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-205672-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205672-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6b04f9981a2si12776486d6.351.2024.06.07.02.06.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 02:06:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205672-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Yb0WCDUF; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-205672-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205672-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6B77F1C21B34 for ; Fri, 7 Jun 2024 09:06:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D9C715D5A2; Fri, 7 Jun 2024 09:05:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="Yb0WCDUF" Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A6A1315B547; Fri, 7 Jun 2024 09:05:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717751108; cv=none; b=W2BNO1BHzou2EO4uM2GI8KzenxuHnUoMiXKyccU9VPeuShhF4MIEdWRNJP0yi9jYtOQaj2MbM1m7UxpCLfV8ZuEplI4KdQzeOmWTU5v/9+zk7afX8XTMjQHXyAoQo9lQrvK4exb0BlXMwRyHTcJ8LqO/Q3SHE46H5tml3IeQi0A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717751108; c=relaxed/simple; bh=DsCWGwKSCDQpABox2ufY+za/xaJ250sXQdmmpQt5RPY=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=mG8yRAGqdfSVlnKiamWudK8KY2qyZasQvVJRsceZPQonANoQLXX4NXQuDlSccdU0nXwcajHYJ5ugpJb/Qd30Helia2U2firVD9X32LjDZxqY+3IngwEz0f0oNHLTMIjjoxZEaw+upQcf2HTKcEWrOIKpSlsUn5dDOSYGbNsvNCQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=Yb0WCDUF; arc=none smtp.client-ip=198.47.23.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45794nR5054203; Fri, 7 Jun 2024 04:04:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1717751089; bh=QP0/ho1jHT2b8fV+ijzgJx8hm5uDZ/97a6HnJKLegYU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Yb0WCDUF4IDnDMRSGqltF7TieGVMO03blo8e7bIsyLrMKDGlS4wabLX/2tZ3Aek/h nqaAPsf/PLnCzhDenqhzhjkTCqtd7boXSlwv70Tq3DD9ugSnnv6VqNzd9Kib3CeDEq MlVeMqQaxL+sjY7bybi7eLdrUz97vAhdeu9QllO8= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45794nkp047417 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 7 Jun 2024 04:04:49 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 7 Jun 2024 04:04:49 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE110.ent.ti.com (157.170.170.21) 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; Fri, 7 Jun 2024 04:04:48 -0500 Received: from uda0510294.dhcp.ti.com (uda0510294.dhcp.ti.com [10.24.69.66]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 45794Xgm020305; Fri, 7 Jun 2024 04:04:45 -0500 From: Beleswar Padhi To: , CC: , , , , , , , , , Subject: [PATCH 3/3] arm64: dts: ti: k3-j722s-evm: Add memory carveouts for R5F and C7x Date: Fri, 7 Jun 2024 14:34:33 +0530 Message-ID: <20240607090433.488454-4-b-padhi@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240607090433.488454-1-b-padhi@ti.com> References: <20240607090433.488454-1-b-padhi@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 From: Apurva Nandan The K3 J722S SoCs have one single-core Arm Cortex-R5F processor in each of the WAKEUP, MCU and MAIN voltage domain, and two C71x DSP subsystems in MAIN voltage domain. The Inter-Processor communication between the main A72 cores and these R5F and DSP remote cores is achieved through shared memory and Mailboxes. Thus, add the memory carveouts required for communication. Signed-off-by: Apurva Nandan Signed-off-by: Beleswar Padhi --- arch/arm64/boot/dts/ti/k3-j722s-evm.dts | 103 ++++++++++++++++++++++++ 1 file changed, 103 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j722s-evm.dts b/arch/arm64/boot/dts/ti/k3-j722s-evm.dts index a51925deb43b8..b0b5b6c97b92d 100644 --- a/arch/arm64/boot/dts/ti/k3-j722s-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-j722s-evm.dts @@ -49,12 +49,71 @@ secure_ddr: optee@9e800000 { no-map; }; + wkup_r5fss0_core0_dma_memory_region: r5f-dma-memory@a0000000 { + compatible = "shared-dma-pool"; + reg = <0x00 0xa0000000 0x00 0x100000>; + no-map; + }; + wkup_r5fss0_core0_memory_region: r5f-memory@a0100000 { compatible = "shared-dma-pool"; reg = <0x00 0xa0100000 0x00 0xf00000>; no-map; }; + mcu_r5fss0_core0_dma_memory_region: mcu-r5fss-dma-memory-region@a1000000 { + compatible = "shared-dma-pool"; + reg = <0x00 0xa1000000 0x00 0x100000>; + no-map; + }; + + mcu_r5fss0_core0_memory_region: mcu-r5fss-memory-region@a1100000 { + compatible = "shared-dma-pool"; + reg = <0x00 0xa1100000 0x00 0xf00000>; + no-map; + }; + + main_r5fss0_core0_dma_memory_region: main-r5fss-dma-memory-region@a2000000 { + compatible = "shared-dma-pool"; + reg = <0x00 0xa2000000 0x00 0x100000>; + no-map; + }; + + main_r5fss0_core0_memory_region: main-r5fss-memory-region@a2100000 { + compatible = "shared-dma-pool"; + reg = <0x00 0xa2100000 0x00 0xf00000>; + no-map; + }; + + c7x_0_dma_memory_region: c7x-dma-memory@a3000000 { + compatible = "shared-dma-pool"; + reg = <0x00 0xa3000000 0x00 0x100000>; + no-map; + }; + + c7x_0_memory_region: c7x-memory@a3100000 { + compatible = "shared-dma-pool"; + reg = <0x00 0xa3100000 0x00 0xf00000>; + no-map; + }; + + c7x_1_dma_memory_region: c7x-dma-memory@a4000000 { + compatible = "shared-dma-pool"; + reg = <0x00 0xa4000000 0x00 0x100000>; + no-map; + }; + + c7x_1_memory_region: c7x-memory@a4100000 { + compatible = "shared-dma-pool"; + reg = <0x00 0xa4100000 0x00 0xf00000>; + no-map; + }; + + rtos_ipc_memory_region: ipc-memories@a5000000 { + reg = <0x00 0xa5000000 0x00 0x1c00000>; + alignment = <0x1000>; + no-map; + }; }; vmain_pd: regulator-0 { @@ -421,3 +480,47 @@ mbox_c7x_1: mbox-c7x-1 { ti,mbox-tx = <3 0 0>; }; }; + +&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>; +}; + +&mcu_r5fss0 { + status = "okay"; +}; + +&mcu_r5fss0_core0 { + mboxes = <&mailbox0_cluster1 &mbox_mcu_r5_0>; + memory-region = <&mcu_r5fss0_core0_dma_memory_region>, + <&mcu_r5fss0_core0_memory_region>; +}; + +&main_r5fss0 { + status = "okay"; +}; + +&main_r5fss0_core0 { + mboxes = <&mailbox0_cluster3 &mbox_main_r5_0>; + memory-region = <&main_r5fss0_core0_dma_memory_region>, + <&main_r5fss0_core0_memory_region>; +}; + +&c7x_0 { + status = "okay"; + mboxes = <&mailbox0_cluster2 &mbox_c7x_0>; + memory-region = <&c7x_0_dma_memory_region>, + <&c7x_0_memory_region>; +}; + +&c7x_1 { + status = "okay"; + mboxes = <&mailbox0_cluster3 &mbox_c7x_1>; + memory-region = <&c7x_1_dma_memory_region>, + <&c7x_1_memory_region>; +}; -- 2.34.1