aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-07-10 17:46:40 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-10 17:46:40 -0400
commit6664565681a1c0c95607ae2e30070352d9a563d0 (patch)
treefdd60bf602e1c26e87ab25ffd2cc370e0ab51eac /Documentation/devicetree
parent496fd15bee6f2fd673ab992e5211c5f3c5bd6779 (diff)
parent01ce784acfa69a171afe6ec3f85a959546f2d18a (diff)
Merge tag 'iommu-updates-v3.11' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu
Pull IOMMU updates from Joerg Roedel: "A few updates this time, most important and exiciting (to me) is: - The new ARM SMMU driver. This is a common IOMMU driver that will hopefully be used in a lot of upcoming ARM chips. So the mess in the past where every SOC had its own IOMMU will be over. Besides that: - Some important fixes in the IOMMU unmap path. There are fixes in the common code and also in the AMD IOMMU driver. - Other random fixes" * tag 'iommu-updates-v3.11' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu: MAINTAINERS: add entry for ARM system MMU driver iommu/arm: Add support for ARM Ltd. System MMU architecture documentation/iommu: Add description of ARM System MMU binding iommu: Use %pa and %zx instead of casting iommu/amd: Only unmap large pages from the first pte iommu: Fix compiler warning on pr_debug iommu/amd: Fix memory leak in free_pagetable iommu: Split iommu_unmaps iommu/{vt-d,amd}: Remove multifunction assumption around grouping iommu/omap: fix checkpatch warnings in omap iommu code iommu/omap: fix printk formats for dma_addr_t iommu/vt-d: DMAR reporting table needs at least one DRHD iommu/vt-d: Downgrade the warning if enabling irq remapping fails
Diffstat (limited to 'Documentation/devicetree')
-rw-r--r--Documentation/devicetree/bindings/iommu/arm,smmu.txt70
1 files changed, 70 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iommu/arm,smmu.txt b/Documentation/devicetree/bindings/iommu/arm,smmu.txt
new file mode 100644
index 000000000000..e34c6cdd8ba8
--- /dev/null
+++ b/Documentation/devicetree/bindings/iommu/arm,smmu.txt
@@ -0,0 +1,70 @@
1* ARM System MMU Architecture Implementation
2
3ARM SoCs may contain an implementation of the ARM System Memory
4Management Unit Architecture, which can be used to provide 1 or 2 stages
5of address translation to bus masters external to the CPU.
6
7The SMMU may also raise interrupts in response to various fault
8conditions.
9
10** System MMU required properties:
11
12- compatible : Should be one of:
13
14 "arm,smmu-v1"
15 "arm,smmu-v2"
16 "arm,mmu-400"
17 "arm,mmu-500"
18
19 depending on the particular implementation and/or the
20 version of the architecture implemented.
21
22- reg : Base address and size of the SMMU.
23
24- #global-interrupts : The number of global interrupts exposed by the
25 device.
26
27- interrupts : Interrupt list, with the first #global-irqs entries
28 corresponding to the global interrupts and any
29 following entries corresponding to context interrupts,
30 specified in order of their indexing by the SMMU.
31
32 For SMMUv2 implementations, there must be exactly one
33 interrupt per context bank. In the case of a single,
34 combined interrupt, it must be listed multiple times.
35
36- mmu-masters : A list of phandles to device nodes representing bus
37 masters for which the SMMU can provide a translation
38 and their corresponding StreamIDs (see example below).
39 Each device node linked from this list must have a
40 "#stream-id-cells" property, indicating the number of
41 StreamIDs associated with it.
42
43** System MMU optional properties:
44
45- smmu-parent : When multiple SMMUs are chained together, this
46 property can be used to provide a phandle to the
47 parent SMMU (that is the next SMMU on the path going
48 from the mmu-masters towards memory) node for this
49 SMMU.
50
51Example:
52
53 smmu {
54 compatible = "arm,smmu-v1";
55 reg = <0xba5e0000 0x10000>;
56 #global-interrupts = <2>;
57 interrupts = <0 32 4>,
58 <0 33 4>,
59 <0 34 4>, /* This is the first context interrupt */
60 <0 35 4>,
61 <0 36 4>,
62 <0 37 4>;
63
64 /*
65 * Two DMA controllers, the first with two StreamIDs (0xd01d
66 * and 0xd01e) and the second with only one (0xd11c).
67 */
68 mmu-masters = <&dma0 0xd01d 0xd01e>,
69 <&dma1 0xd11c>;
70 };