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