mediatek,cci.yaml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/interconnect/mediatek,cci.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: MediaTek Cache Coherent Interconnect (CCI) frequency and voltage scaling
  7. maintainers:
  8. - Jia-Wei Chang <jia-wei.chang@mediatek.com>
  9. - Johnson Wang <johnson.wang@mediatek.com>
  10. description: |
  11. MediaTek Cache Coherent Interconnect (CCI) is a hardware engine used by
  12. MT8183 and MT8186 SoCs to scale the frequency and adjust the voltage in
  13. hardware. It can also optimize the voltage to reduce the power consumption.
  14. properties:
  15. compatible:
  16. oneOf:
  17. - enum:
  18. - mediatek,mt8183-cci
  19. - mediatek,mt8186-cci
  20. - items:
  21. - enum:
  22. - mediatek,mt7988-cci
  23. - const: mediatek,mt8183-cci
  24. clocks:
  25. items:
  26. - description:
  27. The multiplexer for clock input of the bus.
  28. - description:
  29. A parent of "bus" clock which is used as an intermediate clock source
  30. when the original clock source (PLL) is under transition and not
  31. stable yet.
  32. clock-names:
  33. items:
  34. - const: cci
  35. - const: intermediate
  36. operating-points-v2: true
  37. opp-table:
  38. type: object
  39. proc-supply:
  40. description:
  41. Phandle of the regulator for CCI that provides the supply voltage.
  42. sram-supply:
  43. description:
  44. Phandle of the regulator for sram of CCI that provides the supply
  45. voltage. When it is present, the implementation needs to do
  46. "voltage tracking" to step by step scale up/down Vproc and Vsram to fit
  47. SoC specific needs. When absent, the voltage scaling flow is handled by
  48. hardware, hence no software "voltage tracking" is needed.
  49. required:
  50. - compatible
  51. - clocks
  52. - clock-names
  53. - operating-points-v2
  54. - proc-supply
  55. additionalProperties: false
  56. examples:
  57. - |
  58. #include <dt-bindings/clock/mt8183-clk.h>
  59. cci: cci {
  60. compatible = "mediatek,mt8183-cci";
  61. clocks = <&mcucfg CLK_MCU_BUS_SEL>,
  62. <&topckgen CLK_TOP_ARMPLL_DIV_PLL1>;
  63. clock-names = "cci", "intermediate";
  64. operating-points-v2 = <&cci_opp>;
  65. proc-supply = <&mt6358_vproc12_reg>;
  66. };
  67. cci_opp: opp-table-cci {
  68. compatible = "operating-points-v2";
  69. opp-shared;
  70. opp2_00: opp-273000000 {
  71. opp-hz = /bits/ 64 <273000000>;
  72. opp-microvolt = <650000>;
  73. };
  74. opp2_01: opp-338000000 {
  75. opp-hz = /bits/ 64 <338000000>;
  76. opp-microvolt = <687500>;
  77. };
  78. opp2_02: opp-403000000 {
  79. opp-hz = /bits/ 64 <403000000>;
  80. opp-microvolt = <718750>;
  81. };
  82. opp2_03: opp-463000000 {
  83. opp-hz = /bits/ 64 <463000000>;
  84. opp-microvolt = <756250>;
  85. };
  86. opp2_04: opp-546000000 {
  87. opp-hz = /bits/ 64 <546000000>;
  88. opp-microvolt = <800000>;
  89. };
  90. opp2_05: opp-624000000 {
  91. opp-hz = /bits/ 64 <624000000>;
  92. opp-microvolt = <818750>;
  93. };
  94. opp2_06: opp-689000000 {
  95. opp-hz = /bits/ 64 <689000000>;
  96. opp-microvolt = <850000>;
  97. };
  98. opp2_07: opp-767000000 {
  99. opp-hz = /bits/ 64 <767000000>;
  100. opp-microvolt = <868750>;
  101. };
  102. opp2_08: opp-845000000 {
  103. opp-hz = /bits/ 64 <845000000>;
  104. opp-microvolt = <893750>;
  105. };
  106. opp2_09: opp-871000000 {
  107. opp-hz = /bits/ 64 <871000000>;
  108. opp-microvolt = <906250>;
  109. };
  110. opp2_10: opp-923000000 {
  111. opp-hz = /bits/ 64 <923000000>;
  112. opp-microvolt = <931250>;
  113. };
  114. opp2_11: opp-962000000 {
  115. opp-hz = /bits/ 64 <962000000>;
  116. opp-microvolt = <943750>;
  117. };
  118. opp2_12: opp-1027000000 {
  119. opp-hz = /bits/ 64 <1027000000>;
  120. opp-microvolt = <975000>;
  121. };
  122. opp2_13: opp-1092000000 {
  123. opp-hz = /bits/ 64 <1092000000>;
  124. opp-microvolt = <1000000>;
  125. };
  126. opp2_14: opp-1144000000 {
  127. opp-hz = /bits/ 64 <1144000000>;
  128. opp-microvolt = <1025000>;
  129. };
  130. opp2_15: opp-1196000000 {
  131. opp-hz = /bits/ 64 <1196000000>;
  132. opp-microvolt = <1050000>;
  133. };
  134. };