0017-qcom-ipq4019-add-cpu-operating-points-for-cpufreq-su.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. From 18c3b42575a154343831aec0637aab00e19440e1 Mon Sep 17 00:00:00 2001
  2. From: Matthew McClintock <[email protected]>
  3. Date: Thu, 17 Mar 2016 15:01:09 -0500
  4. Subject: [PATCH 17/69] qcom: ipq4019: add cpu operating points for cpufreq
  5. support
  6. This adds some operating points for cpu frequeny scaling
  7. Signed-off-by: Matthew McClintock <[email protected]>
  8. ---
  9. arch/arm/boot/dts/qcom-ipq4019.dtsi | 34 ++++++++++++++++++++++++++--------
  10. 1 file changed, 26 insertions(+), 8 deletions(-)
  11. --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi
  12. +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi
  13. @@ -40,14 +40,7 @@
  14. reg = <0x0>;
  15. clocks = <&gcc GCC_APPS_CLK_SRC>;
  16. clock-frequency = <0>;
  17. - operating-points = <
  18. - /* kHz uV (fixed) */
  19. - 48000 1100000
  20. - 200000 1100000
  21. - 500000 1100000
  22. - 666000 1100000
  23. - >;
  24. - clock-latency = <256000>;
  25. + operating-points-v2 = <&cpu0_opp_table>;
  26. };
  27. cpu@1 {
  28. @@ -59,6 +52,7 @@
  29. reg = <0x1>;
  30. clocks = <&gcc GCC_APPS_CLK_SRC>;
  31. clock-frequency = <0>;
  32. + operating-points-v2 = <&cpu0_opp_table>;
  33. };
  34. cpu@2 {
  35. @@ -70,6 +64,7 @@
  36. reg = <0x2>;
  37. clocks = <&gcc GCC_APPS_CLK_SRC>;
  38. clock-frequency = <0>;
  39. + operating-points-v2 = <&cpu0_opp_table>;
  40. };
  41. cpu@3 {
  42. @@ -81,6 +76,29 @@
  43. reg = <0x3>;
  44. clocks = <&gcc GCC_APPS_CLK_SRC>;
  45. clock-frequency = <0>;
  46. + operating-points-v2 = <&cpu0_opp_table>;
  47. + };
  48. + };
  49. +
  50. + cpu0_opp_table: opp_table0 {
  51. + compatible = "operating-points-v2";
  52. + opp-shared;
  53. +
  54. + opp@48000000 {
  55. + opp-hz = /bits/ 64 <48000000>;
  56. + clock-latency-ns = <256000>;
  57. + };
  58. + opp@200000000 {
  59. + opp-hz = /bits/ 64 <200000000>;
  60. + clock-latency-ns = <256000>;
  61. + };
  62. + opp@500000000 {
  63. + opp-hz = /bits/ 64 <500000000>;
  64. + clock-latency-ns = <256000>;
  65. + };
  66. + opp@666000000 {
  67. + opp-hz = /bits/ 64 <666000000>;
  68. + clock-latency-ns = <256000>;
  69. };
  70. };