mediatek,rdma.yaml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/display/mediatek/mediatek,rdma.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Mediatek Read Direct Memory Access
  7. maintainers:
  8. - Chun-Kuang Hu <chunkuang.hu@kernel.org>
  9. - Philipp Zabel <p.zabel@pengutronix.de>
  10. description: |
  11. Mediatek Read Direct Memory Access(RDMA) component used to read the
  12. data into DMA. It provides real time data to the back-end panel
  13. driver, such as DSI, DPI and DP_INTF.
  14. It contains one line buffer to store the sufficient pixel data.
  15. RDMA device node must be siblings to the central MMSYS_CONFIG node.
  16. For a description of the MMSYS_CONFIG binding, see
  17. Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml
  18. for details.
  19. properties:
  20. compatible:
  21. oneOf:
  22. - enum:
  23. - mediatek,mt2701-disp-rdma
  24. - mediatek,mt8173-disp-rdma
  25. - mediatek,mt8183-disp-rdma
  26. - mediatek,mt8195-disp-rdma
  27. - items:
  28. - enum:
  29. - mediatek,mt8188-disp-rdma
  30. - const: mediatek,mt8195-disp-rdma
  31. - items:
  32. - enum:
  33. - mediatek,mt7623-disp-rdma
  34. - mediatek,mt2712-disp-rdma
  35. - const: mediatek,mt2701-disp-rdma
  36. - items:
  37. - enum:
  38. - mediatek,mt6795-disp-rdma
  39. - const: mediatek,mt8173-disp-rdma
  40. - items:
  41. - enum:
  42. - mediatek,mt8186-disp-rdma
  43. - mediatek,mt8192-disp-rdma
  44. - mediatek,mt8365-disp-rdma
  45. - const: mediatek,mt8183-disp-rdma
  46. reg:
  47. maxItems: 1
  48. interrupts:
  49. maxItems: 1
  50. power-domains:
  51. description: A phandle and PM domain specifier as defined by bindings of
  52. the power controller specified by phandle. See
  53. Documentation/devicetree/bindings/power/power-domain.yaml for details.
  54. clocks:
  55. items:
  56. - description: RDMA Clock
  57. iommus:
  58. description:
  59. This property should point to the respective IOMMU block with master port as argument,
  60. see Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details.
  61. mediatek,rdma-fifo-size:
  62. description:
  63. rdma fifo size may be different even in same SOC, add this property to the
  64. corresponding rdma.
  65. The value below is the Max value which defined in hardware data sheet
  66. mediatek,rdma-fifo-size of mt8173-rdma0 is 8K
  67. mediatek,rdma-fifo-size of mt8183-rdma0 is 5K
  68. mediatek,rdma-fifo-size of mt8183-rdma1 is 2K
  69. $ref: /schemas/types.yaml#/definitions/uint32
  70. enum: [8192, 5120, 2048]
  71. mediatek,gce-client-reg:
  72. description: The register of client driver can be configured by gce with
  73. 4 arguments defined in this property, such as phandle of gce, subsys id,
  74. register offset and size. Each GCE subsys id is mapping to a client
  75. defined in the header include/dt-bindings/gce/<chip>-gce.h.
  76. $ref: /schemas/types.yaml#/definitions/phandle-array
  77. maxItems: 1
  78. ports:
  79. $ref: /schemas/graph.yaml#/properties/ports
  80. description:
  81. Input and output ports can have multiple endpoints, each of those
  82. connects to either the primary, secondary, etc, display pipeline.
  83. properties:
  84. port@0:
  85. $ref: /schemas/graph.yaml#/properties/port
  86. description: RDMA input port, usually from MMSYS, OD or OVL
  87. port@1:
  88. $ref: /schemas/graph.yaml#/properties/port
  89. description:
  90. RDMA output to the input of the next desired component in the
  91. display pipeline, for example one of the available COLOR, DPI,
  92. DSI, MERGE or UFOE blocks.
  93. required:
  94. - port@0
  95. - port@1
  96. required:
  97. - compatible
  98. - reg
  99. - interrupts
  100. - power-domains
  101. - clocks
  102. - iommus
  103. additionalProperties: false
  104. examples:
  105. - |
  106. #include <dt-bindings/interrupt-controller/arm-gic.h>
  107. #include <dt-bindings/clock/mt8173-clk.h>
  108. #include <dt-bindings/power/mt8173-power.h>
  109. #include <dt-bindings/gce/mt8173-gce.h>
  110. #include <dt-bindings/memory/mt8173-larb-port.h>
  111. soc {
  112. #address-cells = <2>;
  113. #size-cells = <2>;
  114. rdma0: rdma@1400e000 {
  115. compatible = "mediatek,mt8173-disp-rdma";
  116. reg = <0 0x1400e000 0 0x1000>;
  117. interrupts = <GIC_SPI 182 IRQ_TYPE_LEVEL_LOW>;
  118. power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>;
  119. clocks = <&mmsys CLK_MM_DISP_RDMA0>;
  120. iommus = <&iommu M4U_PORT_DISP_RDMA0>;
  121. mediatek,rdma-fifo-size = <8192>;
  122. mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0xe000 0x1000>;
  123. };
  124. };