From patchwork Fri Feb 10 06:04:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kathiravan Thirumoorthy X-Patchwork-Id: 55232 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp781053wrn; Thu, 9 Feb 2023 22:10:20 -0800 (PST) X-Google-Smtp-Source: AK7set+cY5WldQVkdQ2FFY9i+Z44VkAou6fDLWqf39gNd+QmUM8A3gBLZxaqz9i6eK8iD2JuNhcQ X-Received: by 2002:a17:907:961d:b0:8af:2a4e:8f00 with SMTP id gb29-20020a170907961d00b008af2a4e8f00mr9985976ejc.74.1676009419901; Thu, 09 Feb 2023 22:10:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676009419; cv=none; d=google.com; s=arc-20160816; b=H/0cEUMvneg0x3GI6P0KhEKd99jQvXF14m74Bd+qNv4w3sFH4sh/wUCQi9+mwQ6Tg9 Jng6s+8Dssli4CjloGM8KB5Z/WTlZBV238OD4uysYK/LZaBcFOVzrqtPlPpYOTQhU5a7 +ny1ajpaWLEC6x2H3O1sghRjwCR7hn7YM0L1kB95c6Ufze2VAdDM+fH0xj1z0DUJang0 6ykmqkvOBLAtEExiWB1J19SpfkG8XNmfC/7G/tMKNh6I2OFOsCyWdM+RebDslHvlz5x5 Gw5azIGn6f5Gqfz6NfBykknQZBqp76Bgc0c/YtMYdt5LU3xkDWc6uWPpAAsEfOF7ZE7R Mjvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Z8/AxlOkjppv1TSdokIqO5jushzt4DUAvl8M0oRz24g=; b=OBitwItoB8P857dUoTIbPj1uNwVX/I2vc96bm01rZ/Pu/oYaq/O0w8qFZYoJE7Klu3 Hz319hXlgZFMIt7egsA5f0YKGm4rIr0Qz/6UkDYeFVadfPeVEabb5e3HRTf1852zrr0h u8DKzOU+ufGYFswuR1pClS7pQK60ayCGeRV0KhxG83y6lJ+3dpj5OIlZdYw7ajcJWP2y zVUmBU0WIZmGT9VPwu0hvLjapsoJkUw4L85dZMhdxlgOMdG5FS/c7Mh71g/+B1ofjEID 1hlrUfE0AJthb9lc7vh9bK9+GL8xeeTxpLsaGfO9GgL0GBWNtqmvhaVrX+hcc5Y0H/n0 mUgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WJsVp9Xa; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id vw6-20020a170907058600b0087da417217dsi3805022ejb.728.2023.02.09.22.09.56; Thu, 09 Feb 2023 22:10:19 -0800 (PST) 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=WJsVp9Xa; 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 S231178AbjBJGEb (ORCPT + 99 others); Fri, 10 Feb 2023 01:04:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230525AbjBJGE3 (ORCPT ); Fri, 10 Feb 2023 01:04:29 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B863F7432C; Thu, 9 Feb 2023 22:04:28 -0800 (PST) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31A5lBUF000309; Fri, 10 Feb 2023 06:04:25 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-type; s=qcppdkim1; bh=Z8/AxlOkjppv1TSdokIqO5jushzt4DUAvl8M0oRz24g=; b=WJsVp9XacImKGXUezHgtFNIuHABq2DPtMHXVeEp1iGlTZ7WgJJTKy1WMtJFM3tpNYXiK qwWF1B4z0Tpu0WdNaEMSqMus2Cso+w8nSOEhE/YTvGhsNozNoeRNzCOte9XGXYx9MPJb LFC4EahmqS1Y172McIu73b4vepaOA19Tuzf7dj4of92qGlYmbY5IodvB5Ge5SCkDIFu5 eJ2wsY4gZPhGWi6mkXM10jNM9F0G2VrIPyigc20ZtQwbXm9Cwf6rvcObpFNEnlVqmj7L gHzIYRj5AyPXVJlCL2ooHRvLPDVPmAv91T4ys5voeoLiWBRYl+UIOS/KbYRvKjLdGDVb Zg== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nn5ek98qg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 Feb 2023 06:04:25 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 31A64OZk017505 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 Feb 2023 06:04:24 GMT Received: from kathirav-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Thu, 9 Feb 2023 22:04:20 -0800 From: Kathiravan T To: , , , , , , , , CC: , , Kathiravan T Subject: [PATCH V2 1/2] arm64: dts: qcom: ipq5332: enable the download mode support Date: Fri, 10 Feb 2023 11:34:00 +0530 Message-ID: <20230210060401.24383-2-quic_kathirav@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230210060401.24383-1-quic_kathirav@quicinc.com> References: <20230210060401.24383-1-quic_kathirav@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: h4AC4g9aG6Z60jxbE544cixghnLzJAL2 X-Proofpoint-GUID: h4AC4g9aG6Z60jxbE544cixghnLzJAL2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-10_01,2023-02-09_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=756 spamscore=0 adultscore=0 suspectscore=0 phishscore=0 malwarescore=0 mlxscore=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302100052 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757423253395084619?= X-GMAIL-MSGID: =?utf-8?q?1757423253395084619?= Enable the support for download mode to collect the RAM dumps if system crashes, to perform the post mortem analysis. Signed-off-by: Kathiravan T --- Changes in V2: - Mapped the entire TCSR_REGS region and updated the offset in qcom,dload-mode property arch/arm64/boot/dts/qcom/ipq5332.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq5332.dtsi b/arch/arm64/boot/dts/qcom/ipq5332.dtsi index bdf33ef30e10..ad6481dd57ba 100644 --- a/arch/arm64/boot/dts/qcom/ipq5332.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq5332.dtsi @@ -70,6 +70,7 @@ firmware { scm { compatible = "qcom,scm-ipq5332", "qcom,scm"; + qcom,dload-mode = <&tcsr 0x6100>; }; }; @@ -142,6 +143,11 @@ <0>; }; + tcsr: syscon@1937000 { + compatible = "qcom,tcsr-ipq5332", "syscon"; + reg = <0x01937000 0x21000>; + }; + sdhc: mmc@7804000 { compatible = "qcom,ipq5332-sdhci", "qcom,sdhci-msm-v5"; reg = <0x07804000 0x1000>, <0x07805000 0x1000>;