Skip to content

Commit c02bda0

Browse files
thierryredingwilldeacon
authored andcommitted
dt-bindings: arm-smmu: Document nvidia,memory-controller property
On NVIDIA SoC's the ARM SMMU needs to interact with the memory controller in order to map memory clients to the corresponding stream IDs. Document how the nvidia,memory-controller property can be used to achieve this. Note that this is a backwards-incompatible change that is, however, necessary to ensure correctness. Without the new property, most of the devices would still work but it is not guaranteed that all will. Reviewed-by: Rob Herring <[email protected]> Acked-by: Will Deacon <[email protected]> Signed-off-by: Thierry Reding <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent d044023 commit c02bda0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Documentation/devicetree/bindings/iommu/arm,smmu.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,17 @@ properties:
159159
power-domains:
160160
maxItems: 1
161161

162+
nvidia,memory-controller:
163+
description: |
164+
A phandle to the memory controller on NVIDIA Tegra186 and later SoCs.
165+
The memory controller needs to be programmed with a mapping of memory
166+
client IDs to ARM SMMU stream IDs.
167+
168+
If this property is absent, the mapping programmed by early firmware
169+
will be used and it is not guaranteed that IOMMU translations will be
170+
enabled for any given device.
171+
$ref: /schemas/types.yaml#/definitions/phandle
172+
162173
required:
163174
- compatible
164175
- reg
@@ -181,6 +192,12 @@ allOf:
181192
reg:
182193
minItems: 1
183194
maxItems: 2
195+
196+
# The reference to the memory controller is required to ensure that the
197+
# memory client to stream ID mapping can be done synchronously with the
198+
# IOMMU attachment.
199+
required:
200+
- nvidia,memory-controller
184201
else:
185202
properties:
186203
reg:

0 commit comments

Comments
 (0)