arm,smmu.txt 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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-500"
  13. depending on the particular implementation and/or the
  14. version of the architecture implemented.
  15. - reg : Base address and size of the SMMU.
  16. - #global-interrupts : The number of global interrupts exposed by the
  17. device.
  18. - interrupts : Interrupt list, with the first #global-irqs entries
  19. corresponding to the global interrupts and any
  20. following entries corresponding to context interrupts,
  21. specified in order of their indexing by the SMMU.
  22. For SMMUv2 implementations, there must be exactly one
  23. interrupt per context bank. In the case of a single,
  24. combined interrupt, it must be listed multiple times.
  25. - mmu-masters : A list of phandles to device nodes representing bus
  26. masters for which the SMMU can provide a translation
  27. and their corresponding StreamIDs (see example below).
  28. Each device node linked from this list must have a
  29. "#stream-id-cells" property, indicating the number of
  30. StreamIDs associated with it.
  31. ** System MMU optional properties:
  32. - smmu-parent : When multiple SMMUs are chained together, this
  33. property can be used to provide a phandle to the
  34. parent SMMU (that is the next SMMU on the path going
  35. from the mmu-masters towards memory) node for this
  36. SMMU.
  37. Example:
  38. smmu {
  39. compatible = "arm,smmu-v1";
  40. reg = <0xba5e0000 0x10000>;
  41. #global-interrupts = <2>;
  42. interrupts = <0 32 4>,
  43. <0 33 4>,
  44. <0 34 4>, /* This is the first context interrupt */
  45. <0 35 4>,
  46. <0 36 4>,
  47. <0 37 4>;
  48. /*
  49. * Two DMA controllers, the first with two StreamIDs (0xd01d
  50. * and 0xd01e) and the second with only one (0xd11c).
  51. */
  52. mmu-masters = <&dma0 0xd01d 0xd01e>,
  53. <&dma1 0xd11c>;
  54. };