From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CB337C982E6 for ; Mon, 21 Sep 2026 14:54:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Gco7GK+iV2C1g9gQkUNs9G3U8mloXNXVjk8mlpk2Iwo=; b=Sgfem27Vea9OysDmaf7Hu9tdOT 497vle30swB4u9TSO3oFfkZo9OvXKTqYmuzaC5BLft0DBBfryA4lZA3GHXk7xoYwiouu+dh4rqUu7 mZHQJj/83rKSaeWcL63iE15jtQy4FXHmZbzlKIxD2pDbCpXiiFu4jVEXICptbgooAPAxW9SMN5HJn qFxs+AfkESw8wShDEYkXFPI8HfWtZ9rgsBzhHg1k63GoNG96+5xVMtxfjFmfeGYO0Z9Kwp4KhxnJ+ DpqevzSM3RuRpGi9pz8ugRZGtbejxuleENmWsCCxKdYFBSsitQ+VZjXjEuXT8QQuJ2ejH62hYIKd6 o/508VNw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x8fOx-00000002TuI-1g1P; Mon, 21 Sep 2026 14:53:51 +0000 Received: from smtpout-04.galae.net ([185.171.202.116]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x8fOo-00000002Tnu-1xcj for linux-arm-kernel@lists.infradead.org; Mon, 21 Sep 2026 14:53:46 +0000 Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id D3DA3C23D92; Mon, 21 Sep 2026 14:54:23 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id A55D75FFB2; Mon, 21 Sep 2026 14:53:37 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 53A7C10329080; Mon, 21 Sep 2026 16:53:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1790002416; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=Gco7GK+iV2C1g9gQkUNs9G3U8mloXNXVjk8mlpk2Iwo=; b=hdEPRSH83fM5YEy3/ygfQ1tLabQAX9TlucnsvA7Ot9SVas9UIbyKdi31Kr/xHG9l/Wceuq RxRv36wdzxdwd+jDA/dGe2DxkkKx51nf3mTu8xb180RYct59KoAmNWzLN1vdVR4m5qwWrE infkI1/l3VXND6295w0bvALI17LMaviAJT8c6tcwvm/C//Jk7FRFn6PkEoyH19D3LriXy0 lx1Vv6f7GQosH8NzN+e2m9nAYYya/chUiuJDHINxXV5KR6M8EfhqgokHsWZFxg9mhQyOUB N7j74a6EoJw39B/riqOYu63PILOzDwJ00c24vBC9EN9JgCtuUxNDckcxiUqxug== From: "Richard Genoud (TI)" To: Nishanth Menon , Vignesh Raghavendra Cc: Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Udit Kumar , Abhash Kumar , Beleswar Padhi , Thomas Richard , Gregory CLEMENT , Thomas Petazzoni , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Richard Genoud Subject: [PATCH v4 1/7] dt-bindings: remoteproc: k3-r5f: Add Jacinto LPM memory region Date: Mon, 21 Sep 2026 16:53:19 +0200 Message-ID: <20260921145325.300025-2-richard.genoud@bootlin.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260921145325.300025-1-richard.genoud@bootlin.com> References: <20260921145325.300025-1-richard.genoud@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260921_075342_673780_82AB7D1D X-CRM114-Status: GOOD ( 10.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Declare a carveout memory region to store LPM metadata on Jacinto devices. For Jacinto devices, this memory region is needed for saving ATF context and the certificate information of ATF and OPTEE and DM image. This LPM metadata area is firewalled to be accessed only by TIFS. U-Boot R5 SPL/TIFS will use this area to save and restore: - ATF context - ATF certificate information - OPTEE certificate information - DM image (which has been copied in memory at boot time by U-Boot R5-SPL) At resume, U-Boot R5 SPL is executed and detects that the board is resuming (with a flag set in the PMIC), then it: - brings out of retention the DDR - retrieves the LPM memory region from DTS - authenticates certificates from LPM memory region and applies firewalls - asks TIFS to restore TFA and its own minimal context - starts TFA on remote proc - loads back DM image from memory and jumps to DM https://software-dl.ti.com/tisci/esd/latest/2_tisci_msgs/pm/lpm.html#lpm-msg-lpm-save-addr NB: This memory region is not part of DM memory (which is not retained at suspend) Signed-off-by: Richard Genoud (TI) --- .../bindings/remoteproc/ti,k3-r5f-rproc.yaml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.yaml index 14e6b2f817b3..af2acd429974 100644 --- a/Documentation/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.yaml +++ b/Documentation/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.yaml @@ -155,9 +155,10 @@ patternProperties: description: | phandle to the reserved memory nodes to be associated with the remoteproc device. There should be two reserved memory nodes defined - for the basic layout or 6 partitions for a detailed layout. The - reserved memory nodes should be carveout nodes, and should be defined - with a "no-map" property as per the bindings in + for the basic layout, three for the Jacinto layout or 6 partitions + for a detailed layout. The reserved memory nodes should be carveout + nodes, and should be defined with a "no-map" property as per the + bindings in Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt oneOf: - description: Basic layout @@ -174,6 +175,12 @@ patternProperties: - description: LPM metadata - description: LPM FS context data and reserved sections - description: DM RM/PM trace and firmware code/data + - description: Jacinto layout + items: + - description: region used for dynamic DMA allocations like vrings and + vring buffers + - description: region reserved for firmware image sections + - description: LPM metadata memory-region-names: description: | @@ -192,6 +199,11 @@ patternProperties: - const: lpm-metadata - const: lpm-context - const: dm-firmware + - description: Jacinto layout + items: + - const: dma + - const: firmware + - const: lpm-metadata # Optional properties: # --------------------