mediatek,cci.yaml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. enum:
  17. - mediatek,mt8183-cci
  18. - mediatek,mt8186-cci
  19. clocks:
  20. items:
  21. - description:
  22. The multiplexer for clock input of the bus.
  23. - description:
  24. A parent of "bus" clock which is used as an intermediate clock source
  25. when the original clock source (PLL) is under transition and not
  26. stable yet.
  27. clock-names:
  28. items:
  29. - const: cci
  30. - const: intermediate
  31. operating-points-v2: true
  32. opp-table:
  33. type: object
  34. proc-supply:
  35. description:
  36. Phandle of the regulator for CCI that provides the supply voltage.
  37. sram-supply:
  38. description:
  39. Phandle of the regulator for sram of CCI that provides the supply
  40. voltage. When it is present, the implementation needs to do
  41. "voltage tracking" to step by step scale up/down Vproc and Vsram to fit
  42. SoC specific needs. When absent, the voltage scaling flow is handled by
  43. hardware, hence no software "voltage tracking" is needed.
  44. required:
  45. - compatible
  46. - clocks
  47. - clock-names
  48. - operating-points-v2
  49. - proc-supply
  50. additionalProperties: false
  51. examples:
  52. - |
  53. #include <dt-bindings/clock/mt8183-clk.h>
  54. cci: cci {
  55. compatible = "mediatek,mt8183-cci";
  56. clocks = <&mcucfg CLK_MCU_BUS_SEL>,
  57. <&topckgen CLK_TOP_ARMPLL_DIV_PLL1>;
  58. clock-names = "cci", "intermediate";
  59. operating-points-v2 = <&cci_opp>;
  60. proc-supply = <&mt6358_vproc12_reg>;
  61. };
  62. cci_opp: opp-table-cci {
  63. compatible = "operating-points-v2";
  64. opp-shared;
  65. opp2_00: opp-273000000 {
  66. opp-hz = /bits/ 64 <273000000>;
  67. opp-microvolt = <650000>;
  68. };
  69. opp2_01: opp-338000000 {
  70. opp-hz = /bits/ 64 <338000000>;
  71. opp-microvolt = <687500>;
  72. };
  73. opp2_02: opp-403000000 {
  74. opp-hz = /bits/ 64 <403000000>;
  75. opp-microvolt = <718750>;
  76. };
  77. opp2_03: opp-463000000 {
  78. opp-hz = /bits/ 64 <463000000>;
  79. opp-microvolt = <756250>;
  80. };
  81. opp2_04: opp-546000000 {
  82. opp-hz = /bits/ 64 <546000000>;
  83. opp-microvolt = <800000>;
  84. };
  85. opp2_05: opp-624000000 {
  86. opp-hz = /bits/ 64 <624000000>;
  87. opp-microvolt = <818750>;
  88. };
  89. opp2_06: opp-689000000 {
  90. opp-hz = /bits/ 64 <689000000>;
  91. opp-microvolt = <850000>;
  92. };
  93. opp2_07: opp-767000000 {
  94. opp-hz = /bits/ 64 <767000000>;
  95. opp-microvolt = <868750>;
  96. };
  97. opp2_08: opp-845000000 {
  98. opp-hz = /bits/ 64 <845000000>;
  99. opp-microvolt = <893750>;
  100. };
  101. opp2_09: opp-871000000 {
  102. opp-hz = /bits/ 64 <871000000>;
  103. opp-microvolt = <906250>;
  104. };
  105. opp2_10: opp-923000000 {
  106. opp-hz = /bits/ 64 <923000000>;
  107. opp-microvolt = <931250>;
  108. };
  109. opp2_11: opp-962000000 {
  110. opp-hz = /bits/ 64 <962000000>;
  111. opp-microvolt = <943750>;
  112. };
  113. opp2_12: opp-1027000000 {
  114. opp-hz = /bits/ 64 <1027000000>;
  115. opp-microvolt = <975000>;
  116. };
  117. opp2_13: opp-1092000000 {
  118. opp-hz = /bits/ 64 <1092000000>;
  119. opp-microvolt = <1000000>;
  120. };
  121. opp2_14: opp-1144000000 {
  122. opp-hz = /bits/ 64 <1144000000>;
  123. opp-microvolt = <1025000>;
  124. };
  125. opp2_15: opp-1196000000 {
  126. opp-hz = /bits/ 64 <1196000000>;
  127. opp-microvolt = <1050000>;
  128. };
  129. };