mdp5.txt 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. Qualcomm adreno/snapdragon MDP5 display controller
  2. Description:
  3. This is the bindings documentation for the Mobile Display Subsytem(MDSS) that
  4. encapsulates sub-blocks like MDP5, DSI, HDMI, eDP etc, and the MDP5 display
  5. controller found in SoCs like MSM8974, APQ8084, MSM8916, MSM8994 and MSM8996.
  6. MDSS:
  7. Required properties:
  8. - compatible:
  9. * "qcom,mdss" - MDSS
  10. - reg: Physical base address and length of the controller's registers.
  11. - reg-names: The names of register regions. The following regions are required:
  12. * "mdss_phys"
  13. * "vbif_phys"
  14. - interrupts: The interrupt signal from MDSS.
  15. - interrupt-controller: identifies the node as an interrupt controller.
  16. - #interrupt-cells: specifies the number of cells needed to encode an interrupt
  17. source, should be 1.
  18. - power-domains: a power domain consumer specifier according to
  19. Documentation/devicetree/bindings/power/power_domain.txt
  20. - clocks: device clocks. See ../clocks/clock-bindings.txt for details.
  21. - clock-names: the following clocks are required.
  22. * "iface_clk"
  23. * "bus_clk"
  24. * "vsync_clk"
  25. - #address-cells: number of address cells for the MDSS children. Should be 1.
  26. - #size-cells: Should be 1.
  27. - ranges: parent bus address space is the same as the child bus address space.
  28. Optional properties:
  29. - clock-names: the following clocks are optional:
  30. * "lut_clk"
  31. MDP5:
  32. Required properties:
  33. - compatible:
  34. * "qcom,mdp5" - MDP5
  35. - reg: Physical base address and length of the controller's registers.
  36. - reg-names: The names of register regions. The following regions are required:
  37. * "mdp_phys"
  38. - interrupts: Interrupt line from MDP5 to MDSS interrupt controller.
  39. - interrupt-parent: phandle to the MDSS block
  40. through MDP block
  41. - clocks: device clocks. See ../clocks/clock-bindings.txt for details.
  42. - clock-names: the following clocks are required.
  43. - * "bus_clk"
  44. - * "iface_clk"
  45. - * "core_clk"
  46. - * "vsync_clk"
  47. - ports: contains the list of output ports from MDP. These connect to interfaces
  48. that are external to the MDP hardware, such as HDMI, DSI, EDP etc (LVDS is a
  49. special case since it is a part of the MDP block itself).
  50. Each output port contains an endpoint that describes how it is connected to an
  51. external interface. These are described by the standard properties documented
  52. here:
  53. Documentation/devicetree/bindings/graph.txt
  54. Documentation/devicetree/bindings/media/video-interfaces.txt
  55. The availability of output ports can vary across SoC revisions:
  56. For MSM8974 and APQ8084:
  57. Port 0 -> MDP_INTF0 (eDP)
  58. Port 1 -> MDP_INTF1 (DSI1)
  59. Port 2 -> MDP_INTF2 (DSI2)
  60. Port 3 -> MDP_INTF3 (HDMI)
  61. For MSM8916:
  62. Port 0 -> MDP_INTF1 (DSI1)
  63. For MSM8994 and MSM8996:
  64. Port 0 -> MDP_INTF1 (DSI1)
  65. Port 1 -> MDP_INTF2 (DSI2)
  66. Port 2 -> MDP_INTF3 (HDMI)
  67. Optional properties:
  68. - clock-names: the following clocks are optional:
  69. * "lut_clk"
  70. Example:
  71. / {
  72. ...
  73. mdss: mdss@1a00000 {
  74. compatible = "qcom,mdss";
  75. reg = <0x1a00000 0x1000>,
  76. <0x1ac8000 0x3000>;
  77. reg-names = "mdss_phys", "vbif_phys";
  78. power-domains = <&gcc MDSS_GDSC>;
  79. clocks = <&gcc GCC_MDSS_AHB_CLK>,
  80. <&gcc GCC_MDSS_AXI_CLK>,
  81. <&gcc GCC_MDSS_VSYNC_CLK>;
  82. clock-names = "iface_clk",
  83. "bus_clk",
  84. "vsync_clk"
  85. interrupts = <0 72 0>;
  86. interrupt-controller;
  87. #interrupt-cells = <1>;
  88. #address-cells = <1>;
  89. #size-cells = <1>;
  90. ranges;
  91. mdp: mdp@1a01000 {
  92. compatible = "qcom,mdp5";
  93. reg = <0x1a01000 0x90000>;
  94. reg-names = "mdp_phys";
  95. interrupt-parent = <&mdss>;
  96. interrupts = <0 0>;
  97. clocks = <&gcc GCC_MDSS_AHB_CLK>,
  98. <&gcc GCC_MDSS_AXI_CLK>,
  99. <&gcc GCC_MDSS_MDP_CLK>,
  100. <&gcc GCC_MDSS_VSYNC_CLK>;
  101. clock-names = "iface_clk",
  102. "bus_clk",
  103. "core_clk",
  104. "vsync_clk";
  105. ports {
  106. #address-cells = <1>;
  107. #size-cells = <0>;
  108. port@0 {
  109. reg = <0>;
  110. mdp5_intf1_out: endpoint {
  111. remote-endpoint = <&dsi0_in>;
  112. };
  113. };
  114. };
  115. };
  116. dsi0: dsi@1a98000 {
  117. ...
  118. ports {
  119. ...
  120. port@0 {
  121. reg = <0>;
  122. dsi0_in: endpoint {
  123. remote-endpoint = <&mdp5_intf1_out>;
  124. };
  125. };
  126. ...
  127. };
  128. ...
  129. };
  130. dsi_phy0: dsi-phy@1a98300 {
  131. ...
  132. };
  133. };
  134. };