0040-v6.5-arm64-dts-qcom-enable-the-download-mode-support.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. From 9b2406aaba7841863ac041225316c1ec1c86ea36 Mon Sep 17 00:00:00 2001
  2. From: Vignesh Viswanathan <[email protected]>
  3. Date: Fri, 26 May 2023 16:36:52 +0530
  4. Subject: [PATCH] arm64: dts: qcom: enable the download mode support
  5. Like any other Qualcomm SoCs, IPQ8074 and IPQ6018 also supports the
  6. download mode to collect the RAM dumps if system crashes, to perform
  7. the post mortem analysis. Add support for the same.
  8. Signed-off-by: Vignesh Viswanathan <[email protected]>
  9. Signed-off-by: Bjorn Andersson <[email protected]>
  10. Link: https://lore.kernel.org/r/[email protected]
  11. ---
  12. arch/arm64/boot/dts/qcom/ipq6018.dtsi | 1 +
  13. arch/arm64/boot/dts/qcom/ipq8074.dtsi | 6 ++++++
  14. 2 files changed, 7 insertions(+)
  15. --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi
  16. +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi
  17. @@ -90,6 +90,7 @@
  18. firmware {
  19. scm {
  20. compatible = "qcom,scm-ipq6018", "qcom,scm";
  21. + qcom,dload-mode = <&tcsr 0x6100>;
  22. };
  23. };
  24. --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
  25. +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
  26. @@ -112,6 +112,7 @@
  27. firmware {
  28. scm {
  29. compatible = "qcom,scm-ipq8074", "qcom,scm";
  30. + qcom,dload-mode = <&tcsr 0x6100>;
  31. };
  32. };
  33. @@ -386,6 +387,11 @@
  34. #hwlock-cells = <1>;
  35. };
  36. + tcsr: syscon@1937000 {
  37. + compatible = "qcom,tcsr-ipq8074", "syscon";
  38. + reg = <0x01937000 0x21000>;
  39. + };
  40. +
  41. spmi_bus: spmi@200f000 {
  42. compatible = "qcom,spmi-pmic-arb";
  43. reg = <0x0200f000 0x001000>,