dsi.txt 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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. - qcom,dsi-host-index: The ID of DSI controller hardware instance. This should
  10. be 0 or 1, since we have 2 DSI controllers at most for now.
  11. - interrupts: The interrupt signal from the DSI block.
  12. - power-domains: Should be <&mmcc MDSS_GDSC>.
  13. - clocks: Phandles to device clocks.
  14. - clock-names: the following clocks are required:
  15. * "mdp_core_clk"
  16. * "iface_clk"
  17. * "bus_clk"
  18. * "core_mmss_clk"
  19. * "byte_clk"
  20. * "pixel_clk"
  21. * "core_clk"
  22. For DSIv2, we need an additional clock:
  23. * "src_clk"
  24. - assigned-clocks: Parents of "byte_clk" and "pixel_clk" 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. - interrupt-parent: phandle to the MDP block if the interrupt signal is routed
  45. through MDP block
  46. - pinctrl-names: the pin control state names; should contain "default"
  47. - pinctrl-0: the default pinctrl state (active)
  48. - pinctrl-n: the "sleep" pinctrl state
  49. - ports: contains DSI controller input and output ports as children, each
  50. containing one endpoint subnode.
  51. DSI Endpoint properties:
  52. - remote-endpoint: For port@0, set to phandle of the connected panel/bridge's
  53. input endpoint. For port@1, set to the MDP interface output. See [2] for
  54. device graph info.
  55. - data-lanes: this describes how the physical DSI data lanes are mapped
  56. to the logical lanes on the given platform. The value contained in
  57. index n describes what physical lane is mapped to the logical lane n
  58. (DATAn, where n lies between 0 and 3). The clock lane position is fixed
  59. and can't be changed. Hence, they aren't a part of the DT bindings. See
  60. [3] for more info on the data-lanes property.
  61. For example:
  62. data-lanes = <3 0 1 2>;
  63. The above mapping describes that the logical data lane DATA0 is mapped to
  64. the physical data lane DATA3, logical DATA1 to physical DATA0, logic DATA2
  65. to phys DATA1 and logic DATA3 to phys DATA2.
  66. There are only a limited number of physical to logical mappings possible:
  67. <0 1 2 3>
  68. <1 2 3 0>
  69. <2 3 0 1>
  70. <3 0 1 2>
  71. <0 3 2 1>
  72. <1 0 3 2>
  73. <2 1 0 3>
  74. <3 2 1 0>
  75. DSI PHY:
  76. Required properties:
  77. - compatible: Could be the following
  78. * "qcom,dsi-phy-28nm-hpm"
  79. * "qcom,dsi-phy-28nm-lp"
  80. * "qcom,dsi-phy-20nm"
  81. * "qcom,dsi-phy-28nm-8960"
  82. - reg: Physical base address and length of the registers of PLL, PHY and PHY
  83. regulator
  84. - reg-names: The names of register regions. The following regions are required:
  85. * "dsi_pll"
  86. * "dsi_phy"
  87. * "dsi_phy_regulator"
  88. - clock-cells: Must be 1. The DSI PHY block acts as a clock provider, creating
  89. 2 clocks: A byte clock (index 0), and a pixel clock (index 1).
  90. - qcom,dsi-phy-index: The ID of DSI PHY hardware instance. This should
  91. be 0 or 1, since we have 2 DSI PHYs at most for now.
  92. - power-domains: Should be <&mmcc MDSS_GDSC>.
  93. - clocks: Phandles to device clocks. See [1] for details on clock bindings.
  94. - clock-names: the following clocks are required:
  95. * "iface_clk"
  96. - vddio-supply: phandle to vdd-io regulator device node
  97. Optional properties:
  98. - qcom,dsi-phy-regulator-ldo-mode: Boolean value indicating if the LDO mode PHY
  99. regulator is wanted.
  100. - qcom,mdss-mdp-transfer-time-us: Specifies the dsi transfer time for command mode
  101. panels in microseconds. Driver uses this number to adjust
  102. the clock rate according to the expected transfer time.
  103. Increasing this value would slow down the mdp processing
  104. and can result in slower performance.
  105. Decreasing this value can speed up the mdp processing,
  106. but this can also impact power consumption.
  107. As a rule this time should not be higher than the time
  108. that would be expected with the processing at the
  109. dsi link rate since anyways this would be the maximum
  110. transfer time that could be achieved.
  111. If ping pong split is enabled, this time should not be higher
  112. than two times the dsi link rate time.
  113. If the property is not specified, then the default value is 14000 us.
  114. - qcom,panel-allow-phy-poweroff: A boolean property indicates that panel allows to turn off the phy power
  115. supply during idle screen. A panel should be able to handle the dsi lanes
  116. in floating state(not LP00 or LP11) to turn on this property. Software
  117. turns off PHY pmic power supply, phy ldo and DSI Lane ldo during
  118. idle screen (footswitch control off) when this property is enabled.
  119. - qcom,dsi-phy-regulator-min-datarate-bps: Minimum per lane data rate (bps) to turn on PHY regulator.
  120. [1] Documentation/devicetree/bindings/clocks/clock-bindings.txt
  121. [2] Documentation/devicetree/bindings/graph.txt
  122. [3] Documentation/devicetree/bindings/media/video-interfaces.txt
  123. [4] Documentation/devicetree/bindings/display/panel/
  124. Example:
  125. dsi0: dsi@fd922800 {
  126. compatible = "qcom,mdss-dsi-ctrl";
  127. qcom,dsi-host-index = <0>;
  128. interrupt-parent = <&mdp>;
  129. interrupts = <4 0>;
  130. reg-names = "dsi_ctrl";
  131. reg = <0xfd922800 0x200>;
  132. power-domains = <&mmcc MDSS_GDSC>;
  133. clock-names =
  134. "bus_clk",
  135. "byte_clk",
  136. "core_clk",
  137. "core_mmss_clk",
  138. "iface_clk",
  139. "mdp_core_clk",
  140. "pixel_clk";
  141. clocks =
  142. <&mmcc MDSS_AXI_CLK>,
  143. <&mmcc MDSS_BYTE0_CLK>,
  144. <&mmcc MDSS_ESC0_CLK>,
  145. <&mmcc MMSS_MISC_AHB_CLK>,
  146. <&mmcc MDSS_AHB_CLK>,
  147. <&mmcc MDSS_MDP_CLK>,
  148. <&mmcc MDSS_PCLK0_CLK>;
  149. assigned-clocks =
  150. <&mmcc BYTE0_CLK_SRC>,
  151. <&mmcc PCLK0_CLK_SRC>;
  152. assigned-clock-parents =
  153. <&dsi_phy0 0>,
  154. <&dsi_phy0 1>;
  155. vdda-supply = <&pma8084_l2>;
  156. vdd-supply = <&pma8084_l22>;
  157. vddio-supply = <&pma8084_l12>;
  158. phys = <&dsi_phy0>;
  159. phy-names ="dsi-phy";
  160. qcom,dual-dsi-mode;
  161. qcom,master-dsi;
  162. qcom,sync-dual-dsi;
  163. qcom,mdss-mdp-transfer-time-us = <12000>;
  164. pinctrl-names = "default", "sleep";
  165. pinctrl-0 = <&dsi_active>;
  166. pinctrl-1 = <&dsi_suspend>;
  167. ports {
  168. #address-cells = <1>;
  169. #size-cells = <0>;
  170. port@0 {
  171. reg = <0>;
  172. dsi0_in: endpoint {
  173. remote-endpoint = <&mdp_intf1_out>;
  174. };
  175. };
  176. port@1 {
  177. reg = <1>;
  178. dsi0_out: endpoint {
  179. remote-endpoint = <&panel_in>;
  180. data-lanes = <0 1 2 3>;
  181. };
  182. };
  183. };
  184. panel: panel@0 {
  185. compatible = "sharp,lq101r1sx01";
  186. reg = <0>;
  187. link2 = <&secondary>;
  188. power-supply = <...>;
  189. backlight = <...>;
  190. port {
  191. panel_in: endpoint {
  192. remote-endpoint = <&dsi0_out>;
  193. };
  194. };
  195. };
  196. };
  197. dsi_phy0: dsi-phy@fd922a00 {
  198. compatible = "qcom,dsi-phy-28nm-hpm";
  199. qcom,dsi-phy-index = <0>;
  200. reg-names =
  201. "dsi_pll",
  202. "dsi_phy",
  203. "dsi_phy_regulator";
  204. reg = <0xfd922a00 0xd4>,
  205. <0xfd922b00 0x2b0>,
  206. <0xfd922d80 0x7b>;
  207. clock-names = "iface_clk";
  208. clocks = <&mmcc MDSS_AHB_CLK>;
  209. #clock-cells = <1>;
  210. vddio-supply = <&pma8084_l12>;
  211. qcom,dsi-phy-regulator-ldo-mode;
  212. qcom,panel-allow-phy-poweroff;
  213. qcom,dsi-phy-regulator-min-datarate-bps = <1200000000>;
  214. };