From nobody Fri Sep 12 02:49:03 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 193CCC05027 for ; Tue, 14 Feb 2023 05:17:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231663AbjBNFRF (ORCPT ); Tue, 14 Feb 2023 00:17:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231835AbjBNFQd (ORCPT ); Tue, 14 Feb 2023 00:16:33 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A3831E1D9; Mon, 13 Feb 2023 21:15:33 -0800 (PST) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31DN6iYQ016730; Tue, 14 Feb 2023 05:15:14 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=gQeV59oZDpxuleoD0k+U7dhcMrsrpx+9hColtU65Q4Q=; b=gYKcnlPNKjeuT1ac7ky9fLyG4z2spnCxcMTIa7LALmNsJQ9avsnsWUoIhGZ0L4Qhh68g K9lKESDWLMo2jPi2EwWFh6NihVaPeNX9ayhUeF1OiyAnKHIsXco4Zk96FUqTVaqvqOuO w1dKXYKuq8dKWUA1R3sqfJxajnlqFq3NKeA9OSY4TZt4+agYFG8gejKca1llSE9SlU5c 8qDkiGTWnfC5NUHU5t10VetL+x6QHJ8u9YGxQl9yrMIzzwL2aIdMp0thG0NM8yHReEnw HH+twoVdcjKk8tTVbgh83musHN2aKwZPKTiva3oKWHPAdS6ssAPmC44mluxxDwur68wk sg== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nqtv0942b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Feb 2023 05:15:14 +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 31E5FAZg009412 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Feb 2023 05:15:10 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.36; Mon, 13 Feb 2023 21:14:40 -0800 From: Poovendhan Selvaraj To: , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , Subject: [PATCH V4 1/5] dt-bindings: scm: Add compatible for IPQ9574 Date: Tue, 14 Feb 2023 10:44:10 +0530 Message-ID: <20230214051414.10740-2-quic_poovendh@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230214051414.10740-1-quic_poovendh@quicinc.com> References: <20230214051414.10740-1-quic_poovendh@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: ZqlH5SDocrUz_u0YkRCrV7wxlG0Tytk9 X-Proofpoint-ORIG-GUID: ZqlH5SDocrUz_u0YkRCrV7wxlG0Tytk9 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-14_02,2023-02-13_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 clxscore=1015 impostorscore=0 bulkscore=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 spamscore=0 malwarescore=0 mlxlogscore=999 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302140043 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add the scm compatible string for IPQ9574 SoC Signed-off-by: Poovendhan Selvaraj Acked-by: Krzysztof Kozlowski --- Changes in V4: - No Changes Changes in V3: - No Changes Documentation/devicetree/bindings/firmware/qcom,scm.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml b/Doc= umentation/devicetree/bindings/firmware/qcom,scm.yaml index a66e99812b1f..868fc7e555a6 100644 --- a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml +++ b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml @@ -27,6 +27,7 @@ properties: - qcom,scm-ipq6018 - qcom,scm-ipq806x - qcom,scm-ipq8074 + - qcom,scm-ipq9574 - qcom,scm-mdm9607 - qcom,scm-msm8226 - qcom,scm-msm8660 --=20 2.17.1 From nobody Fri Sep 12 02:49:03 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8616CC05027 for ; Tue, 14 Feb 2023 05:16:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231742AbjBNFQr (ORCPT ); Tue, 14 Feb 2023 00:16:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231814AbjBNFQ0 (ORCPT ); Tue, 14 Feb 2023 00:16:26 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D032B1C7E5; Mon, 13 Feb 2023 21:15:27 -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 31E4dqc1029684; Tue, 14 Feb 2023 05:15:12 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=jc/qnZrh2Q1/DfjDdciO3+97H7Ii7CpfYUKaBLzpsnM=; b=anvbfAIwumczrzV1/FmW0kfhgfF4w7tJHXKNgwK5flWeb4ELZRjkQUzhPO8SbnXqrK9J W0FI1mjHOnZncUadj2QkejVZK2qDJOySfg3oNPE08HSMQpmO05uDQsAiKK5tK5F7SBDr /FLjspO3aeEbukrc6Aj8DuswDeo13e0iqII9eEOHKmMlpNa8EgeOKa3IAnGp2lMglxsc wk4xJVc37RfPMU5Up1VBpb0aQhFVnyegZljvBd55SZX6UzlOoDoMndwJXyLuj4h424v4 f9pX8EPCc6P0JjZvMszD/QPlr3UFCaK9Wfr7tyIZCy7eFp4o9xaov+tUxXkrkWoYQtv6 pA== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3np0qpx1mh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Feb 2023 05:15:11 +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 31E5FAZh009412 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Feb 2023 05:15:11 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.36; Mon, 13 Feb 2023 21:14:50 -0800 From: Poovendhan Selvaraj To: , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , Subject: [PATCH V4 2/5] dt-bindings: mfd: Add the tcsr compatible for IPQ9574 Date: Tue, 14 Feb 2023 10:44:11 +0530 Message-ID: <20230214051414.10740-3-quic_poovendh@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230214051414.10740-1-quic_poovendh@quicinc.com> References: <20230214051414.10740-1-quic_poovendh@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: 9oZGQRovKfKo_ON0-DBN4YmnbvHGg0W8 X-Proofpoint-ORIG-GUID: 9oZGQRovKfKo_ON0-DBN4YmnbvHGg0W8 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-14_02,2023-02-13_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 impostorscore=0 malwarescore=0 phishscore=0 adultscore=0 suspectscore=0 spamscore=0 lowpriorityscore=0 clxscore=1015 bulkscore=0 mlxlogscore=965 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302140043 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add the tcsr compatible string for IPQ9574 SoC Acked-by: Krzysztof Kozlowski Signed-off-by: Poovendhan Selvaraj --- Changes in V4: - No changes Changes in V3: - Updated the subject - Added the Acked by tag Documentation/devicetree/bindings/mfd/qcom,tcsr.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mfd/qcom,tcsr.yaml b/Documen= tation/devicetree/bindings/mfd/qcom,tcsr.yaml index 2eeebe920e6e..203fc890c9a3 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,tcsr.yaml +++ b/Documentation/devicetree/bindings/mfd/qcom,tcsr.yaml @@ -31,6 +31,7 @@ properties: - qcom,tcsr-ipq5332 - qcom,tcsr-ipq6018 - qcom,tcsr-ipq8064 + - qcom,tcsr-ipq9574 - qcom,tcsr-mdm9615 - qcom,tcsr-msm8226 - qcom,tcsr-msm8660 --=20 2.17.1 From nobody Fri Sep 12 02:49:03 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28BFDC6379F for ; Tue, 14 Feb 2023 05:17:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231861AbjBNFRB (ORCPT ); Tue, 14 Feb 2023 00:17:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231833AbjBNFQb (ORCPT ); Tue, 14 Feb 2023 00:16:31 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19EF61A4B8; Mon, 13 Feb 2023 21:15:32 -0800 (PST) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31E08UZr000827; Tue, 14 Feb 2023 05:15:12 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=1urUc6LVnMUow/5UoO46s9iID+j38tHr7itx4ohlZhc=; b=T3IA+TDKMGJ4Q1EwHkbcq/ez7EyEXV6+4UkH5OSM+7Jsza59l3FjwpLuOhPw7nVyyfvM /96CVHQFVawxVbnTGvycivzMiJG6BPDwuyrZR1tssDDs/Ipn0cQ0HId06VJWJavQQo5j n/1lIvofir/06Di0Lf5PZLkhZD85YfI5VdGQckJ50Q5XxfAzkaej5aXcu+/ISElsHjWv kJluS+8dPT/kmV/KAEw1UbaNAs9EAhB1FzpvHoP6Cc0xf83fS5eaD7Vt1kYeqeZ+Btgn Q51qmDcQqilIww/tAFG4QhJywS1aMs/6DQI4/7wovt0oy2qJMQs9whTf2YzH065a5FGD cQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nqtsus4xf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Feb 2023 05:15:12 +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 31E5FAZi009412 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Feb 2023 05:15:11 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.36; Mon, 13 Feb 2023 21:14:59 -0800 From: Poovendhan Selvaraj To: , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , Subject: [PATCH V4 3/5] arm64: dts: qcom: ipq9574: Enable the download mode support Date: Tue, 14 Feb 2023 10:44:12 +0530 Message-ID: <20230214051414.10740-4-quic_poovendh@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230214051414.10740-1-quic_poovendh@quicinc.com> References: <20230214051414.10740-1-quic_poovendh@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: wgp-zeQ7y0g6djpG-tnqnnSZvMRTzS44 X-Proofpoint-ORIG-GUID: wgp-zeQ7y0g6djpG-tnqnnSZvMRTzS44 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-14_03,2023-02-13_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 priorityscore=1501 malwarescore=0 mlxlogscore=860 phishscore=0 lowpriorityscore=0 bulkscore=0 mlxscore=0 adultscore=0 impostorscore=0 suspectscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302140042 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Enable the support for download mode to collect the crashdumps if system crashes, to debug crashes extensively. Signed-off-by: Poovendhan Selvaraj --- 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/qc= om/ipq9574.dtsi index 2b86ba17bb32..898d7ce3f28d 100644 --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi @@ -81,6 +81,13 @@ reg =3D <0x0 0x40000000 0x0 0x0>; }; =20 + firmware { + scm { + compatible =3D "qcom,scm-ipq9574", "qcom,scm"; + qcom,dload-mode =3D <&tcsr 0x6100>; + }; + }; + pmu { compatible =3D "arm,cortex-a73-pmu"; interrupts =3D ; @@ -150,6 +157,11 @@ #power-domain-cells =3D <1>; }; =20 + tcsr: syscon@1937000 { + compatible =3D "qcom,tcsr-ipq9574", "syscon"; + reg =3D <0x01937000 0x21000>; + }; + sdhc_1: mmc@7804000 { compatible =3D "qcom,ipq9574-sdhci", "qcom,sdhci-msm-v5"; reg =3D <0x07804000 0x1000>, <0x07805000 0x1000>; --=20 2.17.1 From nobody Fri Sep 12 02:49:03 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6243C64EC7 for ; Tue, 14 Feb 2023 05:17:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231822AbjBNFRj (ORCPT ); Tue, 14 Feb 2023 00:17:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231697AbjBNFRR (ORCPT ); Tue, 14 Feb 2023 00:17:17 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23FE31F924; Mon, 13 Feb 2023 21:16:14 -0800 (PST) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31E2mRgB030258; Tue, 14 Feb 2023 05:15:21 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=jPR7mgs1EkkcQmA3HRo5sXUD+X9OyIrhw2n3X+AActw=; b=cFQDPBIRFOlrLEKUua0fDMzj8WOL9VEgAH/qk3FSgHbiHuXDrXND1KghqVp8mZaG2waK nZ3CuNRvA2oHN181hr8RwQg2Sa+QivuoU+JR3J2dTTlwUg6/3GRRYB3eY5W9tw7e906g O/BYcwSGMXbYs8bm14KPCebkMs/J+A24yd7Rh5faWmOuJzR3E0AYXjbwBeMei4oaP0R4 pHRVpYgu63zUABp/2A0VVMXjmDk4hoDkahFShJo5FlqFMiHipYhJ+ZafAsac1YVsR41O PyywwFrRu5kO5BFCiRWU6LI9ILyfgxQ3u0UOOewG1ifIVolTZJoLpsCMnm32ybASG6Ry RQ== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nqtv0942r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Feb 2023 05:15:21 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 31E5FK8C009564 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Feb 2023 05:15:20 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.36; Mon, 13 Feb 2023 21:15:08 -0800 From: Poovendhan Selvaraj To: , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , Subject: [PATCH V4 4/5] arm64: dts: qcom: ipq9574: Add SMEM support Date: Tue, 14 Feb 2023 10:44:13 +0530 Message-ID: <20230214051414.10740-5-quic_poovendh@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230214051414.10740-1-quic_poovendh@quicinc.com> References: <20230214051414.10740-1-quic_poovendh@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: AQ_BrKaEG8gTO1aLg5gZw3eAWAc4DN3j X-Proofpoint-ORIG-GUID: AQ_BrKaEG8gTO1aLg5gZw3eAWAc4DN3j 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-14_02,2023-02-13_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 clxscore=1015 impostorscore=0 bulkscore=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 spamscore=0 malwarescore=0 mlxlogscore=828 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302140043 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add the required nodes to support SMEM Changes in V4: - Added required nodes for smem support Signed-off-by: Poovendhan Selvaraj --- arch/arm64/boot/dts/qcom/ipq9574.dtsi | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qc= om/ipq9574.dtsi index 898d7ce3f28d..2b41416d7f91 100644 --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi @@ -102,11 +102,17 @@ #address-cells =3D <2>; #size-cells =3D <2>; ranges; - tz_region: tz@4a600000 { reg =3D <0x0 0x4a600000 0x0 0x400000>; no-map; }; + + smem@4aa00000 { + compatible =3D "qcom,smem"; + reg =3D <0x0 0x4aa00000 0x0 0x00100000>; + hwlocks =3D <&tcsr_mutex 0>; + no-map; + }; }; =20 soc: soc@0 { @@ -157,6 +163,12 @@ #power-domain-cells =3D <1>; }; =20 + tcsr_mutex: hwlock@1905000 { + compatible =3D "qcom,tcsr-mutex"; + reg =3D <0x01905000 0x20000>; + #hwlock-cells =3D <1>; + }; + tcsr: syscon@1937000 { compatible =3D "qcom,tcsr-ipq9574", "syscon"; reg =3D <0x01937000 0x21000>; --=20 2.17.1 From nobody Fri Sep 12 02:49:03 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A18E3C6379F for ; Tue, 14 Feb 2023 05:44:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230457AbjBNFoj (ORCPT ); Tue, 14 Feb 2023 00:44:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229713AbjBNFoh (ORCPT ); Tue, 14 Feb 2023 00:44:37 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11F2C15C97; Mon, 13 Feb 2023 21:44:36 -0800 (PST) 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 31E2Z5Zq004919; Tue, 14 Feb 2023 05:15:31 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=GwBnDd3MiW5jke2E07p3AhWuIm6Hx2aJosUP0mdx5VE=; b=XdwhwBVywDIyG5c73rWhdq5Uau+mgA3Nn+sZpuJV/o6pmGznRdR05beWGTUjpxb0Ni/O 67/aCfJWox6pyyjxTvNdIVvAmjdsY1YXp/p+BKNgF7PcKdZO2oN+v696y8WnutoLDpyP 7JQ55LRmWbuN8QCCv5Cy2KSC07omkDJWuWXkEmiIU0SIsXs1e5aSf38TSfmXxHAoVlH8 Z4rWg6ClUTeWnPhQYJSgMLV99DJRAOMt0PbiSwAgRik7Nyz5S8JxdIU2XngkuWJ/AZ8x LXhTD2B//vYfwu+5ZXmxp/jMj8Vl0GiHRVpFyjLI7NQwTiZdI3YhXzK6U75LbRAiVYxZ qQ== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nqpmmhrg3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Feb 2023 05:15:31 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 31E5FUsf008635 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Feb 2023 05:15:30 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.36; Mon, 13 Feb 2023 21:15:20 -0800 From: Poovendhan Selvaraj To: , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , Subject: [PATCH V4 5/5] firmware: scm: Modify only the DLOAD bit in TCSR register for download mode Date: Tue, 14 Feb 2023 10:44:14 +0530 Message-ID: <20230214051414.10740-6-quic_poovendh@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230214051414.10740-1-quic_poovendh@quicinc.com> References: <20230214051414.10740-1-quic_poovendh@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: R3YTBaFJRisbIIVfQt-1DDfoo1rEwS8I X-Proofpoint-GUID: R3YTBaFJRisbIIVfQt-1DDfoo1rEwS8I 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-14_03,2023-02-13_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 spamscore=0 priorityscore=1501 suspectscore=0 adultscore=0 impostorscore=0 bulkscore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302140043 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" CrashDump collection is based on the DLOAD bit of TCSR register. To retain other bits, we read the register and modify only the DLOAD bit as the other bits have their own significance. Co-developed-by: Anusha Rao Signed-off-by: Anusha Rao Co-developed-by: Kathiravan Thirumoorthy Signed-off-by: Kathiravan Thirumoorthy Signed-off-by: Poovendhan Selvaraj --- Changes in V4: - retain the orginal value of tcsr register when download mode is not set drivers/firmware/qcom_scm.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c index 468d4d5ab550..8a34b386ac3a 100644 --- a/drivers/firmware/qcom_scm.c +++ b/drivers/firmware/qcom_scm.c @@ -407,7 +407,7 @@ int qcom_scm_set_remote_state(u32 state, u32 id) } EXPORT_SYMBOL(qcom_scm_set_remote_state); =20 -static int __qcom_scm_set_dload_mode(struct device *dev, bool enable) +static int __qcom_scm_set_dload_mode(struct device *dev, u32 val, bool ena= ble) { struct qcom_scm_desc desc =3D { .svc =3D QCOM_SCM_SVC_BOOT, @@ -417,7 +417,8 @@ static int __qcom_scm_set_dload_mode(struct device *dev= , bool enable) .owner =3D ARM_SMCCC_OWNER_SIP, }; =20 - desc.args[1] =3D enable ? QCOM_SCM_BOOT_SET_DLOAD_MODE : 0; + desc.args[1] =3D enable ? val | QCOM_SCM_BOOT_SET_DLOAD_MODE : + val & ~(QCOM_SCM_BOOT_SET_DLOAD_MODE); =20 return qcom_scm_call_atomic(__scm->dev, &desc, NULL); } @@ -426,15 +427,19 @@ static void qcom_scm_set_download_mode(bool enable) { bool avail; int ret =3D 0; + u32 dload_addr_val; =20 avail =3D __qcom_scm_is_call_available(__scm->dev, QCOM_SCM_SVC_BOOT, QCOM_SCM_BOOT_SET_DLOAD_MODE); + ret =3D qcom_scm_io_readl(__scm->dload_mode_addr, &dload_addr_val); + if (avail) { - ret =3D __qcom_scm_set_dload_mode(__scm->dev, enable); + ret =3D __qcom_scm_set_dload_mode(__scm->dev, dload_addr_val, enable); } else if (__scm->dload_mode_addr) { - ret =3D qcom_scm_io_writel(__scm->dload_mode_addr, - enable ? QCOM_SCM_BOOT_SET_DLOAD_MODE : 0); + ret =3D qcom_scm_io_writel(__scm->dload_mode_addr, enable ? + dload_addr_val | QCOM_SCM_BOOT_SET_DLOAD_MODE : + dload_addr_val & ~(QCOM_SCM_BOOT_SET_DLOAD_MODE)); } else { dev_err(__scm->dev, "No available mechanism for setting download mode\n"); --=20 2.17.1