From nobody Fri Sep 12 01:37:46 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 DC926C04A94 for ; Fri, 11 Aug 2023 20:23:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234567AbjHKUXR (ORCPT ); Fri, 11 Aug 2023 16:23:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229927AbjHKUXN (ORCPT ); Fri, 11 Aug 2023 16:23:13 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9323D122; Fri, 11 Aug 2023 13:23:12 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 37BKN48G075344; Fri, 11 Aug 2023 15:23:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691785384; bh=6m5kIzL231ESWGAJFMu5fT+PsHcrzuJDjM/oYmNjjHc=; h=From:To:Subject:Date:In-Reply-To:References; b=yrAU1TqAr84DZvIiu9alTNn+jnqID+uZKFs5hZRoyKrtpp94N/lsk3fzCROcqWkgR IXgzl2Nyc2YH1/GXjFIUktIXNCeQFUhYzQdWNGlB+hEQ3CbkoPitFxO94FLZbSE+5T nHLnPXKh8Jmd/kBLnWMRwnrE3a2p4YxkKQ7HnC40= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 37BKN42Z004526 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 11 Aug 2023 15:23:04 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 11 Aug 2023 15:23:03 -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; Fri, 11 Aug 2023 15:23:03 -0500 Received: from TI.dhcp.ti.com (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 37BKMr55055948; Fri, 11 Aug 2023 15:23:00 -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 v3 2/5] arm64: dts: ti: k3-j721s2-main: Add MAIN R5F remote processsor nodes Date: Sat, 12 Aug 2023 01:52:49 +0530 Message-ID: <20230811202252.3586926-3-a-nandan@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230811202252.3586926-1-a-nandan@ti.com> References: <20230811202252.3586926-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 --- 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 dc7920a35237..a8e23b5c6fd5 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi @@ -1688,4 +1688,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