arm,smmu.txt 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. depending on the particular implementation and/or the
  15. version of the architecture implemented.
  16. - reg : Base address and size of the SMMU.
  17. - #global-interrupts : The number of global interrupts exposed by the
  18. device.
  19. - interrupts : Interrupt list, with the first #global-irqs entries
  20. corresponding to the global interrupts and any
  21. following entries corresponding to context interrupts,
  22. specified in order of their indexing by the SMMU.
  23. For SMMUv2 implementations, there must be exactly one
  24. interrupt per context bank. In the case of a single,
  25. combined interrupt, it must be listed multiple times.
  26. - mmu-masters : A list of phandles to device nodes representing bus
  27. masters for which the SMMU can provide a translation
  28. and their corresponding StreamIDs (see example below).
  29. Each device node linked from this list must have a
  30. "#stream-id-cells" property, indicating the number of
  31. StreamIDs associated with it.
  32. ** System MMU optional properties:
  33. - dma-coherent : Present if page table walks made by the SMMU are
  34. cache coherent with the CPU.
  35. NOTE: this only applies to the SMMU itself, not
  36. masters connected upstream of the SMMU.
  37. - calxeda,smmu-secure-config-access : Enable proper handling of buggy
  38. implementations that always use secure access to
  39. SMMU configuration registers. In this case non-secure
  40. aliases of secure registers have to be used during
  41. SMMU configuration.
  42. Example:
  43. smmu {
  44. compatible = "arm,smmu-v1";
  45. reg = <0xba5e0000 0x10000>;
  46. #global-interrupts = <2>;
  47. interrupts = <0 32 4>,
  48. <0 33 4>,
  49. <0 34 4>, /* This is the first context interrupt */
  50. <0 35 4>,
  51. <0 36 4>,
  52. <0 37 4>;
  53. /*
  54. * Two DMA controllers, the first with two StreamIDs (0xd01d
  55. * and 0xd01e) and the second with only one (0xd11c).
  56. */
  57. mmu-masters = <&dma0 0xd01d 0xd01e>,
  58. <&dma1 0xd11c>;
  59. };