0051-v6.6-arm64-dts-qcom-Add-rpm-proc-node-for-GLINK.patch 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. From 7e1acc8b92a3b67db1e5255adae2851d58d74434 Mon Sep 17 00:00:00 2001
  2. From: Stephan Gerhold <[email protected]>
  3. Date: Thu, 15 Jun 2023 18:50:44 +0200
  4. Subject: [PATCH] arm64: dts: qcom: Add rpm-proc node for GLINK gplatforms
  5. Rather than having the RPM GLINK channels as the only child of a dummy
  6. top-level rpm-glink node, switch to representing the RPM as remoteproc
  7. like all the other remoteprocs (modem DSP, ...).
  8. This allows assigning additional subdevices to it like the MPM
  9. interrupt-controller or rpm-master-stats.
  10. Tested-by: Konrad Dybcio <[email protected]> # SM6375
  11. Signed-off-by: Stephan Gerhold <[email protected]>
  12. Link: https://lore.kernel.org/r/[email protected]
  13. Signed-off-by: Bjorn Andersson <[email protected]>
  14. ---
  15. arch/arm64/boot/dts/qcom/ipq6018.dtsi | 48 ++++----
  16. arch/arm64/boot/dts/qcom/ipq9574.dtsi | 28 +++--
  17. arch/arm64/boot/dts/qcom/msm8996.dtsi | 113 +++++++++----------
  18. arch/arm64/boot/dts/qcom/msm8998.dtsi | 102 ++++++++---------
  19. arch/arm64/boot/dts/qcom/qcm2290.dtsi | 126 ++++++++++-----------
  20. arch/arm64/boot/dts/qcom/qcs404.dtsi | 152 +++++++++++++-------------
  21. arch/arm64/boot/dts/qcom/sdm630.dtsi | 132 +++++++++++-----------
  22. arch/arm64/boot/dts/qcom/sm6115.dtsi | 128 +++++++++++-----------
  23. arch/arm64/boot/dts/qcom/sm6125.dtsi | 140 ++++++++++++------------
  24. arch/arm64/boot/dts/qcom/sm6375.dtsi | 126 ++++++++++-----------
  25. 10 files changed, 566 insertions(+), 529 deletions(-)
  26. --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi
  27. +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi
  28. @@ -145,6 +145,32 @@
  29. method = "smc";
  30. };
  31. + rpm: remoteproc {
  32. + compatible = "qcom,ipq6018-rpm-proc", "qcom,rpm-proc";
  33. +
  34. + glink-edge {
  35. + compatible = "qcom,glink-rpm";
  36. + interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>;
  37. + qcom,rpm-msg-ram = <&rpm_msg_ram>;
  38. + mboxes = <&apcs_glb 0>;
  39. +
  40. + rpm_requests: rpm-requests {
  41. + compatible = "qcom,rpm-ipq6018";
  42. + qcom,glink-channels = "rpm_requests";
  43. +
  44. + regulators {
  45. + compatible = "qcom,rpm-mp5496-regulators";
  46. +
  47. + ipq6018_s2: s2 {
  48. + regulator-min-microvolt = <725000>;
  49. + regulator-max-microvolt = <1062500>;
  50. + regulator-always-on;
  51. + };
  52. + };
  53. + };
  54. + };
  55. + };
  56. +
  57. reserved-memory {
  58. #address-cells = <2>;
  59. #size-cells = <2>;
  60. @@ -181,28 +207,6 @@
  61. };
  62. };
  63. - rpm-glink {
  64. - compatible = "qcom,glink-rpm";
  65. - interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>;
  66. - qcom,rpm-msg-ram = <&rpm_msg_ram>;
  67. - mboxes = <&apcs_glb 0>;
  68. -
  69. - rpm_requests: rpm-requests {
  70. - compatible = "qcom,rpm-ipq6018";
  71. - qcom,glink-channels = "rpm_requests";
  72. -
  73. - regulators {
  74. - compatible = "qcom,rpm-mp5496-regulators";
  75. -
  76. - ipq6018_s2: s2 {
  77. - regulator-min-microvolt = <725000>;
  78. - regulator-max-microvolt = <1062500>;
  79. - regulator-always-on;
  80. - };
  81. - };
  82. - };
  83. - };
  84. -
  85. smem {
  86. compatible = "qcom,smem";
  87. memory-region = <&smem_region>;