304-add-cpu-idle-state-into-ipq8064-DT.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. From 3985d2c24d96f72211488fc6ebb53b032e4d0a05 Mon Sep 17 00:00:00 2001
  2. From: Pavel Kubelun <be.dissent@gmail.com>
  3. Date: Sun, 6 Nov 2016 19:02:34 +0300
  4. Subject: [PATCH] ipq806x: add cpu idle state into ipq8064 DT
  5. Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
  6. ---
  7. arch/arm/boot/dts/qcom-ipq8064.dtsi | 16 ++++++++++++++--
  8. 1 file changed, 14 insertions(+), 2 deletions(-)
  9. --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
  10. +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
  11. @@ -18,7 +18,7 @@
  12. #address-cells = <1>;
  13. #size-cells = <0>;
  14. - cpu@0 {
  15. + cpu0: cpu@0 {
  16. compatible = "qcom,krait";
  17. enable-method = "qcom,kpss-acc-v1";
  18. device_type = "cpu";
  19. @@ -31,9 +31,10 @@
  20. clock-latency = <100000>;
  21. cpu-supply = <&smb208_s2a>;
  22. voltage-tolerance = <5>;
  23. + cpu-idle-states = <&CPU_SPC>;
  24. };
  25. - cpu@1 {
  26. + cpu1: cpu@1 {
  27. compatible = "qcom,krait";
  28. enable-method = "qcom,kpss-acc-v1";
  29. device_type = "cpu";
  30. @@ -45,6 +46,7 @@
  31. clock-names = "cpu", "l2";
  32. clock-latency = <100000>;
  33. cpu-supply = <&smb208_s2b>;
  34. + cpu-idle-states = <&CPU_SPC>;
  35. };
  36. L2: l2-cache {
  37. @@ -56,6 +58,16 @@
  38. qcom,l2 {
  39. qcom,l2-rates = <384000000 1000000000 1200000000>;
  40. };
  41. +
  42. + idle-states {
  43. + CPU_SPC: spc {
  44. + compatible = "qcom,idle-state-spc",
  45. + "arm,idle-state";
  46. + entry-latency-us = <400>;
  47. + exit-latency-us = <900>;
  48. + min-residency-us = <3000>;
  49. + };
  50. + };
  51. };
  52. cpu-pmu {