-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iommu/tegra: smmu: Add device tree support for SMMU
The necessary info is expected to pass from DT. For more precise resource reservation, there shouldn't be any overlapping of register range between SMMU and MC. SMMU register offset needs to be calculated correctly, based on its register bank. Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com> Acked-by: Stephen Warren <swarren@wwwdotorg.org> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
- Loading branch information
Hiroshi Doyu
authored and
Joerg Roedel
committed
Jun 25, 2012
1 parent
4e0ee78
commit 0760e8f
Showing
3 changed files
with
117 additions
and
55 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
Documentation/devicetree/bindings/iommu/nvidia,tegra30-smmu.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
NVIDIA Tegra 30 IOMMU H/W, SMMU (System Memory Management Unit) | ||
|
||
Required properties: | ||
- compatible : "nvidia,tegra30-smmu" | ||
- reg : Should contain 3 register banks(address and length) for each | ||
of the SMMU register blocks. | ||
- interrupts : Should contain MC General interrupt. | ||
- nvidia,#asids : # of ASIDs | ||
- dma-window : IOVA start address and length. | ||
- nvidia,ahb : phandle to the ahb bus connected to SMMU. | ||
|
||
Example: | ||
smmu { | ||
compatible = "nvidia,tegra30-smmu"; | ||
reg = <0x7000f010 0x02c | ||
0x7000f1f0 0x010 | ||
0x7000f228 0x05c>; | ||
nvidia,#asids = <4>; /* # of ASIDs */ | ||
dma-window = <0 0x40000000>; /* IOVA start & length */ | ||
nvidia,ahb = <&ahb>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters