2
0

0122-arm64-dts-ipq8074-add-CPU-clock.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. From cb3ef99c1553565e1dc0301ccd5c1c0fa2d15c15 Mon Sep 17 00:00:00 2001
  2. From: Robert Marko <[email protected]>
  3. Date: Fri, 31 Dec 2021 17:56:14 +0100
  4. Subject: [PATCH] arm64: dts: ipq8074: add CPU clock
  5. Now that CPU clock is exposed and can be controlled, add the necessary
  6. properties to the CPU nodes.
  7. Signed-off-by: Robert Marko <[email protected]>
  8. ---
  9. arch/arm64/boot/dts/qcom/ipq8074.dtsi | 9 +++++++++
  10. 1 file changed, 9 insertions(+)
  11. --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
  12. +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
  13. @@ -5,6 +5,7 @@
  14. #include <dt-bindings/interrupt-controller/arm-gic.h>
  15. #include <dt-bindings/clock/qcom,gcc-ipq8074.h>
  16. +#include <dt-bindings/clock/qcom,apss-ipq.h>
  17. / {
  18. #address-cells = <2>;
  19. @@ -38,6 +39,8 @@
  20. reg = <0x0>;
  21. next-level-cache = <&L2_0>;
  22. enable-method = "psci";
  23. + clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
  24. + clock-names = "cpu";
  25. };
  26. CPU1: cpu@1 {
  27. @@ -46,6 +49,8 @@
  28. enable-method = "psci";
  29. reg = <0x1>;
  30. next-level-cache = <&L2_0>;
  31. + clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
  32. + clock-names = "cpu";
  33. };
  34. CPU2: cpu@2 {
  35. @@ -54,6 +59,8 @@
  36. enable-method = "psci";
  37. reg = <0x2>;
  38. next-level-cache = <&L2_0>;
  39. + clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
  40. + clock-names = "cpu";
  41. };
  42. CPU3: cpu@3 {
  43. @@ -62,6 +69,8 @@
  44. enable-method = "psci";
  45. reg = <0x3>;
  46. next-level-cache = <&L2_0>;
  47. + clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
  48. + clock-names = "cpu";
  49. };
  50. L2_0: l2-cache {