0130-arm64-dts-qcom-ipq8074-add-CPU-OPP-table.patch 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. From a20c4e8738a00087aa5d53fe5148ed484e23d229 Mon Sep 17 00:00:00 2001
  2. From: Robert Marko <[email protected]>
  3. Date: Sat, 31 Dec 2022 13:56:26 +0100
  4. Subject: [PATCH] arm64: dts: qcom: ipq8074: add CPU OPP table
  5. Now that there is NVMEM CPUFreq support for IPQ8074, we can add the OPP
  6. table for SoC.
  7. Signed-off-by: Robert Marko <[email protected]>
  8. ---
  9. arch/arm64/boot/dts/qcom/ipq8074.dtsi | 52 +++++++++++++++++++++++++++
  10. 1 file changed, 52 insertions(+)
  11. --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
  12. +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
  13. @@ -42,6 +42,7 @@
  14. clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
  15. clock-names = "cpu";
  16. #cooling-cells = <2>;
  17. + operating-points-v2 = <&cpu_opp_table>;
  18. };
  19. CPU1: cpu@1 {
  20. @@ -53,6 +54,7 @@
  21. clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
  22. clock-names = "cpu";
  23. #cooling-cells = <2>;
  24. + operating-points-v2 = <&cpu_opp_table>;
  25. };
  26. CPU2: cpu@2 {
  27. @@ -64,6 +66,7 @@
  28. clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
  29. clock-names = "cpu";
  30. #cooling-cells = <2>;
  31. + operating-points-v2 = <&cpu_opp_table>;
  32. };
  33. CPU3: cpu@3 {
  34. @@ -75,6 +78,7 @@
  35. clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
  36. clock-names = "cpu";
  37. #cooling-cells = <2>;
  38. + operating-points-v2 = <&cpu_opp_table>;
  39. };
  40. L2_0: l2-cache {
  41. @@ -84,6 +88,54 @@
  42. };
  43. };
  44. + cpu_opp_table: opp-table {
  45. + compatible = "operating-points-v2-kryo-cpu";
  46. + nvmem-cells = <&cpr_efuse_speedbin>;
  47. + opp-shared;
  48. +
  49. + opp-1017600000 {
  50. + opp-hz = /bits/ 64 <1017600000>;
  51. + opp-microvolt = <1>;
  52. + opp-supported-hw = <0xf>;
  53. + clock-latency-ns = <200000>;
  54. + };
  55. +
  56. + opp-1382400000 {
  57. + opp-hz = /bits/ 64 <1382400000>;
  58. + opp-microvolt = <2>;
  59. + opp-supported-hw = <0xf>;
  60. + clock-latency-ns = <200000>;
  61. + };
  62. +
  63. + opp-1651200000 {
  64. + opp-hz = /bits/ 64 <1651200000>;
  65. + opp-microvolt = <3>;
  66. + opp-supported-hw = <0x1>;
  67. + clock-latency-ns = <200000>;
  68. + };
  69. +
  70. + opp-1843200000 {
  71. + opp-hz = /bits/ 64 <1843200000>;
  72. + opp-microvolt = <4>;
  73. + opp-supported-hw = <0x1>;
  74. + clock-latency-ns = <200000>;
  75. + };
  76. +
  77. + opp-1920000000 {
  78. + opp-hz = /bits/ 64 <1920000000>;
  79. + opp-microvolt = <5>;
  80. + opp-supported-hw = <0x1>;
  81. + clock-latency-ns = <200000>;
  82. + };
  83. +
  84. + opp-2208000000 {
  85. + opp-hz = /bits/ 64 <2208000000>;
  86. + opp-microvolt = <6>;
  87. + opp-supported-hw = <0x1>;
  88. + clock-latency-ns = <200000>;
  89. + };
  90. + };
  91. +
  92. pmu {
  93. compatible = "arm,cortex-a53-pmu";
  94. interrupts = <GIC_PPI 7 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;