samsung,sysmmu.txt 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. Samsung Exynos IOMMU H/W, System MMU (System Memory Management Unit)
  2. Samsung's Exynos architecture contains System MMUs that enables scattered
  3. physical memory chunks visible as a contiguous region to DMA-capable peripheral
  4. devices like MFC, FIMC, FIMD, GScaler, FIMC-IS and so forth.
  5. System MMU is an IOMMU and supports identical translation table format to
  6. ARMv7 translation tables with minimum set of page properties including access
  7. permissions, shareability and security protection. In addition, System MMU has
  8. another capabilities like L2 TLB or block-fetch buffers to minimize translation
  9. latency.
  10. System MMUs are in many to one relation with peripheral devices, i.e. single
  11. peripheral device might have multiple System MMUs (usually one for each bus
  12. master), but one System MMU can handle transactions from only one peripheral
  13. device. The relation between a System MMU and the peripheral device needs to be
  14. defined in device node of the peripheral device.
  15. MFC in all Exynos SoCs and FIMD, M2M Scalers and G2D in Exynos5420 has 2 System
  16. MMUs.
  17. * MFC has one System MMU on its left and right bus.
  18. * FIMD in Exynos5420 has one System MMU for window 0 and 4, the other system MMU
  19. for window 1, 2 and 3.
  20. * M2M Scalers and G2D in Exynos5420 has one System MMU on the read channel and
  21. the other System MMU on the write channel.
  22. For information on assigning System MMU controller to its peripheral devices,
  23. see generic IOMMU bindings.
  24. Required properties:
  25. - compatible: Should be "samsung,exynos-sysmmu"
  26. - reg: A tuple of base address and size of System MMU registers.
  27. - #iommu-cells: Should be <0>.
  28. - interrupt-parent: The phandle of the interrupt controller of System MMU
  29. - interrupts: An interrupt specifier for interrupt signal of System MMU,
  30. according to the format defined by a particular interrupt
  31. controller.
  32. - clock-names: Should be "sysmmu" or a pair of "aclk" and "pclk" to gate
  33. SYSMMU core clocks.
  34. Optional "master" if the clock to the System MMU is gated by
  35. another gate clock other core (usually main gate clock
  36. of peripheral device this SYSMMU belongs to).
  37. - clocks: Phandles for respective clocks described by clock-names.
  38. - power-domains: Required if the System MMU is needed to gate its power.
  39. Please refer to the following document:
  40. Documentation/devicetree/bindings/power/pd-samsung.txt
  41. Examples:
  42. gsc_0: gsc@13e00000 {
  43. compatible = "samsung,exynos5-gsc";
  44. reg = <0x13e00000 0x1000>;
  45. interrupts = <0 85 0>;
  46. power-domains = <&pd_gsc>;
  47. clocks = <&clock CLK_GSCL0>;
  48. clock-names = "gscl";
  49. iommus = <&sysmmu_gsc0>;
  50. };
  51. sysmmu_gsc0: sysmmu@13E80000 {
  52. compatible = "samsung,exynos-sysmmu";
  53. reg = <0x13E80000 0x1000>;
  54. interrupt-parent = <&combiner>;
  55. interrupts = <2 0>;
  56. clock-names = "sysmmu", "master";
  57. clocks = <&clock CLK_SMMU_GSCL0>, <&clock CLK_GSCL0>;
  58. power-domains = <&pd_gsc>;
  59. #iommu-cells = <0>;
  60. };