dsi.txt 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. Qualcomm Technologies Inc. adreno/snapdragon DSI output
  2. DSI Controller:
  3. Required properties:
  4. - compatible:
  5. * "qcom,mdss-dsi-ctrl"
  6. - reg: Physical base address and length of the registers of controller
  7. - reg-names: The names of register regions. The following regions are required:
  8. * "dsi_ctrl"
  9. - interrupts: The interrupt signal from the DSI block.
  10. - power-domains: Should be <&mmcc MDSS_GDSC>.
  11. - clocks: Phandles to device clocks.
  12. - clock-names: the following clocks are required:
  13. * "mdp_core"
  14. * "iface"
  15. * "bus"
  16. * "core_mmss"
  17. * "byte"
  18. * "pixel"
  19. * "core"
  20. For DSIv2, we need an additional clock:
  21. * "src"
  22. For DSI6G v2.0 onwards, we need also need the clock:
  23. * "byte_intf"
  24. - assigned-clocks: Parents of "byte" and "pixel" for the given platform.
  25. - assigned-clock-parents: The Byte clock and Pixel clock PLL outputs provided
  26. by a DSI PHY block. See [1] for details on clock bindings.
  27. - vdd-supply: phandle to vdd regulator device node
  28. - vddio-supply: phandle to vdd-io regulator device node
  29. - vdda-supply: phandle to vdda regulator device node
  30. - phys: phandle to DSI PHY device node
  31. - phy-names: the name of the corresponding PHY device
  32. - syscon-sfpb: A phandle to mmss_sfpb syscon node (only for DSIv2)
  33. - ports: Contains 2 DSI controller ports as child nodes. Each port contains
  34. an endpoint subnode as defined in [2] and [3].
  35. Optional properties:
  36. - panel@0: Node of panel connected to this DSI controller.
  37. See files in [4] for each supported panel.
  38. - qcom,dual-dsi-mode: Boolean value indicating if the DSI controller is
  39. driving a panel which needs 2 DSI links.
  40. - qcom,master-dsi: Boolean value indicating if the DSI controller is driving
  41. the master link of the 2-DSI panel.
  42. - qcom,sync-dual-dsi: Boolean value indicating if the DSI controller is
  43. driving a 2-DSI panel whose 2 links need receive command simultaneously.
  44. - pinctrl-names: the pin control state names; should contain "default"
  45. - pinctrl-0: the default pinctrl state (active)
  46. - pinctrl-n: the "sleep" pinctrl state
  47. - ports: contains DSI controller input and output ports as children, each
  48. containing one endpoint subnode.
  49. DSI Endpoint properties:
  50. - remote-endpoint: For port@0, set to phandle of the connected panel/bridge's
  51. input endpoint. For port@1, set to the MDP interface output. See [2] for
  52. device graph info.
  53. - data-lanes: this describes how the physical DSI data lanes are mapped
  54. to the logical lanes on the given platform. The value contained in
  55. index n describes what physical lane is mapped to the logical lane n
  56. (DATAn, where n lies between 0 and 3). The clock lane position is fixed
  57. and can't be changed. Hence, they aren't a part of the DT bindings. See
  58. [3] for more info on the data-lanes property.
  59. For example:
  60. data-lanes = <3 0 1 2>;
  61. The above mapping describes that the logical data lane DATA0 is mapped to
  62. the physical data lane DATA3, logical DATA1 to physical DATA0, logic DATA2
  63. to phys DATA1 and logic DATA3 to phys DATA2.
  64. There are only a limited number of physical to logical mappings possible:
  65. <0 1 2 3>
  66. <1 2 3 0>
  67. <2 3 0 1>
  68. <3 0 1 2>
  69. <0 3 2 1>
  70. <1 0 3 2>
  71. <2 1 0 3>
  72. <3 2 1 0>
  73. DSI PHY:
  74. Required properties:
  75. - compatible: Could be the following
  76. * "qcom,dsi-phy-28nm-hpm"
  77. * "qcom,dsi-phy-28nm-lp"
  78. * "qcom,dsi-phy-20nm"
  79. * "qcom,dsi-phy-28nm-8960"
  80. * "qcom,dsi-phy-14nm"
  81. * "qcom,dsi-phy-10nm"
  82. - reg: Physical base address and length of the registers of PLL, PHY. Some
  83. revisions require the PHY regulator base address, whereas others require the
  84. PHY lane base address. See below for each PHY revision.
  85. - reg-names: The names of register regions. The following regions are required:
  86. For DSI 28nm HPM/LP/8960 PHYs and 20nm PHY:
  87. * "dsi_pll"
  88. * "dsi_phy"
  89. * "dsi_phy_regulator"
  90. For DSI 14nm and 10nm PHYs:
  91. * "dsi_pll"
  92. * "dsi_phy"
  93. * "dsi_phy_lane"
  94. - clock-cells: Must be 1. The DSI PHY block acts as a clock provider, creating
  95. 2 clocks: A byte clock (index 0), and a pixel clock (index 1).
  96. - power-domains: Should be <&mmcc MDSS_GDSC>.
  97. - clocks: Phandles to device clocks. See [1] for details on clock bindings.
  98. - clock-names: the following clocks are required:
  99. * "iface"
  100. For 28nm HPM/LP, 28nm 8960 PHYs:
  101. - vddio-supply: phandle to vdd-io regulator device node
  102. For 20nm PHY:
  103. - vddio-supply: phandle to vdd-io regulator device node
  104. - vcca-supply: phandle to vcca regulator device node
  105. For 14nm PHY:
  106. - vcca-supply: phandle to vcca regulator device node
  107. For 10nm PHY:
  108. - vdds-supply: phandle to vdds regulator device node
  109. Optional properties:
  110. - qcom,dsi-phy-regulator-ldo-mode: Boolean value indicating if the LDO mode PHY
  111. regulator is wanted.
  112. - qcom,mdss-mdp-transfer-time-us: Specifies the dsi transfer time for command mode
  113. panels in microseconds. Driver uses this number to adjust
  114. the clock rate according to the expected transfer time.
  115. Increasing this value would slow down the mdp processing
  116. and can result in slower performance.
  117. Decreasing this value can speed up the mdp processing,
  118. but this can also impact power consumption.
  119. As a rule this time should not be higher than the time
  120. that would be expected with the processing at the
  121. dsi link rate since anyways this would be the maximum
  122. transfer time that could be achieved.
  123. If ping pong split is enabled, this time should not be higher
  124. than two times the dsi link rate time.
  125. If the property is not specified, then the default value is 14000 us.
  126. [1] Documentation/devicetree/bindings/clock/clock-bindings.txt
  127. [2] Documentation/devicetree/bindings/graph.txt
  128. [3] Documentation/devicetree/bindings/media/video-interfaces.txt
  129. [4] Documentation/devicetree/bindings/display/panel/
  130. Example:
  131. dsi0: dsi@fd922800 {
  132. compatible = "qcom,mdss-dsi-ctrl";
  133. qcom,dsi-host-index = <0>;
  134. interrupt-parent = <&mdp>;
  135. interrupts = <4 0>;
  136. reg-names = "dsi_ctrl";
  137. reg = <0xfd922800 0x200>;
  138. power-domains = <&mmcc MDSS_GDSC>;
  139. clock-names =
  140. "bus",
  141. "byte",
  142. "core",
  143. "core_mmss",
  144. "iface",
  145. "mdp_core",
  146. "pixel";
  147. clocks =
  148. <&mmcc MDSS_AXI_CLK>,
  149. <&mmcc MDSS_BYTE0_CLK>,
  150. <&mmcc MDSS_ESC0_CLK>,
  151. <&mmcc MMSS_MISC_AHB_CLK>,
  152. <&mmcc MDSS_AHB_CLK>,
  153. <&mmcc MDSS_MDP_CLK>,
  154. <&mmcc MDSS_PCLK0_CLK>;
  155. assigned-clocks =
  156. <&mmcc BYTE0_CLK_SRC>,
  157. <&mmcc PCLK0_CLK_SRC>;
  158. assigned-clock-parents =
  159. <&dsi_phy0 0>,
  160. <&dsi_phy0 1>;
  161. vdda-supply = <&pma8084_l2>;
  162. vdd-supply = <&pma8084_l22>;
  163. vddio-supply = <&pma8084_l12>;
  164. phys = <&dsi_phy0>;
  165. phy-names ="dsi-phy";
  166. qcom,dual-dsi-mode;
  167. qcom,master-dsi;
  168. qcom,sync-dual-dsi;
  169. qcom,mdss-mdp-transfer-time-us = <12000>;
  170. pinctrl-names = "default", "sleep";
  171. pinctrl-0 = <&dsi_active>;
  172. pinctrl-1 = <&dsi_suspend>;
  173. ports {
  174. #address-cells = <1>;
  175. #size-cells = <0>;
  176. port@0 {
  177. reg = <0>;
  178. dsi0_in: endpoint {
  179. remote-endpoint = <&mdp_intf1_out>;
  180. };
  181. };
  182. port@1 {
  183. reg = <1>;
  184. dsi0_out: endpoint {
  185. remote-endpoint = <&panel_in>;
  186. data-lanes = <0 1 2 3>;
  187. };
  188. };
  189. };
  190. panel: panel@0 {
  191. compatible = "sharp,lq101r1sx01";
  192. reg = <0>;
  193. link2 = <&secondary>;
  194. power-supply = <...>;
  195. backlight = <...>;
  196. port {
  197. panel_in: endpoint {
  198. remote-endpoint = <&dsi0_out>;
  199. };
  200. };
  201. };
  202. };
  203. dsi_phy0: dsi-phy@fd922a00 {
  204. compatible = "qcom,dsi-phy-28nm-hpm";
  205. qcom,dsi-phy-index = <0>;
  206. reg-names =
  207. "dsi_pll",
  208. "dsi_phy",
  209. "dsi_phy_regulator";
  210. reg = <0xfd922a00 0xd4>,
  211. <0xfd922b00 0x2b0>,
  212. <0xfd922d80 0x7b>;
  213. clock-names = "iface";
  214. clocks = <&mmcc MDSS_AHB_CLK>;
  215. #clock-cells = <1>;
  216. vddio-supply = <&pma8084_l12>;
  217. qcom,dsi-phy-regulator-ldo-mode;
  218. };