Skip to content

add zynqmp TCM bindings

Tanmay Shah linux-arm-kernel linux-devicetree linux-remoteproc lkml 14 versions – Applied

Status from this message: I have applied patches 1, 2 and 4 of this set. Patch 3 should to through

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v15 Latest4 patches 3 repliesApplied
  2. v144 patches 5 repliesSuperseded
  3. v134 patches 6 repliesSuperseded
Earlier versions · 11
VersionPostedPatchesRepliesStatus
v124 patches7 repliesSuperseded
v11 posting 2/20 of 4 patches1 replySuperseded
v11 posting 1/24 patches8 repliesSuperseded
v104 patches6 repliesSuperseded
v93 patches4 repliesSuperseded
v83 patches9 repliesSuperseded
v74 patches14 repliesSuperseded
v64 patches2 repliesSuperseded
v54 patches10 repliesSuperseded
v43 patches12 repliesSuperseded
v11 patch12 repliesSuperseded

Changes in v15 from the cover letter

- Use hardcode TCM addresses as fallback method if "reg" unavailable
- Use new bindings for r5fss subsystem

Patches in v15 Applied

#Subject and filesSizeRepliesApplied
1/4remoteproc: zynqmp: fix lockstep mode memory regiondrivers/remoteproc/xlnx_r5_remoteproc.c+12 -1340 replies
2/4dt-bindings: remoteproc: add Tightly Coupled Memory (TCM) bindingsDocumentation/devicetree/bindings/remoteproc/xlnx,zynqmp-r5fss.yaml+257 -220 replies
3/4dts: zynqmp: add properties for TCM in remoteprocarch/arm64/boot/dts/xilinx/zynqmp-zcu102-rev1.0.dts arch/arm64/boot/dts/xilinx/zynqmp.dtsi+70 -52 replies
4/4remoteproc: zynqmp: parse TCM from device treedrivers/remoteproc/xlnx_r5_remoteproc.c+120 -70 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchKrzysztof KozlowskiMathieu Poirier
1/4
2/4R-b
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v15 thread

Cover letter [PATCH v15 0/4] add zynqmp TCM bindings

Tightly-Coupled Memories(TCMs) are low-latency memory that provides predictable instruction execution and predictable data load/store timing. Each Cortex-R5F processor contains exclusive two 64 KB memory banks on the ATCM and BTCM ports, for a total of 128 KB of memory. In lockstep mode, both 128KB memory is accessible to the cluster.

As per ZynqMP Ultrascale+ Technical Reference Manual UG1085, following is address space of TCM memory. The bindings in this patch series introduces properties to accommodate following address space with address translation between Linux and Cortex-R5 views.

|     |     |     |
| --- | --- | --- |
|      *Mode*        |   *R5 View* | *Linux view* |  Notes               |
| *Split Mode*       | *start addr*| *start addr* |                      |
| R5_0 ATCM (64 KB)  | 0x0000_0000 | 0xFFE0_0000  |                      |
| R5_0 BTCM (64 KB)  | 0x0002_0000 | 0xFFE2_0000  |                      |
| R5_1 ATCM (64 KB)  | 0x0000_0000 | 0xFFE9_0000  | alias of 0xFFE1_0000 |
| R5_1 BTCM (64 KB)  | 0x0002_0000 | 0xFFEB_0000  | alias of 0xFFE3_0000 |
|  ___               |     ___     |    ___       |                      |
| *Lockstep Mode*    |             |              |                      |
| R5_0 ATCM (128 KB) | 0x0000_0000 | 0xFFE0_0000  |                      |
| R5_0 BTCM (128 KB) | 0x0002_0000 | 0xFFE2_0000  |                      |

References:
UG1085 TCM address space:
https://docs.xilinx.com/r/en-US/ug1085-zynq-ultrascale-trm/Tightly-Coupled-Memory-Address-Map

---

prerequisite-patch-link: https://lore.kernel.org/all/[email protected]/
Base Branch: 6.9.rc2

Changes in v15:
- Use hardcode TCM addresses as fallback method if "reg" unavailable
- Use new bindings for r5fss subsystem

Changes in v14:
- Add xlnx,tcm-mode property and use it for TCM configuration
- Add Versal and Versal-NET platform support
- Maintain backward compatibility for ZynqMP platform and use hardcode TCM addresses

Changes in v13:
- Have power-domains property for lockstep case instead of keeping it flexible.
- Add "items:" list in power-domains property

Radhey Shyam Pandey (1):
dt-bindings: remoteproc: add Tightly Coupled Memory (TCM) bindings

Tanmay Shah (3):
remoteproc: zynqmp: fix lockstep mode memory region
dts: zynqmp: add properties for TCM in remoteproc
remoteproc: zynqmp: parse TCM from device tree

 .../remoteproc/xlnx,zynqmp-r5fss.yaml         | 279 ++++++++++++++++--
 .../boot/dts/xilinx/zynqmp-zcu102-rev1.0.dts  |   8 +
 arch/arm64/boot/dts/xilinx/zynqmp.dtsi        |  67 ++++-
 drivers/remoteproc/xlnx_r5_remoteproc.c       | 273 +++++++++--------
 4 files changed, 459 insertions(+), 168 deletions(-)

base-commit: 4d5aabb6843939fad36912be8bf109adf9af0848

Signature · 1 line
2.25.1