From nobody Fri Dec 19 11:48:31 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B1D6AE78482 for ; Sun, 1 Oct 2023 18:14:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235288AbjJASOl (ORCPT ); Sun, 1 Oct 2023 14:14:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235263AbjJASOi (ORCPT ); Sun, 1 Oct 2023 14:14:38 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 333CFBC; Sun, 1 Oct 2023 11:14:35 -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 391IETN4032656; Sun, 1 Oct 2023 13:14:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1696184069; bh=b5Nz2bUBYFXpbK9ftO3vjNC6H/dT4zVAvEfnqf1rDao=; h=From:To:Subject:Date:In-Reply-To:References; b=aUidLQqzrsteIdQFCU4xTenhw53q9dliPZ12AOaKkLMaLf3WVFqlfgi+OEKbIbBUU BOz10HXCES6t2sXXA1E4qADloE2hodhCo1WRrze+O6H/Ut5PtaA8Nn2EeGC/2dJCto r1CWtt4vj+FnIpnpU3KVJNHSaDQ2uy8mCIooLBsk= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 391IETEE124476 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 1 Oct 2023 13:14:29 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Sun, 1 Oct 2023 13:14:28 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE103.ent.ti.com (10.64.6.24) 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; Sun, 1 Oct 2023 13:14:28 -0500 Received: from TI.dhcp.ti.com (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 391IEHtp063395; Sun, 1 Oct 2023 13:14:25 -0500 From: Apurva Nandan To: Apurva Nandan , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , , , Hari Nagalla , Udit Kumar Subject: [PATCH v5 2/9] arm64: dts: ti: k3-j721s2-main: Add MAIN R5F remote processsor nodes Date: Sun, 1 Oct 2023 23:44:10 +0530 Message-ID: <20231001181417.743306-3-a-nandan@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231001181417.743306-1-a-nandan@ti.com> References: <20231001181417.743306-1-a-nandan@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The J721S2 SoCs have 2 dual-core Arm Cortex-R5F processor (R5FSS) subsystems/clusters in MAIN voltage domain. Each of these can be configured at boot time to be either run in a LockStep mode or in an Asymmetric Multi Processing (AMP) fashion in Split-mode. These subsystems have 64 KB each Tightly-Coupled Memory (TCM) internal memories for each core split between two banks - ATCM and BTCM (further interleaved into two banks). The TCMs of both Cores are combined in LockStep-mode to provide a larger 128 KB of memory, but otherwise are functionally similar to those on J721E SoCs. Add the DT nodes for the MAIN domain R5F cluster/subsystems, the two R5F cores are added as child nodes to each of the R5F cluster nodes. The clusters are configured to run in LockStep mode by default, with the ATCMs enabled to allow the R5 cores to execute code from DDR with boot-strapping code from ATCM. The inter-processor communication between the main A72 cores and these processors is achieved through shared memory and Mailboxes. The following firmware names are used by default for these cores, and can be overridden in a board dts file if desired: MAIN R5FSS0 Core0: j721s2-main-r5f0_0-fw (both in LockStep & Split mode) MAIN R5FSS0 Core1: j721s2-main-r5f0_1-fw (needed only in Split mode) MAIN R5FSS1 Core0: j721s2-main-r5f1_0-fw (both in LockStep & Split mode) MAIN R5FSS1 Core1: j721s2-main-r5f1_1-fw (needed only in Split mode) Signed-off-by: Hari Nagalla Signed-off-by: Apurva Nandan Reviewed-by: Andrew Davis --- arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 80 ++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/d= ts/ti/k3-j721s2-main.dtsi index 084f8f5b6699..cf439b96284d 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi @@ -1695,4 +1695,84 @@ dss: dss@4a00000 { dss_ports: ports { }; }; + + main_r5fss0: r5fss@5c00000 { + compatible =3D "ti,j721s2-r5fss"; + ti,cluster-mode =3D <1>; + #address-cells =3D <1>; + #size-cells =3D <1>; + ranges =3D <0x5c00000 0x00 0x5c00000 0x20000>, + <0x5d00000 0x00 0x5d00000 0x20000>; + power-domains =3D <&k3_pds 277 TI_SCI_PD_EXCLUSIVE>; + + main_r5fss0_core0: r5f@5c00000 { + compatible =3D "ti,j721s2-r5f"; + reg =3D <0x5c00000 0x00010000>, + <0x5c10000 0x00010000>; + reg-names =3D "atcm", "btcm"; + ti,sci =3D <&sms>; + ti,sci-dev-id =3D <279>; + ti,sci-proc-ids =3D <0x06 0xff>; + resets =3D <&k3_reset 279 1>; + firmware-name =3D "j721s2-main-r5f0_0-fw"; + ti,atcm-enable =3D <1>; + ti,btcm-enable =3D <1>; + ti,loczrama =3D <1>; + }; + + main_r5fss0_core1: r5f@5d00000 { + compatible =3D "ti,j721s2-r5f"; + reg =3D <0x5d00000 0x00010000>, + <0x5d10000 0x00010000>; + reg-names =3D "atcm", "btcm"; + ti,sci =3D <&sms>; + ti,sci-dev-id =3D <280>; + ti,sci-proc-ids =3D <0x07 0xff>; + resets =3D <&k3_reset 280 1>; + firmware-name =3D "j721s2-main-r5f0_1-fw"; + ti,atcm-enable =3D <1>; + ti,btcm-enable =3D <1>; + ti,loczrama =3D <1>; + }; + }; + + main_r5fss1: r5fss@5e00000 { + compatible =3D "ti,j721s2-r5fss"; + ti,cluster-mode =3D <1>; + #address-cells =3D <1>; + #size-cells =3D <1>; + ranges =3D <0x5e00000 0x00 0x5e00000 0x20000>, + <0x5f00000 0x00 0x5f00000 0x20000>; + power-domains =3D <&k3_pds 278 TI_SCI_PD_EXCLUSIVE>; + + main_r5fss1_core0: r5f@5e00000 { + compatible =3D "ti,j721s2-r5f"; + reg =3D <0x5e00000 0x00010000>, + <0x5e10000 0x00010000>; + reg-names =3D "atcm", "btcm"; + ti,sci =3D <&sms>; + ti,sci-dev-id =3D <281>; + ti,sci-proc-ids =3D <0x08 0xff>; + resets =3D <&k3_reset 281 1>; + firmware-name =3D "j721s2-main-r5f1_0-fw"; + ti,atcm-enable =3D <1>; + ti,btcm-enable =3D <1>; + ti,loczrama =3D <1>; + }; + + main_r5fss1_core1: r5f@5f00000 { + compatible =3D "ti,j721s2-r5f"; + reg =3D <0x5f00000 0x00010000>, + <0x5f10000 0x00010000>; + reg-names =3D "atcm", "btcm"; + ti,sci =3D <&sms>; + ti,sci-dev-id =3D <282>; + ti,sci-proc-ids =3D <0x09 0xff>; + resets =3D <&k3_reset 282 1>; + firmware-name =3D "j721s2-main-r5f1_1-fw"; + ti,atcm-enable =3D <1>; + ti,btcm-enable =3D <1>; + ti,loczrama =3D <1>; + }; + }; }; --=20 2.34.1