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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A35B4C54756 for ; Thu, 22 May 2025 07:18:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0E9C582FCA; Thu, 22 May 2025 09:18:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="Y1HY+Fl3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5005282FC8; Thu, 22 May 2025 09:18:39 +0200 (CEST) Received: from fllvem-ot03.ext.ti.com (fllvem-ot03.ext.ti.com [198.47.19.245]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 53B0182E31 for ; Thu, 22 May 2025 09:18:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=b-padhi@ti.com Received: from fllvem-sh04.itg.ti.com ([10.64.41.54]) by fllvem-ot03.ext.ti.com (8.15.2/8.15.2) with ESMTP id 54M7IXIF1746430; Thu, 22 May 2025 02:18:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1747898313; bh=e3xAhpJVFVaIoEcGR8Kr5OxQt1gVRVdly/2tpLoZvNw=; h=From:To:CC:Subject:Date; b=Y1HY+Fl3CAyIu4gbJK2KbSVDYt0eyMrluzxs4bEhAeyMdQx+zXKlMTvSYouOcQHDZ HXVNr99UR6pOnJL32Mxfezd5wnXLgu2ssFWFFkl5cig5k6jzPsjyx6CTLu+IfTZFAO ejmiOsCc65nlJi5neSRV433onOQ+FvFmtoIykWx4= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllvem-sh04.itg.ti.com (8.18.1/8.18.1) with ESMTPS id 54M7IXg13314349 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=FAIL); Thu, 22 May 2025 02:18:33 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 22 May 2025 02:18:32 -0500 Received: from lelvem-mr05.itg.ti.com (10.180.75.9) by DFLE104.ent.ti.com (10.64.6.25) 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; Thu, 22 May 2025 02:18:32 -0500 Received: from uda0510294.dhcp.ti.com (uda0510294.dhcp.ti.com [172.24.227.151]) by lelvem-mr05.itg.ti.com (8.18.1/8.18.1) with ESMTP id 54M7IT9I467991; Thu, 22 May 2025 02:18:29 -0500 From: Beleswar Padhi To: CC: , , , , , , , , Subject: [PATCH 0/6] Add IPC support on MCU R5F cluster in Split Mode Date: Thu, 22 May 2025 12:48:22 +0530 Message-ID: <20250522071828.285462-1-b-padhi@ti.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean This series adds remoteproc support on MCU R5F in Split mode. During boot, ROM can bring up the boot R5F cores in either lockstep or split mode based on X509 certificate flags. If booted in lockstep mode, the MCU R5F cores will run first the R5 SPL, and then once A72 comes up, will run the Device Manager (DM) firmware. But if booted in split mode, core 0 will run DM firmware and second core sits in WFI. Shut it down so that other firmwares can later be loaded on them. The shutdown of MCU R5 Core 1 is invoked at A72 SPL init, as by that time Device Manager (DM) is up and running on R5 Core 0. The shutdown of MCU R5 Core 1 is handled by Device Manager itself. The devicetree patch [PATCH 6/6] need not be merged here, as it will be sent to the Linux Upstream list. Testing done: 1. Build test on all existing TI K3 platforms. 2. Tested U-Boot and Linux load of MCU R5F core in split mode on all applicable boards (AM68-SK, AM69-SK, J7200-EVM, J721E-EVM, J721S2-EVM, J784S4-evm, J742S2-EVM) Test logs: https://gist.github.com/3V3RYONE/ee8e3cb9aa5f4c5c00b059b9c14bfa98 Thanks, Beleswar Beleswar Padhi (6): arm: mach-k3: {am6/j7}*_hardware.h: Expose MCU R5 proc and device ids arch: mach-k3: common: Add support to shutdown MCU R5 Core 1 remoteproc: k3-r5: Acquire processor control before reset ops board: ti: j7*: Add firmware for MCU R5 core1 arm: dts: k3-j7*-binman: Enable split mode for MCU R5F DONOTMERGE: arm: dts: k3-j7*-mcu-wakeup: Enable split mode for MCU R5 arch/arm/dts/k3-j7200-binman.dtsi | 3 + arch/arm/dts/k3-j721e-binman.dtsi | 4 ++ arch/arm/dts/k3-j721s2-binman.dtsi | 3 + arch/arm/dts/k3-j784s4-binman.dtsi | 3 + arch/arm/mach-k3/common.c | 55 +++++++++++++++++++ arch/arm/mach-k3/common.h | 1 + arch/arm/mach-k3/include/mach/am62_hardware.h | 4 +- .../arm/mach-k3/include/mach/am62a_hardware.h | 4 +- .../arm/mach-k3/include/mach/am62p_hardware.h | 4 +- arch/arm/mach-k3/include/mach/am64_hardware.h | 9 +-- arch/arm/mach-k3/include/mach/am6_hardware.h | 9 +-- .../arm/mach-k3/include/mach/j721e_hardware.h | 9 +-- .../mach-k3/include/mach/j721s2_hardware.h | 9 +-- .../arm/mach-k3/include/mach/j722s_hardware.h | 4 +- .../mach-k3/include/mach/j784s4_hardware.h | 9 +-- arch/arm/mach-k3/j721e/j721e_init.c | 9 ++- arch/arm/mach-k3/j721s2/j721s2_init.c | 7 +++ arch/arm/mach-k3/j784s4/j784s4_init.c | 7 +++ board/ti/j7200/j7200.env | 2 +- board/ti/j721e/j721e.env | 2 +- board/ti/j721s2/j721s2.env | 2 +- board/ti/j784s4/j784s4.env | 4 +- drivers/remoteproc/ti_k3_r5f_rproc.c | 6 ++ .../src/arm64/ti/k3-j7200-mcu-wakeup.dtsi | 2 +- .../src/arm64/ti/k3-j721e-mcu-wakeup.dtsi | 2 +- .../src/arm64/ti/k3-j721s2-mcu-wakeup.dtsi | 2 +- .../k3-j784s4-j742s2-mcu-wakeup-common.dtsi | 2 +- 27 files changed, 139 insertions(+), 38 deletions(-) -- 2.34.1