From patchwork Tue Mar 28 10:20:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Poovendhan Selvaraj X-Patchwork-Id: 13190876 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EFC14C76196 for ; Tue, 28 Mar 2023 10:21:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=K/0uCnkxFPG5i7DjB88+wFTMUYIhF+enO6mqlP/nnjw=; b=WOsTpmdHL7O9rH RZ3Jq8FmJtApC6K3QrOOzMnw6AGNaL014QVSEOhce3TuQREc1jJiTfM1dxhCH899/36V2fwh+LRgB 6mkziBSfzeIRIaW9jJmW9ebzLHSBdRR0KQWEZeJqnJl/9RpJ7WmzKkbynybJ/8MGosq/0OonW/Lf6 l0OBsZilnHnCs9EiZzgcZEIfsq8d7sf/vNaQ0O1KF8z6nqzaY8BH7c64IMylb6ViWOT5exTqQ23XH g0NtHYfBN9l9hBw+Ef9wo3UC4fse9mKCz+rloDL6TEC/3ghBSAqppOYdY1dth9scr7I08gz2TNhkV HBm0EPnlYQRA9NsZeIiw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ph6Rj-00DvEV-2r; Tue, 28 Mar 2023 10:20:55 +0000 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1ph6Rc-00DvCr-0i for linux-arm-kernel@lists.infradead.org; Tue, 28 Mar 2023 10:20:49 +0000 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 32S6WhKG024481; Tue, 28 Mar 2023 10:20:44 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=Bx3vU3oLlqRRG8aYWK7Po3UY7rjnId/JOR9XG1pdoXc=; b=pdyqoGDrTJTxOhT6CKKxOv9q+aiaKS6HHyl2wsYOFxvt6A148dZF9e9r5FSacv84bOjx TT4n6HgsW1ShsUad/Utq/01exmgl5OvhnxTXhiUNosS+IKe4OOuzO/fDQvV7I6VHFDLg G9ox1P6r3mA8ETCyoxiYjfZ9OUU+NlMRjo/7DMH//kYKzMpPDiHckN5U0uIt71AEJ/5v e0E0Tb+jIYYkeSIqWqFIWkJWkQhb7OZm8tBW721NC7gY+wYY6Q3L8p7nNuy6lDX4n5xJ dDtFwo1uYOBIUwzi0c9gkE/g8To9URGxb7p7uZ30MSoaDr5Yx2YHrDm6D5WEPvUg5O+e mw== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3pkbywap14-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Mar 2023 10:20:44 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 32SAKhGi028962 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Mar 2023 10:20:43 GMT Received: from poovendh-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.41; Tue, 28 Mar 2023 03:20:37 -0700 From: Poovendhan Selvaraj To: , , , , , , , , , CC: , , , , , , Subject: [PATCH V6 1/2] arm64: dts: qcom: ipq9574: Enable the download mode support Date: Tue, 28 Mar 2023 15:50:12 +0530 Message-ID: <20230328102013.21361-2-quic_poovendh@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230328102013.21361-1-quic_poovendh@quicinc.com> References: <20230328102013.21361-1-quic_poovendh@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-GUID: abwH8kX732TR9mFfxJXnYcPAygaprGYI X-Proofpoint-ORIG-GUID: abwH8kX732TR9mFfxJXnYcPAygaprGYI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-24_11,2023-03-28_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 suspectscore=0 adultscore=0 priorityscore=1501 mlxlogscore=827 spamscore=0 malwarescore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2303280086 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230328_032048_273167_AA1F6EF7 X-CRM114-Status: GOOD ( 16.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable the support for download mode to collect the crashdumps if system crashes, to debug crashes extensively. Signed-off-by: Poovendhan Selvaraj --- Changes in V6: - No changes Changes in V5: - No changes Changes in V4: - Dropped smem related nodes from this patch - Mapped the entire TCSR_REGS region and updated the offset in qcom,dload-mode property - updated the commit message Changes in V3: - No changes arch/arm64/boot/dts/qcom/ipq9574.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi index 3bb7435f5e7f..099948f36efc 100644 --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi @@ -81,6 +81,13 @@ reg = <0x0 0x40000000 0x0 0x0>; }; + firmware { + scm { + compatible = "qcom,scm-ipq9574", "qcom,scm"; + qcom,dload-mode = <&tcsr 0x6100>; + }; + }; + pmu { compatible = "arm,cortex-a73-pmu"; interrupts = ; @@ -142,6 +149,11 @@ #power-domain-cells = <1>; }; + tcsr: syscon@1937000 { + compatible = "qcom,tcsr-ipq9574", "syscon"; + reg = <0x01937000 0x21000>; + }; + sdhc_1: mmc@7804000 { compatible = "qcom,ipq9574-sdhci", "qcom,sdhci-msm-v5"; reg = <0x07804000 0x1000>, <0x07805000 0x1000>; From patchwork Tue Mar 28 10:20:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Poovendhan Selvaraj X-Patchwork-Id: 13190875 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0AEEEC76196 for ; Tue, 28 Mar 2023 10:21:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6RMIaaHk0bExqigeGoKWmVxMDalF78Me6ZSQ+BHOn+4=; b=M1h9HaaTK7A0NH aZLOyfejANvNa9gDyFGGKTvMGknVhxxYmoSPScxANLxm/K6YesMWUdZpeFjP2c3+kJmdAhf7hoQrM lf4ryvxzQQsLdaXg0dSyAw2QtHXI+nUJsuSkybVjLQqOjb055vxmSm8S4F3mGGyf8TdnPWaeH6lgZ OjLusrbNW1GjTmTalawDdnKCgVGV4UN855pRl/ZODzDsHgUHEomfnqzRLV3WrOETxWDJgJFe/tpWR kKPZl4RHJcKFEZSaMdLSclseAy6o18Hmhv0VosqKugwGASs3AFFIeyrMAwLgYbIpdBCoeuPL1I0d5 isBcxixW6BmJs0bgbWYg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ph6Rk-00DvEo-2s; Tue, 28 Mar 2023 10:20:56 +0000 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1ph6Rg-00DvDw-1Y for linux-arm-kernel@lists.infradead.org; Tue, 28 Mar 2023 10:20:53 +0000 Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32S6dYV0028826; Tue, 28 Mar 2023 10:20:50 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=dunxGkyVWnRgXa2caWreYb69qL3j/qi7JGyEYcOBAUY=; b=ah5M7t5gxxyJ9YnZRDMEzL4sSpiSS+0yQjqg6jvdjc6Q7Tk4sRA2MTjquiAUN6eq6fDF n8+EUn3fCjkJhA6Dg6ksETbyHce/tCbAyA6NDnZ3bR8f3g7rH2+voZ2uXuLvxNvBa8En a3VVMBkkSWx4NpUtoIBuzp05fNgGr0lsKU1VmMlOl1+nc+PU2TThmZMLGujKYm+Dc5Nu mv/hsTIXwhFndg7XaJo1/+rRk5iKxIFVB0K8ai7XDfDBW+oXE5XOw2n1wx4jJhBscAvp K5ZIpM70bOnDksdwqVdcQC6/DJWQBZAJvAOPkxKTD6dvYwRFdujaNyHSxt8NFunYyyI5 wA== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3pkk7b9djb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Mar 2023 10:20:49 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 32SAKnFr029009 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Mar 2023 10:20:49 GMT Received: from poovendh-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.41; Tue, 28 Mar 2023 03:20:43 -0700 From: Poovendhan Selvaraj To: , , , , , , , , , CC: , , , , , , Subject: [PATCH V6 2/2] arm64: dts: qcom: ipq9574: Add SMEM support Date: Tue, 28 Mar 2023 15:50:13 +0530 Message-ID: <20230328102013.21361-3-quic_poovendh@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230328102013.21361-1-quic_poovendh@quicinc.com> References: <20230328102013.21361-1-quic_poovendh@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: hLulyRWqvM-xxccQQjIlhhPJDr6F0umQ X-Proofpoint-GUID: hLulyRWqvM-xxccQQjIlhhPJDr6F0umQ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-24_11,2023-03-28_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 priorityscore=1501 suspectscore=0 phishscore=0 bulkscore=0 mlxscore=0 lowpriorityscore=0 mlxlogscore=732 clxscore=1015 malwarescore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2303280086 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230328_032052_528786_1AE434CE X-CRM114-Status: GOOD ( 15.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the required nodes to support SMEM Signed-off-by: Poovendhan Selvaraj --- Changes in V6: - No changes Changes in V5: - Dropped unrelated changes Changes in V4: - Added required nodes for smem support arch/arm64/boot/dts/qcom/ipq9574.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi index 099948f36efc..14a3396b0381 100644 --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi @@ -107,6 +107,13 @@ reg = <0x0 0x4a600000 0x0 0x400000>; no-map; }; + + smem@4aa00000 { + compatible = "qcom,smem"; + reg = <0x0 0x4aa00000 0x0 0x00100000>; + hwlocks = <&tcsr_mutex 0>; + no-map; + }; }; soc: soc@0 { @@ -149,6 +156,12 @@ #power-domain-cells = <1>; }; + tcsr_mutex: hwlock@1905000 { + compatible = "qcom,tcsr-mutex"; + reg = <0x01905000 0x20000>; + #hwlock-cells = <1>; + }; + tcsr: syscon@1937000 { compatible = "qcom,tcsr-ipq9574", "syscon"; reg = <0x01937000 0x21000>;