arm,smmu.txt 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. * ARM System MMU Architecture Implementation
  2. ARM SoCs may contain an implementation of the ARM System Memory
  3. Management Unit Architecture, which can be used to provide 1 or 2 stages
  4. of address translation to bus masters external to the CPU.
  5. The SMMU may also raise interrupts in response to various fault
  6. conditions.
  7. ** System MMU required properties:
  8. - compatible : Should be one of:
  9. "arm,smmu-v1"
  10. "arm,smmu-v2"
  11. "arm,mmu-400"
  12. "arm,mmu-401"
  13. "arm,mmu-500"
  14. "cavium,smmu-v2"
  15. depending on the particular implementation and/or the
  16. version of the architecture implemented.
  17. - reg : Base address and size of the SMMU.
  18. - #global-interrupts : The number of global interrupts exposed by the
  19. device.
  20. - interrupts : Interrupt list, with the first #global-irqs entries
  21. corresponding to the global interrupts and any
  22. following entries corresponding to context interrupts,
  23. specified in order of their indexing by the SMMU.
  24. For SMMUv2 implementations, there must be exactly one
  25. interrupt per context bank. In the case of a single,
  26. combined interrupt, it must be listed multiple times.
  27. - #iommu-cells : See Documentation/devicetree/bindings/iommu/iommu.txt
  28. for details. With a value of 1, each "iommus" entry
  29. represents a distinct stream ID emitted by that device
  30. into the relevant SMMU.
  31. SMMUs with stream matching support and complex masters
  32. may use a value of 2, where the second cell represents
  33. an SMR mask to combine with the ID in the first cell.
  34. Care must be taken to ensure the set of matched IDs
  35. does not result in conflicts.
  36. ** System MMU optional properties:
  37. - dma-coherent : Present if page table walks made by the SMMU are
  38. cache coherent with the CPU.
  39. NOTE: this only applies to the SMMU itself, not
  40. masters connected upstream of the SMMU.
  41. - calxeda,smmu-secure-config-access : Enable proper handling of buggy
  42. implementations that always use secure access to
  43. SMMU configuration registers. In this case non-secure
  44. aliases of secure registers have to be used during
  45. SMMU configuration.
  46. ** Deprecated properties:
  47. - mmu-masters (deprecated in favour of the generic "iommus" binding) :
  48. A list of phandles to device nodes representing bus
  49. masters for which the SMMU can provide a translation
  50. and their corresponding Stream IDs. Each device node
  51. linked from this list must have a "#stream-id-cells"
  52. property, indicating the number of Stream ID
  53. arguments associated with its phandle.
  54. ** Examples:
  55. /* SMMU with stream matching or stream indexing */
  56. smmu1: iommu {
  57. compatible = "arm,smmu-v1";
  58. reg = <0xba5e0000 0x10000>;
  59. #global-interrupts = <2>;
  60. interrupts = <0 32 4>,
  61. <0 33 4>,
  62. <0 34 4>, /* This is the first context interrupt */
  63. <0 35 4>,
  64. <0 36 4>,
  65. <0 37 4>;
  66. #iommu-cells = <1>;
  67. };
  68. /* device with two stream IDs, 0 and 7 */
  69. master1 {
  70. iommus = <&smmu1 0>,
  71. <&smmu1 7>;
  72. };
  73. /* SMMU with stream matching */
  74. smmu2: iommu {
  75. ...
  76. #iommu-cells = <2>;
  77. };
  78. /* device with stream IDs 0 and 7 */
  79. master2 {
  80. iommus = <&smmu2 0 0>,
  81. <&smmu2 7 0>;
  82. };
  83. /* device with stream IDs 1, 17, 33 and 49 */
  84. master3 {
  85. iommus = <&smmu2 1 0x30>;
  86. };