072-qcom-ipq4019-add-cpu-operating-points-for-cpufreq-su.patch 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. From 544af73985cd14b450bb8e8a6c22b89a555ac729 Mon Sep 17 00:00:00 2001
  2. From: Matthew McClintock <[email protected]>
  3. Date: Mon, 23 Jul 2018 09:10:35 +0200
  4. Subject: [PATCH 6/8] 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. Signed-off-by: John Crispin <[email protected]>
  9. ---
  10. arch/arm/boot/dts/qcom-ipq4019.dtsi | 34 ++++++++++++++++++++++++++--------
  11. 1 file changed, 26 insertions(+), 8 deletions(-)
  12. Index: linux-4.14.54/arch/arm/boot/dts/qcom-ipq4019.dtsi
  13. ===================================================================
  14. --- linux-4.14.54.orig/arch/arm/boot/dts/qcom-ipq4019.dtsi
  15. +++ linux-4.14.54/arch/arm/boot/dts/qcom-ipq4019.dtsi
  16. @@ -41,14 +41,7 @@
  17. reg = <0x0>;
  18. clocks = <&gcc GCC_APPS_CLK_SRC>;
  19. clock-frequency = <0>;
  20. - operating-points = <
  21. - /* kHz uV (fixed) */
  22. - 48000 1100000
  23. - 200000 1100000
  24. - 500000 1100000
  25. - 666000 1100000
  26. - >;
  27. - clock-latency = <256000>;
  28. + operating-points-v2 = <&cpu0_opp_table>;
  29. };
  30. cpu@1 {
  31. @@ -61,6 +54,7 @@
  32. reg = <0x1>;
  33. clocks = <&gcc GCC_APPS_CLK_SRC>;
  34. clock-frequency = <0>;
  35. + operating-points-v2 = <&cpu0_opp_table>;
  36. };
  37. cpu@2 {
  38. @@ -73,6 +67,7 @@
  39. reg = <0x2>;
  40. clocks = <&gcc GCC_APPS_CLK_SRC>;
  41. clock-frequency = <0>;
  42. + operating-points-v2 = <&cpu0_opp_table>;
  43. };
  44. cpu@3 {
  45. @@ -85,6 +80,29 @@
  46. reg = <0x3>;
  47. clocks = <&gcc GCC_APPS_CLK_SRC>;
  48. clock-frequency = <0>;
  49. + operating-points-v2 = <&cpu0_opp_table>;
  50. + };
  51. + };
  52. +
  53. + cpu0_opp_table: opp_table0 {
  54. + compatible = "operating-points-v2";
  55. + opp-shared;
  56. +
  57. + opp-48000000 {
  58. + opp-hz = /bits/ 64 <48000000>;
  59. + clock-latency-ns = <256000>;
  60. + };
  61. + opp-200000000 {
  62. + opp-hz = /bits/ 64 <200000000>;
  63. + clock-latency-ns = <256000>;
  64. + };
  65. + opp-500000000 {
  66. + opp-hz = /bits/ 64 <500000000>;
  67. + clock-latency-ns = <256000>;
  68. + };
  69. + opp-716000000 {
  70. + opp-hz = /bits/ 64 <716000000>;
  71. + clock-latency-ns = <256000>;
  72. };
  73. L2: l2-cache {