msm,iommu-v0.txt 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. * QCOM IOMMU
  2. The MSM IOMMU is an implementation compatible with the ARM VMSA short
  3. descriptor page tables. It provides address translation for bus masters outside
  4. of the CPU, each connected to the IOMMU through a port called micro-TLB.
  5. Required Properties:
  6. - compatible: Must contain "qcom,apq8064-iommu".
  7. - reg: Base address and size of the IOMMU registers.
  8. - interrupts: Specifiers for the MMU fault interrupts. For instances that
  9. support secure mode two interrupts must be specified, for non-secure and
  10. secure mode, in that order. For instances that don't support secure mode a
  11. single interrupt must be specified.
  12. - #iommu-cells: The number of cells needed to specify the stream id. This
  13. is always 1.
  14. - qcom,ncb: The total number of context banks in the IOMMU.
  15. - clocks : List of clocks to be used during SMMU register access. See
  16. Documentation/devicetree/bindings/clock/clock-bindings.txt
  17. for information about the format. For each clock specified
  18. here, there must be a corresponding entry in clock-names
  19. (see below).
  20. - clock-names : List of clock names corresponding to the clocks specified in
  21. the "clocks" property (above).
  22. Should be "smmu_pclk" for specifying the interface clock
  23. required for iommu's register accesses.
  24. Should be "smmu_clk" for specifying the functional clock
  25. required by iommu for bus accesses.
  26. Each bus master connected to an IOMMU must reference the IOMMU in its device
  27. node with the following property:
  28. - iommus: A reference to the IOMMU in multiple cells. The first cell is a
  29. phandle to the IOMMU and the second cell is the stream id.
  30. A single master device can be connected to more than one iommu
  31. and multiple contexts in each of the iommu. So multiple entries
  32. are required to list all the iommus and the stream ids that the
  33. master is connected to.
  34. Example: mdp iommu and its bus master
  35. mdp_port0: iommu@7500000 {
  36. compatible = "qcom,apq8064-iommu";
  37. #iommu-cells = <1>;
  38. clock-names =
  39. "smmu_pclk",
  40. "smmu_clk";
  41. clocks =
  42. <&mmcc SMMU_AHB_CLK>,
  43. <&mmcc MDP_AXI_CLK>;
  44. reg = <0x07500000 0x100000>;
  45. interrupts =
  46. <GIC_SPI 63 0>,
  47. <GIC_SPI 64 0>;
  48. qcom,ncb = <2>;
  49. };
  50. mdp: qcom,mdp@5100000 {
  51. compatible = "qcom,mdp";
  52. ...
  53. iommus = <&mdp_port0 0
  54. &mdp_port0 2>;
  55. };