All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/3] add zynqmp TCM bindings
@ 2023-08-29 18:18 ` Tanmay Shah
  0 siblings, 0 replies; 32+ messages in thread
From: Tanmay Shah @ 2023-08-29 18:18 UTC (permalink / raw)
  To: linux-remoteproc, devicetree, linux-arm-kernel, linux-kernel,
	Bjorn Andersson, Mathieu Poirier, Rob Herring,
	Krzysztof Kozlowski, Michal Simek
  Cc: Conor Dooley, Radhey Shyam Pandey, Ben Levinsky, Tanmay Shah

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)  | 0x0000_2000 | 0xFFE2_0000  |                      |
| R5_1 ATCM (64 KB)  | 0x0000_0000 | 0xFFE9_0000  | alias of 0xFFE1_0000 |
| R5_1 BTCM (64 KB)  | 0x0000_2000 | 0xFFEB_0000  | alias of 0xFFE3_0000 |
|  ___               |     ___     |    ___       |                      |
| *Lockstep Mode*    |             |              |                      |
| R5_0 ATCM (128 KB) | 0x0000_0000 | 0xFFE0_0000  |                      |
| R5_0 ATCM (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

This patch series continues previous effort to upstream ZynqMP
TCM bindings:
Previous v3 version link:
https://lore.kernel.org/all/1689964908-22371-1-git-send-email-radhey.shyam.pandey@amd.com/

Changes in v4:
  - Use address-cells and size-cells value 2
  - Modify ranges property as per new value of address-cells
    and size-cells
  - Modify child node "reg" property accordingly 
  - Remove previous ack for further review
  - Introduce device-tree change with split mode representation of
    r5 cluster and each corresponding TCM
  - Introduce corresponding driver change to use TCM

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

Tanmay Shah (2):
  dts: zynqmp: add properties for TCM in remoteproc
  remoteproc: zynqmp: get TCM from device-tree

 .../remoteproc/xlnx,zynqmp-r5fss.yaml         | 131 ++++++--
 arch/arm64/boot/dts/xilinx/zynqmp.dtsi        |  28 +-
 drivers/remoteproc/xlnx_r5_remoteproc.c       | 279 ++++++++++++++----
 3 files changed, 356 insertions(+), 82 deletions(-)


base-commit: 6995e2de6891c724bfeb2db33d7b87775f913ad1
-- 
2.25.1


^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2023-09-25 16:34 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-29 18:18 [PATCH v4 0/3] add zynqmp TCM bindings Tanmay Shah
2023-08-29 18:18 ` Tanmay Shah
2023-08-29 18:18 ` [PATCH v4 1/3] dt-bindings: remoteproc: add Tightly Coupled Memory (TCM) bindings Tanmay Shah
2023-08-29 18:18   ` Tanmay Shah
2023-08-30 18:16   ` Rob Herring
2023-08-30 18:16     ` Rob Herring
2023-08-29 18:18 ` [PATCH v4 2/3] dts: zynqmp: add properties for TCM in remoteproc Tanmay Shah
2023-08-29 18:18   ` Tanmay Shah
2023-08-29 18:19 ` [PATCH v4 3/3] remoteproc: zynqmp: get TCM from device-tree Tanmay Shah
2023-08-29 18:19   ` Tanmay Shah
2023-09-04  7:50   ` Philippe Mathieu-Daudé
2023-09-04  7:50     ` Philippe Mathieu-Daudé
2023-09-05 21:48     ` Tanmay Shah
2023-09-05 21:48       ` Tanmay Shah
2023-09-06  6:20       ` Philippe Mathieu-Daudé
2023-09-06  6:20         ` Philippe Mathieu-Daudé
2023-09-06 14:21         ` Tanmay Shah
2023-09-06 14:21           ` Tanmay Shah
2023-09-06 19:47   ` Mathieu Poirier
2023-09-06 19:47     ` Mathieu Poirier
2023-09-06 22:02     ` Tanmay Shah
2023-09-06 22:02       ` Tanmay Shah
2023-09-07 17:23       ` Tanmay Shah
2023-09-07 17:23         ` Tanmay Shah
2023-09-07 18:08       ` Mathieu Poirier
2023-09-07 18:08         ` Mathieu Poirier
2023-09-07 23:11         ` Tanmay Shah
2023-09-07 23:11           ` Tanmay Shah
2023-09-08 15:12           ` Mathieu Poirier
2023-09-08 15:12             ` Mathieu Poirier
2023-09-25 16:33         ` Tanmay Shah
2023-09-25 16:33           ` Tanmay Shah

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.