mt8173-cpu-dvfs.txt 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. Device Tree Clock bindins for CPU DVFS of Mediatek MT8173 SoC
  2. Required properties:
  3. - clocks: A list of phandle + clock-specifier pairs for the clocks listed in clock names.
  4. - clock-names: Should contain the following:
  5. "cpu" - The multiplexer for clock input of CPU cluster.
  6. "intermediate" - A parent of "cpu" clock which is used as "intermediate" clock
  7. source (usually MAINPLL) when the original CPU PLL is under
  8. transition and not stable yet.
  9. Please refer to Documentation/devicetree/bindings/clk/clock-bindings.txt for
  10. generic clock consumer properties.
  11. - proc-supply: Regulator for Vproc of CPU cluster.
  12. Optional properties:
  13. - sram-supply: Regulator for Vsram of CPU cluster. When present, the cpufreq driver
  14. needs to do "voltage tracking" to step by step scale up/down Vproc and
  15. Vsram to fit SoC specific needs. When absent, the voltage scaling
  16. flow is handled by hardware, hence no software "voltage tracking" is
  17. needed.
  18. Example:
  19. --------
  20. cpu0: cpu@0 {
  21. device_type = "cpu";
  22. compatible = "arm,cortex-a53";
  23. reg = <0x000>;
  24. enable-method = "psci";
  25. cpu-idle-states = <&CPU_SLEEP_0>;
  26. clocks = <&infracfg CLK_INFRA_CA53SEL>,
  27. <&apmixedsys CLK_APMIXED_MAINPLL>;
  28. clock-names = "cpu", "intermediate";
  29. };
  30. cpu1: cpu@1 {
  31. device_type = "cpu";
  32. compatible = "arm,cortex-a53";
  33. reg = <0x001>;
  34. enable-method = "psci";
  35. cpu-idle-states = <&CPU_SLEEP_0>;
  36. clocks = <&infracfg CLK_INFRA_CA53SEL>,
  37. <&apmixedsys CLK_APMIXED_MAINPLL>;
  38. clock-names = "cpu", "intermediate";
  39. };
  40. cpu2: cpu@100 {
  41. device_type = "cpu";
  42. compatible = "arm,cortex-a57";
  43. reg = <0x100>;
  44. enable-method = "psci";
  45. cpu-idle-states = <&CPU_SLEEP_0>;
  46. clocks = <&infracfg CLK_INFRA_CA57SEL>,
  47. <&apmixedsys CLK_APMIXED_MAINPLL>;
  48. clock-names = "cpu", "intermediate";
  49. };
  50. cpu3: cpu@101 {
  51. device_type = "cpu";
  52. compatible = "arm,cortex-a57";
  53. reg = <0x101>;
  54. enable-method = "psci";
  55. cpu-idle-states = <&CPU_SLEEP_0>;
  56. clocks = <&infracfg CLK_INFRA_CA57SEL>,
  57. <&apmixedsys CLK_APMIXED_MAINPLL>;
  58. clock-names = "cpu", "intermediate";
  59. };
  60. &cpu0 {
  61. proc-supply = <&mt6397_vpca15_reg>;
  62. };
  63. &cpu1 {
  64. proc-supply = <&mt6397_vpca15_reg>;
  65. };
  66. &cpu2 {
  67. proc-supply = <&da9211_vcpu_reg>;
  68. sram-supply = <&mt6397_vsramca7_reg>;
  69. };
  70. &cpu3 {
  71. proc-supply = <&da9211_vcpu_reg>;
  72. sram-supply = <&mt6397_vsramca7_reg>;
  73. };