cpufreq-mediatek.txt 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. Binding for MediaTek's CPUFreq driver
  2. =====================================
  3. Required properties:
  4. - clocks: A list of phandle + clock-specifier pairs for the clocks listed in clock names.
  5. - clock-names: Should contain the following:
  6. "cpu" - The multiplexer for clock input of CPU cluster.
  7. "intermediate" - A parent of "cpu" clock which is used as "intermediate" clock
  8. source (usually MAINPLL) when the original CPU PLL is under
  9. transition and not stable yet.
  10. Please refer to Documentation/devicetree/bindings/clock/clock-bindings.txt for
  11. generic clock consumer properties.
  12. - operating-points-v2: Please refer to Documentation/devicetree/bindings/opp/opp.txt
  13. for detail.
  14. - proc-supply: Regulator for Vproc of CPU cluster.
  15. Optional properties:
  16. - sram-supply: Regulator for Vsram of CPU cluster. When present, the cpufreq driver
  17. needs to do "voltage tracking" to step by step scale up/down Vproc and
  18. Vsram to fit SoC specific needs. When absent, the voltage scaling
  19. flow is handled by hardware, hence no software "voltage tracking" is
  20. needed.
  21. - #cooling-cells:
  22. Please refer to Documentation/devicetree/bindings/thermal/thermal.txt
  23. for detail.
  24. Example 1 (MT7623 SoC):
  25. cpu_opp_table: opp_table {
  26. compatible = "operating-points-v2";
  27. opp-shared;
  28. opp-598000000 {
  29. opp-hz = /bits/ 64 <598000000>;
  30. opp-microvolt = <1050000>;
  31. };
  32. opp-747500000 {
  33. opp-hz = /bits/ 64 <747500000>;
  34. opp-microvolt = <1050000>;
  35. };
  36. opp-1040000000 {
  37. opp-hz = /bits/ 64 <1040000000>;
  38. opp-microvolt = <1150000>;
  39. };
  40. opp-1196000000 {
  41. opp-hz = /bits/ 64 <1196000000>;
  42. opp-microvolt = <1200000>;
  43. };
  44. opp-1300000000 {
  45. opp-hz = /bits/ 64 <1300000000>;
  46. opp-microvolt = <1300000>;
  47. };
  48. };
  49. cpu0: cpu@0 {
  50. device_type = "cpu";
  51. compatible = "arm,cortex-a7";
  52. reg = <0x0>;
  53. clocks = <&infracfg CLK_INFRA_CPUSEL>,
  54. <&apmixedsys CLK_APMIXED_MAINPLL>;
  55. clock-names = "cpu", "intermediate";
  56. operating-points-v2 = <&cpu_opp_table>;
  57. #cooling-cells = <2>;
  58. };
  59. cpu@1 {
  60. device_type = "cpu";
  61. compatible = "arm,cortex-a7";
  62. reg = <0x1>;
  63. operating-points-v2 = <&cpu_opp_table>;
  64. };
  65. cpu@2 {
  66. device_type = "cpu";
  67. compatible = "arm,cortex-a7";
  68. reg = <0x2>;
  69. operating-points-v2 = <&cpu_opp_table>;
  70. };
  71. cpu@3 {
  72. device_type = "cpu";
  73. compatible = "arm,cortex-a7";
  74. reg = <0x3>;
  75. operating-points-v2 = <&cpu_opp_table>;
  76. };
  77. Example 2 (MT8173 SoC):
  78. cpu_opp_table_a: opp_table_a {
  79. compatible = "operating-points-v2";
  80. opp-shared;
  81. opp-507000000 {
  82. opp-hz = /bits/ 64 <507000000>;
  83. opp-microvolt = <859000>;
  84. };
  85. opp-702000000 {
  86. opp-hz = /bits/ 64 <702000000>;
  87. opp-microvolt = <908000>;
  88. };
  89. opp-1001000000 {
  90. opp-hz = /bits/ 64 <1001000000>;
  91. opp-microvolt = <983000>;
  92. };
  93. opp-1105000000 {
  94. opp-hz = /bits/ 64 <1105000000>;
  95. opp-microvolt = <1009000>;
  96. };
  97. opp-1183000000 {
  98. opp-hz = /bits/ 64 <1183000000>;
  99. opp-microvolt = <1028000>;
  100. };
  101. opp-1404000000 {
  102. opp-hz = /bits/ 64 <1404000000>;
  103. opp-microvolt = <1083000>;
  104. };
  105. opp-1508000000 {
  106. opp-hz = /bits/ 64 <1508000000>;
  107. opp-microvolt = <1109000>;
  108. };
  109. opp-1573000000 {
  110. opp-hz = /bits/ 64 <1573000000>;
  111. opp-microvolt = <1125000>;
  112. };
  113. };
  114. cpu_opp_table_b: opp_table_b {
  115. compatible = "operating-points-v2";
  116. opp-shared;
  117. opp-507000000 {
  118. opp-hz = /bits/ 64 <507000000>;
  119. opp-microvolt = <828000>;
  120. };
  121. opp-702000000 {
  122. opp-hz = /bits/ 64 <702000000>;
  123. opp-microvolt = <867000>;
  124. };
  125. opp-1001000000 {
  126. opp-hz = /bits/ 64 <1001000000>;
  127. opp-microvolt = <927000>;
  128. };
  129. opp-1209000000 {
  130. opp-hz = /bits/ 64 <1209000000>;
  131. opp-microvolt = <968000>;
  132. };
  133. opp-1404000000 {
  134. opp-hz = /bits/ 64 <1007000000>;
  135. opp-microvolt = <1028000>;
  136. };
  137. opp-1612000000 {
  138. opp-hz = /bits/ 64 <1612000000>;
  139. opp-microvolt = <1049000>;
  140. };
  141. opp-1807000000 {
  142. opp-hz = /bits/ 64 <1807000000>;
  143. opp-microvolt = <1089000>;
  144. };
  145. opp-1989000000 {
  146. opp-hz = /bits/ 64 <1989000000>;
  147. opp-microvolt = <1125000>;
  148. };
  149. };
  150. cpu0: cpu@0 {
  151. device_type = "cpu";
  152. compatible = "arm,cortex-a53";
  153. reg = <0x000>;
  154. enable-method = "psci";
  155. cpu-idle-states = <&CPU_SLEEP_0>;
  156. clocks = <&infracfg CLK_INFRA_CA53SEL>,
  157. <&apmixedsys CLK_APMIXED_MAINPLL>;
  158. clock-names = "cpu", "intermediate";
  159. operating-points-v2 = <&cpu_opp_table_a>;
  160. };
  161. cpu1: cpu@1 {
  162. device_type = "cpu";
  163. compatible = "arm,cortex-a53";
  164. reg = <0x001>;
  165. enable-method = "psci";
  166. cpu-idle-states = <&CPU_SLEEP_0>;
  167. clocks = <&infracfg CLK_INFRA_CA53SEL>,
  168. <&apmixedsys CLK_APMIXED_MAINPLL>;
  169. clock-names = "cpu", "intermediate";
  170. operating-points-v2 = <&cpu_opp_table_a>;
  171. };
  172. cpu2: cpu@100 {
  173. device_type = "cpu";
  174. compatible = "arm,cortex-a57";
  175. reg = <0x100>;
  176. enable-method = "psci";
  177. cpu-idle-states = <&CPU_SLEEP_0>;
  178. clocks = <&infracfg CLK_INFRA_CA57SEL>,
  179. <&apmixedsys CLK_APMIXED_MAINPLL>;
  180. clock-names = "cpu", "intermediate";
  181. operating-points-v2 = <&cpu_opp_table_b>;
  182. };
  183. cpu3: cpu@101 {
  184. device_type = "cpu";
  185. compatible = "arm,cortex-a57";
  186. reg = <0x101>;
  187. enable-method = "psci";
  188. cpu-idle-states = <&CPU_SLEEP_0>;
  189. clocks = <&infracfg CLK_INFRA_CA57SEL>,
  190. <&apmixedsys CLK_APMIXED_MAINPLL>;
  191. clock-names = "cpu", "intermediate";
  192. operating-points-v2 = <&cpu_opp_table_b>;
  193. };
  194. &cpu0 {
  195. proc-supply = <&mt6397_vpca15_reg>;
  196. };
  197. &cpu1 {
  198. proc-supply = <&mt6397_vpca15_reg>;
  199. };
  200. &cpu2 {
  201. proc-supply = <&da9211_vcpu_reg>;
  202. sram-supply = <&mt6397_vsramca7_reg>;
  203. };
  204. &cpu3 {
  205. proc-supply = <&da9211_vcpu_reg>;
  206. sram-supply = <&mt6397_vsramca7_reg>;
  207. };