107-10-ARM-dts-qcom-add-saw-for-l2-cache-and-kraitcc-for.patch 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. From bef5018abb7cf94efafdc05087b4c998891ae4ec Mon Sep 17 00:00:00 2001
  2. From: Ansuel Smith <[email protected]>
  3. Date: Mon, 17 Jan 2022 23:39:34 +0100
  4. Subject: [PATCH v3 10/18] ARM: dts: qcom: add saw for l2 cache and kraitcc for
  5. ipq8064
  6. Add saw compatible for l2 cache and kraitcc node for ipq8064 dtsi.
  7. Also declare clock-output-names for acc0 and acc1 and qsb fixed clock
  8. for the secondary mux.
  9. Signed-off-by: Ansuel Smith <[email protected]>
  10. Tested-by: Jonathan McDowell <[email protected]>
  11. ---
  12. arch/arm/boot/dts/qcom-ipq8064.dtsi | 34 +++++++++++++++++++++++++++--
  13. 1 file changed, 32 insertions(+), 2 deletions(-)
  14. --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
  15. +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
  16. @@ -301,6 +301,12 @@
  17. };
  18. clocks {
  19. + qsb: qsb {
  20. + compatible = "fixed-clock";
  21. + clock-frequency = <225000000>;
  22. + #clock-cells = <0>;
  23. + };
  24. +
  25. cxo_board: cxo_board {
  26. compatible = "fixed-clock";
  27. #clock-cells = <0>;
  28. @@ -575,15 +581,30 @@
  29. clocks = <&gcc PLL8_VOTE>, <&pxo_board>;
  30. clock-names = "pll8_vote", "pxo";
  31. clock-output-names = "acpu_l2_aux";
  32. + #clock-cells = <0>;
  33. + };
  34. +
  35. + kraitcc: clock-controller {
  36. + compatible = "qcom,krait-cc-v1";
  37. + clocks = <&gcc PLL9>, <&gcc PLL10>, <&gcc PLL12>,
  38. + <&acc0>, <&acc1>, <&l2cc>, <&qsb>, <&pxo_board>;
  39. + clock-names = "hfpll0", "hfpll1", "hfpll_l2",
  40. + "acpu0_aux", "acpu1_aux", "acpu_l2_aux",
  41. + "qsb", "pxo";
  42. + #clock-cells = <1>;
  43. };
  44. acc0: clock-controller@2088000 {
  45. compatible = "qcom,kpss-acc-v1";
  46. reg = <0x02088000 0x1000>, <0x02008000 0x1000>;
  47. + clock-output-names = "acpu0_aux";
  48. + clocks = <&gcc PLL8_VOTE>, <&pxo_board>;
  49. + clock-names = "pll8_vote", "pxo";
  50. + #clock-cells = <0>;
  51. };
  52. saw0: regulator@2089000 {
  53. - compatible = "qcom,saw2";
  54. + compatible = "qcom,saw2", "qcom,apq8064-saw2-v1.1-cpu", "syscon";
  55. reg = <0x02089000 0x1000>, <0x02009000 0x1000>;
  56. regulator;
  57. };
  58. @@ -591,14 +612,24 @@
  59. acc1: clock-controller@2098000 {
  60. compatible = "qcom,kpss-acc-v1";
  61. reg = <0x02098000 0x1000>, <0x02008000 0x1000>;
  62. + clock-output-names = "acpu1_aux";
  63. + clocks = <&gcc PLL8_VOTE>, <&pxo_board>;
  64. + clock-names = "pll8_vote", "pxo";
  65. + #clock-cells = <0>;
  66. };
  67. saw1: regulator@2099000 {
  68. - compatible = "qcom,saw2";
  69. + compatible = "qcom,saw2", "qcom,apq8064-saw2-v1.1-cpu", "syscon";
  70. reg = <0x02099000 0x1000>, <0x02009000 0x1000>;
  71. regulator;
  72. };
  73. + saw_l2: regulator@02012000 {
  74. + compatible = "qcom,saw2", "syscon";
  75. + reg = <0x02012000 0x1000>;
  76. + regulator;
  77. + };
  78. +
  79. nss_common: syscon@03000000 {
  80. compatible = "syscon";
  81. reg = <0x03000000 0x0000FFFF>;