sdm660.dtsi 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2018, Craig Tatlor.
  4. * Copyright (c) 2020, Alexey Minnekhanov <[email protected]>
  5. * Copyright (c) 2020, AngeloGioacchino Del Regno <[email protected]>
  6. * Copyright (c) 2020, Konrad Dybcio <[email protected]>
  7. * Copyright (c) 2020, Martin Botka <[email protected]>
  8. */
  9. #include "sdm630.dtsi"
  10. &adreno_gpu {
  11. compatible = "qcom,adreno-512.0", "qcom,adreno";
  12. operating-points-v2 = <&gpu_sdm660_opp_table>;
  13. gpu_sdm660_opp_table: opp-table {
  14. compatible = "operating-points-v2";
  15. /*
  16. * 775MHz is only available on the highest speed bin
  17. * Though it cannot be used for now due to interconnect
  18. * framework not supporting multiple frequencies
  19. * at the same opp-level
  20. opp-750000000 {
  21. opp-hz = /bits/ 64 <750000000>;
  22. opp-level = <RPM_SMD_LEVEL_TURBO>;
  23. opp-peak-kBps = <5412000>;
  24. opp-supported-hw = <0xCHECKME>;
  25. };
  26. * These OPPs are correct, but we are lacking support for the
  27. * GPU regulator. Hence, disable them for now to prevent the
  28. * platform from hanging on high graphics loads.
  29. opp-700000000 {
  30. opp-hz = /bits/ 64 <700000000>;
  31. opp-level = <RPM_SMD_LEVEL_TURBO>;
  32. opp-peak-kBps = <5184000>;
  33. opp-supported-hw = <0xFF>;
  34. };
  35. opp-647000000 {
  36. opp-hz = /bits/ 64 <647000000>;
  37. opp-level = <RPM_SMD_LEVEL_NOM_PLUS>;
  38. opp-peak-kBps = <4068000>;
  39. opp-supported-hw = <0xFF>;
  40. };
  41. opp-588000000 {
  42. opp-hz = /bits/ 64 <588000000>;
  43. opp-level = <RPM_SMD_LEVEL_NOM>;
  44. opp-peak-kBps = <3072000>;
  45. opp-supported-hw = <0xFF>;
  46. };
  47. opp-465000000 {
  48. opp-hz = /bits/ 64 <465000000>;
  49. opp-level = <RPM_SMD_LEVEL_SVS_PLUS>;
  50. opp-peak-kBps = <2724000>;
  51. opp-supported-hw = <0xFF>;
  52. };
  53. opp-370000000 {
  54. opp-hz = /bits/ 64 <370000000>;
  55. opp-level = <RPM_SMD_LEVEL_SVS>;
  56. opp-peak-kBps = <2188000>;
  57. opp-supported-hw = <0xFF>;
  58. };
  59. */
  60. opp-266000000 {
  61. opp-hz = /bits/ 64 <266000000>;
  62. opp-level = <RPM_SMD_LEVEL_LOW_SVS>;
  63. opp-peak-kBps = <1648000>;
  64. opp-supported-hw = <0xFF>;
  65. };
  66. opp-160000000 {
  67. opp-hz = /bits/ 64 <160000000>;
  68. opp-level = <RPM_SMD_LEVEL_MIN_SVS>;
  69. opp-peak-kBps = <1200000>;
  70. opp-supported-hw = <0xFF>;
  71. };
  72. };
  73. };
  74. &CPU0 {
  75. compatible = "qcom,kryo260";
  76. capacity-dmips-mhz = <1024>;
  77. /delete-property/ operating-points-v2;
  78. };
  79. &CPU1 {
  80. compatible = "qcom,kryo260";
  81. capacity-dmips-mhz = <1024>;
  82. /delete-property/ operating-points-v2;
  83. };
  84. &CPU2 {
  85. compatible = "qcom,kryo260";
  86. capacity-dmips-mhz = <1024>;
  87. /delete-property/ operating-points-v2;
  88. };
  89. &CPU3 {
  90. compatible = "qcom,kryo260";
  91. capacity-dmips-mhz = <1024>;
  92. /delete-property/ operating-points-v2;
  93. };
  94. &CPU4 {
  95. compatible = "qcom,kryo260";
  96. capacity-dmips-mhz = <640>;
  97. /delete-property/ operating-points-v2;
  98. };
  99. &CPU5 {
  100. compatible = "qcom,kryo260";
  101. capacity-dmips-mhz = <640>;
  102. /delete-property/ operating-points-v2;
  103. };
  104. &CPU6 {
  105. compatible = "qcom,kryo260";
  106. capacity-dmips-mhz = <640>;
  107. /delete-property/ operating-points-v2;
  108. };
  109. &CPU7 {
  110. compatible = "qcom,kryo260";
  111. capacity-dmips-mhz = <640>;
  112. /delete-property/ operating-points-v2;
  113. };
  114. &gcc {
  115. compatible = "qcom,gcc-sdm660";
  116. };
  117. &gpucc {
  118. compatible = "qcom,gpucc-sdm660";
  119. };
  120. &mdp {
  121. ports {
  122. port@1 {
  123. reg = <1>;
  124. mdp5_intf2_out: endpoint {
  125. remote-endpoint = <&dsi1_in>;
  126. };
  127. };
  128. };
  129. };
  130. &mdss {
  131. dsi1: dsi@c996000 {
  132. compatible = "qcom,mdss-dsi-ctrl";
  133. reg = <0x0c996000 0x400>;
  134. reg-names = "dsi_ctrl";
  135. /* DSI1 shares the OPP table with DSI0 */
  136. operating-points-v2 = <&dsi_opp_table>;
  137. power-domains = <&rpmpd SDM660_VDDCX>;
  138. interrupt-parent = <&mdss>;
  139. interrupts = <5>;
  140. assigned-clocks = <&mmcc BYTE1_CLK_SRC>,
  141. <&mmcc PCLK1_CLK_SRC>;
  142. assigned-clock-parents = <&dsi1_phy 0>,
  143. <&dsi1_phy 1>;
  144. clocks = <&mmcc MDSS_MDP_CLK>,
  145. <&mmcc MDSS_BYTE1_CLK>,
  146. <&mmcc MDSS_BYTE1_INTF_CLK>,
  147. <&mmcc MNOC_AHB_CLK>,
  148. <&mmcc MDSS_AHB_CLK>,
  149. <&mmcc MDSS_AXI_CLK>,
  150. <&mmcc MISC_AHB_CLK>,
  151. <&mmcc MDSS_PCLK1_CLK>,
  152. <&mmcc MDSS_ESC1_CLK>;
  153. clock-names = "mdp_core",
  154. "byte",
  155. "byte_intf",
  156. "mnoc",
  157. "iface",
  158. "bus",
  159. "core_mmss",
  160. "pixel",
  161. "core";
  162. phys = <&dsi1_phy>;
  163. phy-names = "dsi";
  164. status = "disabled";
  165. ports {
  166. #address-cells = <1>;
  167. #size-cells = <0>;
  168. port@0 {
  169. reg = <0>;
  170. dsi1_in: endpoint {
  171. remote-endpoint = <&mdp5_intf2_out>;
  172. };
  173. };
  174. port@1 {
  175. reg = <1>;
  176. dsi1_out: endpoint {
  177. };
  178. };
  179. };
  180. };
  181. dsi1_phy: dsi-phy@c996400 {
  182. compatible = "qcom,dsi-phy-14nm-660";
  183. reg = <0x0c996400 0x100>,
  184. <0x0c996500 0x300>,
  185. <0x0c996800 0x188>;
  186. reg-names = "dsi_phy",
  187. "dsi_phy_lane",
  188. "dsi_pll";
  189. #clock-cells = <1>;
  190. #phy-cells = <0>;
  191. clocks = <&mmcc MDSS_AHB_CLK>, <&rpmcc RPM_SMD_XO_CLK_SRC>;
  192. clock-names = "iface", "ref";
  193. status = "disabled";
  194. };
  195. };
  196. &mmcc {
  197. compatible = "qcom,mmcc-sdm660";
  198. clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>,
  199. <&sleep_clk>,
  200. <&gcc GCC_MMSS_GPLL0_CLK>,
  201. <&gcc GCC_MMSS_GPLL0_DIV_CLK>,
  202. <&dsi0_phy 1>,
  203. <&dsi0_phy 0>,
  204. <&dsi1_phy 1>,
  205. <&dsi1_phy 0>,
  206. <0>,
  207. <0>;
  208. };
  209. &tlmm {
  210. compatible = "qcom,sdm660-pinctrl";
  211. };
  212. &tsens {
  213. #qcom,sensors = <14>;
  214. };