mdss-dsi-ctrl.txt 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. Qualcomm mdss-dsi-ctrl
  2. mdss-dsi-ctrl is a dsi controller device which supports host controllers that
  3. are compatable with MIPI display serial interface specification.
  4. Required properties:
  5. - compatible: Must be "qcom,mdss-dsi-ctrl"
  6. - cell-index: Specifies the controller used among the two controllers.
  7. - reg: Base address and length of the different register
  8. regions(s) required for DSI device functionality.
  9. - reg-names: A list of strings that map in order to the list of regs.
  10. "dsi_ctrl" - MDSS DSI controller register region
  11. "dsi_phy" - MDSS DSI PHY register region
  12. "mmss_misc_phys" - Register region for MMSS DSI clamps
  13. - vdd-supply: Phandle for vdd regulator device node.
  14. - vddio-supply: Phandle for vdd-io regulator device node.
  15. - vdda-supply: Phandle for vreg regulator device node.
  16. - qcom,mdss-fb-map: pHandle that specifies the framebuffer to which the
  17. interface is mapped.
  18. - qcom,mdss-mdp: pHandle that specifies the mdss-mdp device.
  19. - qcom,platform-regulator-settings: An array of length 7 that specifies the PHY
  20. regulator settings.
  21. - qcom,platform-strength-ctrl: An array of length 2 that specifies the PHY
  22. strengthCtrl settings.
  23. - qcom,platform-bist-ctrl: An array of length 6 that specifies the PHY
  24. BIST ctrl settings.
  25. - qcom,platform-lane-config: An array of length 45 that specifies the PHY
  26. lane configuration settings.
  27. - qcom,dsi-pref-prim-pan: phandle that specifies the primary panel to be used
  28. with the controller.
  29. Optional properties:
  30. - label: A string used to describe the controller used.
  31. - qcom,platform-supply-entry<1..n>: A node that lists the elements of the supply. There
  32. can be more than one instance of this binding,
  33. in which case the entry would be appended with
  34. the supply entry index.
  35. e.g. qcom,platform-supply-entry1
  36. -- qcom,supply-name: name of the supply (vdd/vdda/vddio)
  37. -- qcom,supply-min-voltage: minimum voltage level (uV)
  38. -- qcom,supply-max-voltage: maximum voltage level (uV)
  39. -- qcom,supply-enable-load: load drawn (uA) from enabled supply
  40. -- qcom,supply-disable-load: load drawn (uA) from disabled supply
  41. -- qcom,supply-pre-on-sleep: time to sleep (ms) before turning on
  42. -- qcom,supply-post-on-sleep: time to sleep (ms) after turning on
  43. -- qcom,supply-pre-off-sleep: time to sleep (ms) before turning off
  44. -- qcom,supply-post-off-sleep: time to sleep (ms) after turning off
  45. - qcom,platform-enable-gpio: Specifies the panel lcd/display enable gpio.
  46. - qcom,platform-reset-gpio: Specifies the panel reset gpio.
  47. - qcom,platform-te-gpio: Specifies the gpio used for TE.
  48. - qcom,platform-mode-gpio: Select video/command mode of panel through gpio when it supports
  49. both modes.
  50. Example:
  51. mdss_dsi0: qcom,mdss_dsi@fd922800 {
  52. compatible = "qcom,mdss-dsi-ctrl";
  53. label = "MDSS DSI CTRL->0";
  54. cell-index = <0>;
  55. reg = <0xfd922800 0x1f8>,
  56. <0xfd922b00 0x2b0>,
  57. <0xfd828000 0x108>;
  58. reg-names = "dsi_ctrl", "dsi_phy", "mmss_misc_phys";
  59. vdd-supply = <&pm8226_l15>;
  60. vddio-supply = <&pm8226_l8>;
  61. vdda-supply = <&pm8226_l4>;
  62. qcom,dsi-pref-prim-pan = <&dsi_tosh_720_vid>;
  63. qcom,platform-strength-ctrl = [ff 06];
  64. qcom,platform-bist-ctrl = [00 00 b1 ff 00 00];
  65. qcom,platform-regulator-settings = [07 09 03 00 20 00 01];
  66. qcom,platform-lane-config = [00 00 00 00 00 00 00 01 97
  67. 00 00 00 00 05 00 00 01 97
  68. 00 00 00 00 0a 00 00 01 97
  69. 00 00 00 00 0f 00 00 01 97
  70. 00 c0 00 00 00 00 00 01 bb];
  71. qcom,mdss-fb-map = <&mdss_fb0>;
  72. qcom,mdss-mdp = <&mdss_mdp>;
  73. qcom,platform-reset-gpio = <&msmgpio 25 1>;
  74. qcom,platform-te-gpio = <&msmgpio 24 0>;
  75. qcom,platform-enable-gpio = <&msmgpio 58 1>;
  76. qcom,platform-mode-gpio = <&msmgpio 7 0>;
  77. qcom,platform-supply-entry1 {
  78. qcom,supply-name = "vdd";
  79. qcom,supply-min-voltage = <2800000>;
  80. qcom,supply-max-voltage = <2800000>;
  81. qcom,supply-enable-load = <100000>;
  82. qcom,supply-disable-load = <100>;
  83. qcom,supply-pre-on-sleep = <0>;
  84. qcom,supply-post-on-sleep = <20>;
  85. qcom,supply-pre-off-sleep = <0>;
  86. qcom,supply-post-off-sleep = <20>;
  87. };
  88. qcom,platform-supply-entry2 {
  89. qcom,supply-name = "vddio";
  90. qcom,supply-min-voltage = <1800000>;
  91. qcom,supply-max-voltage = <1800000>;
  92. qcom,supply-enable-load = <100000>;
  93. qcom,supply-disable-load = <100>;
  94. qcom,supply-pre-on-sleep = <0>;
  95. qcom,supply-post-on-sleep = <30>;
  96. qcom,supply-pre-off-sleep = <0>;
  97. qcom,supply-post-off-sleep = <30>;
  98. };
  99. qcom,platform-supply-entry3 {
  100. qcom,supply-name = "vdda";
  101. qcom,supply-min-voltage = <1200000>;
  102. qcom,supply-max-voltage = <1200000>;
  103. qcom,supply-enable-load = <100000>;
  104. qcom,supply-disable-load = <100>;
  105. qcom,supply-pre-on-sleep = <0>;
  106. qcom,supply-post-on-sleep = <20>;
  107. qcom,supply-pre-off-sleep = <0>;
  108. qcom,supply-post-off-sleep = <30>;
  109. };
  110. };