msm8226-mdss.dtsi 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. /* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. &soc {
  13. mdss_mdp: qcom,mdss_mdp@fd900000 {
  14. compatible = "qcom,mdss_mdp";
  15. reg = <0xfd900000 0x22100>,
  16. <0xfd924000 0x1000>;
  17. reg-names = "mdp_phys", "vbif_phys";
  18. interrupts = <0 72 0>;
  19. vdd-supply = <&gdsc_mdss>;
  20. qcom,max-bandwidth-low-kbps = <1100000>;
  21. qcom,max-bandwidth-high-kbps = <1660000>;
  22. /* Bus Scale Settings */
  23. qcom,msm-bus,name = "mdss_mdp";
  24. qcom,msm-bus,num-cases = <3>;
  25. qcom,msm-bus,num-paths = <1>;
  26. qcom,msm-bus,vectors-KBps =
  27. <22 512 0 0>,
  28. <22 512 0 6400000>,
  29. <22 512 0 6400000>;
  30. /* Fudge factors */
  31. qcom,mdss-ab-factor = <1 1>; /* 1 times */
  32. qcom,mdss-ib-factor = <2 1>; /* 2 times */
  33. qcom,mdss-clk-factor = <5 4>; /* 1.25 times */
  34. /* Clock levels */
  35. qcom,mdss-clk-levels = <92310000 100000000
  36. 133330000 177780000 200000000>;
  37. qcom,max-clk-rate = <200000000>;
  38. qcom,mdss-pipe-vig-off = <0x00001200>;
  39. qcom,mdss-pipe-rgb-off = <0x00001E00>;
  40. qcom,mdss-pipe-dma-off = <0x00002A00>;
  41. qcom,mdss-pipe-vig-fetch-id = <1>;
  42. qcom,mdss-pipe-rgb-fetch-id = <7>;
  43. qcom,mdss-pipe-dma-fetch-id = <4>;
  44. qcom,mdss-pipe-vig-xin-id = <0>;
  45. qcom,mdss-pipe-rgb-xin-id = <1>;
  46. qcom,mdss-pipe-dma-xin-id = <2>;
  47. qcom,mdss-pipe-vig-clk-ctrl-offsets = <0x3AC 0 0>;
  48. qcom,mdss-pipe-rgb-clk-ctrl-offsets = <0x3AC 4 8>;
  49. qcom,mdss-pipe-dma-clk-ctrl-offsets = <0x3AC 8 12>;
  50. qcom,mdss-smp-data = <7 4096>;
  51. qcom,mdss-no-lut-read;
  52. qcom,mdss-ctl-off = <0x00000600 0x00000700>;
  53. qcom,mdss-mixer-intf-off = <0x00003200>;
  54. qcom,mdss-mixer-wb-off = <0x00003E00>;
  55. qcom,mdss-dspp-off = <0x00004600>;
  56. qcom,mdss-pingpong-off = <0x00021B00>;
  57. qcom,mdss-wb-off = <0x00011100 0x00013100>;
  58. qcom,mdss-intf-off = <0x00000000 0x00021300>;
  59. qcom,mdss-rot-block-size = <64>;
  60. qcom,mdss-rotator-ot-limit = <2>;
  61. qcom,mdss-smp-mb-per-pipe = <3>;
  62. vdd-cx-supply = <&pm8226_s1_corner>;
  63. qcom,vbif-settings = <0x004 0x00000001>,
  64. <0x0D8 0x00000707>,
  65. <0x124 0x00000003>;
  66. qcom,mdp-settings = <0x02E0 0x000000A5>,
  67. <0x02E4 0x00000055>,
  68. <0x03AC 0xC0000CCC>,
  69. <0x03B4 0xC0000000>,
  70. <0x03BC 0x00C00C00>,
  71. <0x04A8 0x0CCCC000>,
  72. <0x04B0 0xC0000000>,
  73. <0x04B8 0xC0000000>;
  74. /* buffer parameters to calculate prefill bandwidth */
  75. qcom,mdss-prefill-outstanding-buffer-bytes = <1024>;
  76. qcom,mdss-prefill-y-buffer-bytes = <0>;
  77. qcom,mdss-prefill-scaler-buffer-lines-bilinear = <2>;
  78. qcom,mdss-prefill-scaler-buffer-lines-caf = <4>;
  79. qcom,mdss-prefill-post-scaler-buffer-pixels = <0>;
  80. qcom,mdss-prefill-pingpong-buffer-pixels = <4096>;
  81. qcom,mdss-prefill-fbc-lines = <0>;
  82. mdss_fb0: qcom,mdss_fb_primary {
  83. cell-index = <0>;
  84. compatible = "qcom,mdss-fb";
  85. qcom,memblock-reserve = <0x03200000 0xFA0000>;
  86. };
  87. mdss_fb1: qcom,mdss_fb_wfd {
  88. cell-index = <1>;
  89. compatible = "qcom,mdss-fb";
  90. };
  91. };
  92. mdss_dsi0: qcom,mdss_dsi@fd922800 {
  93. compatible = "qcom,mdss-dsi-ctrl";
  94. label = "MDSS DSI CTRL->0";
  95. cell-index = <0>;
  96. reg = <0xfd922800 0x1f8>,
  97. <0xfd922b00 0x2b0>,
  98. <0xfd828000 0x108>;
  99. reg-names = "dsi_ctrl", "dsi_phy", "mmss_misc_phys";
  100. qcom,mdss-fb-map = <&mdss_fb0>;
  101. qcom,mdss-mdp = <&mdss_mdp>;
  102. vdd-supply = <&pm8226_l15>;
  103. vddio-supply = <&pm8226_l8>;
  104. vdda-supply = <&pm8226_l4>;
  105. qcom,platform-reset-gpio = <&msmgpio 25 0>;
  106. qcom,platform-te-gpio = <&msmgpio 24 0>;
  107. qcom,platform-strength-ctrl = [ff 06];
  108. qcom,platform-bist-ctrl = [00 00 b1 ff 00 00];
  109. qcom,platform-regulator-settings = [07 08 07 00 20 07 01];
  110. qcom,platform-lane-config = [00 00 00 00 00 00 00 01 97
  111. 00 00 00 00 00 00 00 01 97
  112. 00 00 00 00 00 00 00 01 97
  113. 00 00 00 00 00 00 00 01 97
  114. 00 c0 00 00 00 00 00 01 bb];
  115. qcom,platform-supply-entry1 {
  116. qcom,supply-name = "vdd";
  117. qcom,supply-min-voltage = <2800000>;
  118. qcom,supply-max-voltage = <2800000>;
  119. qcom,supply-enable-load = <100000>;
  120. qcom,supply-disable-load = <100>;
  121. qcom,supply-pre-on-sleep = <0>;
  122. qcom,supply-post-on-sleep = <0>;
  123. qcom,supply-pre-off-sleep = <0>;
  124. qcom,supply-post-off-sleep = <0>;
  125. };
  126. qcom,platform-supply-entry2 {
  127. qcom,supply-name = "vddio";
  128. qcom,supply-min-voltage = <1800000>;
  129. qcom,supply-max-voltage = <1800000>;
  130. qcom,supply-enable-load = <100000>;
  131. qcom,supply-disable-load = <100>;
  132. qcom,supply-pre-on-sleep = <0>;
  133. qcom,supply-post-on-sleep = <0>;
  134. qcom,supply-pre-off-sleep = <0>;
  135. qcom,supply-post-off-sleep = <0>;
  136. };
  137. qcom,platform-supply-entry3 {
  138. qcom,supply-name = "vdda";
  139. qcom,supply-min-voltage = <1200000>;
  140. qcom,supply-max-voltage = <1200000>;
  141. qcom,supply-enable-load = <100000>;
  142. qcom,supply-disable-load = <100>;
  143. qcom,supply-pre-on-sleep = <0>;
  144. qcom,supply-post-on-sleep = <20>;
  145. qcom,supply-pre-off-sleep = <0>;
  146. qcom,supply-post-off-sleep = <0>;
  147. };
  148. };
  149. qcom,mdss_wb_panel {
  150. compatible = "qcom,mdss_wb";
  151. qcom,mdss_pan_res = <1280 720>;
  152. qcom,mdss_pan_bpp = <24>;
  153. qcom,mdss-fb-map = <&mdss_fb1>;
  154. };
  155. };
  156. /include/ "msm8226-mdss-panels.dtsi"