[PATCH v3 1/6] dt-bindings: remoteproc: k3-r5f: Add Jacinto LPM memory region
From: "Richard Genoud (TI)" <richard.genoud@bootlin.com>
Date: 2026-07-03 14:37:45
Also in:
linux-devicetree, lkml
Subsystem:
open firmware and flattened device tree bindings, remote processor (remoteproc) subsystem, the rest · Maintainers:
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson, Mathieu Poirier, Linus Torvalds
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) <richard.genoud@bootlin.com> --- .../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: # --------------------
--
2.47.3