sprd,iommu.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. # Copyright 2020 Unisoc Inc.
  3. %YAML 1.2
  4. ---
  5. $id: http://devicetree.org/schemas/iommu/sprd,iommu.yaml#
  6. $schema: http://devicetree.org/meta-schemas/core.yaml#
  7. title: Unisoc IOMMU and Multi-media MMU
  8. maintainers:
  9. - Chunyan Zhang <zhang.lyra@gmail.com>
  10. properties:
  11. compatible:
  12. enum:
  13. - sprd,iommu-v1
  14. "#iommu-cells":
  15. const: 0
  16. description:
  17. Unisoc IOMMUs are all single-master IOMMU devices, therefore no
  18. additional information needs to associate with its master device.
  19. Please refer to the generic bindings document for more details,
  20. Documentation/devicetree/bindings/iommu/iommu.txt
  21. reg:
  22. maxItems: 1
  23. clocks:
  24. description:
  25. Reference to a gate clock phandle, since access to some of IOMMUs are
  26. controlled by gate clock, but this is not required.
  27. required:
  28. - compatible
  29. - reg
  30. - "#iommu-cells"
  31. additionalProperties: false
  32. examples:
  33. - |
  34. iommu_disp: iommu@63000800 {
  35. compatible = "sprd,iommu-v1";
  36. reg = <0x63000800 0x80>;
  37. #iommu-cells = <0>;
  38. };
  39. - |
  40. iommu_jpg: iommu@62300300 {
  41. compatible = "sprd,iommu-v1";
  42. reg = <0x62300300 0x80>;
  43. #iommu-cells = <0>;
  44. clocks = <&mm_gate 1>;
  45. };
  46. ...