Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2274148rwd; Fri, 26 May 2023 04:30:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6iVEwKL8+N1pt5Se481+qXtPa2Eupdb0RVPj6d6YXOJJUOVMXbP54ZXLeYiUDOPQiAVm5p X-Received: by 2002:a17:902:a417:b0:1af:c0b9:d956 with SMTP id p23-20020a170902a41700b001afc0b9d956mr2109948plq.40.1685100632953; Fri, 26 May 2023 04:30:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685100632; cv=none; d=google.com; s=arc-20160816; b=cf+xti7xqgN9izNbhuToWgM5FLg5AYIUywiklElK46XBKfMVBy7NBlto++QcxROTcF gQnlrC/E4M7+a6l7O2nYsHvMHLtuNrm5KymM3JSDuD3zRMMlx1kcMAiNuzP/vdly+3na MaSJH5qTzA2cO4zRaEQld87Vu50pP9iMwlKOslnB1mXk1+qMFOfxUlwyc3lbWCkfyptz VVj84930AytyTDwtVIOzc4HQ2E/wusbLoAmEKFf14fE4KhT7+HwhsTFLEqXEU95JPQhJ +4XPezfTwEAEsMvSxRFcw6TDvWjiC8BvlbT4FfMcQfH1bbFqqR3xf2wivGaRfafA0mly 8v7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Mw3nbk7BdZVT9IsCVkU+QlkgkIKWzFYXO2s5HPy+Kro=; b=Qn3faEwco9l/LM0esBLTxIggn/KEshyLEBsWzkgQVaxe8pLbA/sdmAxUovID5H7nAq f1OdHfcziZa+Hid4ZCzEXtoBP/fbdMu4wM4npd1OPisXZVsgcNkrPfd8lTQ/NOqS1/4Y IgNkx2udHkekNPvoSU1tqzf4SxFRjTGyIgDPXYRmFKsjMxSxsx306dQIY6qpY3pC/ihB mIzSI4yq+KI2E/LCo6DjWllNwVim4ABJt+iXANTf9NNyMEMKdBsLuTICIxmEIqttflpe qxOwNOWp7aA1PjoqtQNAkFAVI6enAlGLCXMboiszqowS8OohKSUMCpRAt8UBA1DoJB7e +98A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=UGe5kmuv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jd14-20020a170903260e00b001ade5e66c3csi629102plb.76.2023.05.26.04.30.20; Fri, 26 May 2023 04:30:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=UGe5kmuv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243079AbjEZLHk (ORCPT + 99 others); Fri, 26 May 2023 07:07:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242870AbjEZLHc (ORCPT ); Fri, 26 May 2023 07:07:32 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23D9BF7; Fri, 26 May 2023 04:07:32 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34Q9Qrfc004752; Fri, 26 May 2023 11:07:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=Mw3nbk7BdZVT9IsCVkU+QlkgkIKWzFYXO2s5HPy+Kro=; b=UGe5kmuvjQrGldK7Ur8ZUf47L8t3YPX89RLZzFPfaVXtU3tanAEvP8xadyDQACBVFG2Q 2Y8VzusgQjg0BnPaXy8IzRReDlc2/wv1rWcY2kTCKKofoWd2C+46A2Mp7S3IlFLm2kd3 xDgRUlKbxs+lBoGUpY5DRBcMFV99hM3Jv3DUxUB8wVWqYMtN8i6VjNGlrLrILtuc7bZ+ BFlg5Dn0xjNTRSg3ntCR0g6K1egZNcrS+ZqyIcjnlCA19P3A5Y4qhefJPbWSj0ufoikt LP6PJlArYUs3ADNcYMaoO4OeDhtXLtMOw9B9fmXQ9MYZn7jXL/69iuS/7IX2hW4E04P8 NQ== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qtrd8gdf6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 May 2023 11:07:29 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34QB7Sxj017012 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 May 2023 11:07:28 GMT Received: from viswanat-linux.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Fri, 26 May 2023 04:07:23 -0700 From: Vignesh Viswanathan To: , , , , , , , , , CC: , , , , , Vignesh Viswanathan Subject: [PATCH 2/3] arm64: dts: qcom: enable the download mode support Date: Fri, 26 May 2023 16:36:52 +0530 Message-ID: <20230526110653.27777-3-quic_viswanat@quicinc.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230526110653.27777-1-quic_viswanat@quicinc.com> References: <20230526110653.27777-1-quic_viswanat@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: gJAq4W-KE-K7RtJ2E3fHjwZipzC2Wtwc X-Proofpoint-GUID: gJAq4W-KE-K7RtJ2E3fHjwZipzC2Wtwc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-26_01,2023-05-25_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxlogscore=741 adultscore=0 malwarescore=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 mlxscore=0 priorityscore=1501 phishscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305260096 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- arch/arm64/boot/dts/qcom/ipq6018.dtsi | 1 + arch/arm64/boot/dts/qcom/ipq8074.dtsi | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi index f531797f2619..2d77a8336111 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi @@ -91,6 +91,7 @@ L2_0: l2-cache { firmware { scm { compatible = "qcom,scm-ipq6018", "qcom,scm"; + qcom,dload-mode = <&tcsr 0x6100>; }; }; diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index 5b2c1986c8f4..00e559de00fb 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -103,6 +103,7 @@ memory@4ac00000 { firmware { scm { compatible = "qcom,scm-ipq8074", "qcom,scm"; + qcom,dload-mode = <&tcsr 0x6100>; }; }; @@ -382,6 +383,11 @@ tcsr_mutex: hwlock@1905000 { #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>, -- 2.40.1