arm64: dts: qcom: enable the download mode support
authorVignesh Viswanathan <quic_viswanat@quicinc.com>
Fri, 26 May 2023 11:06:52 +0000 (16:36 +0530)
committerBjorn Andersson <andersson@kernel.org>
Fri, 26 May 2023 20:12:53 +0000 (13:12 -0700)
Like any other Qualcomm SoCs, IPQ8074 and IPQ6018 also supports the
download mode to collect the RAM dumps if system crashes, to perform
the post mortem analysis. Add support for the same.

Signed-off-by: Vignesh Viswanathan <quic_viswanat@quicinc.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230526110653.27777-3-quic_viswanat@quicinc.com
arch/arm64/boot/dts/qcom/ipq6018.dtsi
arch/arm64/boot/dts/qcom/ipq8074.dtsi

index a629dd5893b395deae55d98594c642fd8f353278..e21e36e192145323f910d0c72c1fbd857121c634 100644 (file)
@@ -90,6 +90,7 @@
        firmware {
                scm {
                        compatible = "qcom,scm-ipq6018", "qcom,scm";
+                       qcom,dload-mode = <&tcsr 0x6100>;
                };
        };
 
index 6b3fc4ac13205828d9029dfe962d011a9f783cc6..695ad1fece0088460979cd5a91d33f97ba187d99 100644 (file)
        firmware {
                scm {
                        compatible = "qcom,scm-ipq8074", "qcom,scm";
+                       qcom,dload-mode = <&tcsr 0x6100>;
                };
        };
 
                        #hwlock-cells = <1>;
                };
 
+               tcsr: syscon@1937000 {
+                       compatible = "qcom,tcsr-ipq8074", "syscon";
+                       reg = <0x01937000 0x21000>;
+               };
+
                spmi_bus: spmi@200f000 {
                        compatible = "qcom,spmi-pmic-arb";
                        reg = <0x0200f000 0x001000>,