From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43A763FC5C0 for ; Tue, 19 May 2026 17:15:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779210938; cv=none; b=u1V5w3vcRU43ZymXNiYiUdg0q3DlGPTnxho3o/9KJUrXF8r7Q7NYMN8VmHXc0GWFVQ5vaS+iiG5UyU5udV029Mk8UaKE9WfBSEomkpYLty5qHMhkJvKMyfudE/goSRnoFSa8a4ri3iv5eaLWua3sNNnRKDQBWHxp4Q6Cx5rW24c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779210938; c=relaxed/simple; bh=Q8wHeL91TSb3urvpRCuxQfEFd1CujUhU0rk1XYHwsiQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SXyRTOqEEPnG20ZUQtMWc+GBQpH5pTzFddRtI7mjCbyT9mP46/OxMmvRAm8iBkGMGELzQ8rRgqKSs3dnOd3AjxtNow+Cy3tbYDWAFUBVfuxl5BqSaSZWTKq9nxCy7PE/HETDD9gKuPdAol1Y1WLSUBtXF8j8czcvUsLfxAkP2DQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=dR+zsZAI; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=LYvdO943; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="dR+zsZAI"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="LYvdO943" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 64JExPdw1963823 for ; Tue, 19 May 2026 17:15:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=tOITleWCuvp i0+dYRoQBpEMVHrSEpgzzTWuCd/gwHCw=; b=dR+zsZAIJF3UFECu5KsfUSmTEZS JzIMwkClVRN6LtkUA2JYnGSR6Qd1a/b1rtXlu/RcREa3+Df1hN4fxYhDY5HmXfhS qhQCPCjr1RB0yk65qBUiKzEQKziMwgzRarx8oVOKvC+sZ+YcaFkBSl7h+yB+/AvW n6gbKLIOx6l3MGI3CS7VfLdmPiUs5wLecXyl1WfIeep55wNhs+cAVFuTFrp7tmNs E7vIzY+G7cC3R0suVoGAG6NlYvHNc6tvKoDlKxdbWrpsD2afxdomVd4g7jFNdDCP TaZKc/MszB4voeIf2Wl40LVkDS89dWAeOQUicoSPqINO+5n3eFByNM+CETw== Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4e8t3t0mvv-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 19 May 2026 17:15:36 +0000 (GMT) Received: by mail-pf1-f200.google.com with SMTP id d2e1a72fcca58-837c4eb3bdfso2513747b3a.2 for ; Tue, 19 May 2026 10:15:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1779210935; x=1779815735; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tOITleWCuvpi0+dYRoQBpEMVHrSEpgzzTWuCd/gwHCw=; b=LYvdO943H4zRUYBvtu17kIYpE2BSWCWwesHJjAUhNibnq8mpoB7RZSSLlYfRPG7dnP Dxy9xy10g65Z2jiz2/2tOTHtXKvP+fjggiwMTEzSjwYaq8kM2ZuWXntc2Ou0BNKhidPl /upYtCJGMneI8GDQieEUcy0t2/UVSBWM9buExP24XcyTMxO2OQcrik2Da/zz4Ee/PHCu mH+sl4gPxj8VN7gr1+djpRRr665WsMxsznIH8vbPXcY+kUUtYZgqUzSQIRlpV8qmh6iE 1pwb3YCI+1f/KB7OAkkJpCAsCcGj0cslatbq13jvOJV/WCuouJTk4X6hauNiBcnUz8X+ fbGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779210935; x=1779815735; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=tOITleWCuvpi0+dYRoQBpEMVHrSEpgzzTWuCd/gwHCw=; b=Kk3NcN2o7OONxTHnsSd6JvXXy5E/PwtgiGBgmWhm9GjFlG0iZy1cEpXqZBxrmLWLJE EthL8kVJpN9yqLM25n2CG8kK9AXmP7F3i7/6/EA23xoIJcKhgHFYNNoGXSdHrZIzDLqX PjtcTLZO6s2sjp2P1FQ3I5zAqRSQDjMjQEAZ/rkuDKYFDYmMtFX0CYpw5UkpYCDkWySP 1njW/p9wxfvFSQqFSFFMdFyG3T6C8u4fRs9VLCpxsQBs6NywmLe0XqsMf8DkBc2YN9CT mIM1knZkDzPEhymkVVYMlAPKwy2efpjmpC6H5V1rfEl3Z+1bDjBRFO5jEohNmRkyC2cA aehA== X-Forwarded-Encrypted: i=1; AFNElJ+bEyCXe5thC/GXKg2YXR3wJklppYWQcsIoIec2X5giyU1P05iB/sSj/IifyWOBZrgeRBE2Ok0pu5KhetU=@vger.kernel.org X-Gm-Message-State: AOJu0YyrvTzJJ/WICFtrYI46oWtr0XKJ5GQKLWrHpH3j+FSAHuuVw/Dn ECLONSTQQXejpZFhYFtrL8UkUDhpG0h4N5L0VvKnbv26wdweLJpwI35+cT1P7ovvbosBd1whGEA +91Gm9+O3zlSZADLWAwV6nFabIRL5ln0oYaeZkkkIfsHv6I+fetl6R5BZbYoCM2Phy9A= X-Gm-Gg: Acq92OHu2u4aUCxTqsExPmTiVkOTJvGeUe+VL+xMCX4YYZMimpaijusVwOkUVFrA/aX F5HZOw0ZitoRkV+C5piAtZCKu8lLQQ9od07LbmLhVYQlUCFRvNzHpBtwgG2aXJ3zTt4/AsJwX5y wk+SIoWv9RFd3BUUpQxArVVZh8Gd4JcZIul3PEzM/GsJOYKixNJVfsKW1dQOq7Bg4j8lVWmz94U heIY+tMC4D7iQIHS9AgMTAe/KYGp4FcD4RKrZCa/e6QR3MnfLF48ePci8RQ1/7TmtFpQpR2oR/y eDkgQuH8SiM0rJZxOceBepem5y6bknBUZhyGbjUWR48GaMXMmWXInR9fvAPdX+m+vkdA8yV5dvC wfjgtLzhL56/j27t5qso2ts4oxsnT44lZDf92GAe6ig9kNGsq X-Received: by 2002:a05:6a00:6c9d:b0:82f:3828:a01d with SMTP id d2e1a72fcca58-83f33cf0bd2mr20263871b3a.29.1779210935038; Tue, 19 May 2026 10:15:35 -0700 (PDT) X-Received: by 2002:a05:6a00:6c9d:b0:82f:3828:a01d with SMTP id d2e1a72fcca58-83f33cf0bd2mr20263832b3a.29.1779210934470; Tue, 19 May 2026 10:15:34 -0700 (PDT) Received: from hu-mojha-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-83f19c77822sm18634720b3a.41.2026.05.19.10.15.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 May 2026 10:15:33 -0700 (PDT) From: Mukesh Ojha To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robert Marko , Guru Das Srinagesh Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Mukesh Ojha Subject: [PATCH v2 1/4] dt-bindings: firmware: qcom,scm: Add minidump SRAM property Date: Tue, 19 May 2026 22:44:39 +0530 Message-ID: <20260519171442.1582987-2-mukesh.ojha@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260519171442.1582987-1-mukesh.ojha@oss.qualcomm.com> References: <20260519171442.1582987-1-mukesh.ojha@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: -6Aww05PJlL6Axoudby24o3GjjEAdatl X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNTE5MDE3MiBTYWx0ZWRfX2TAR34wgbife e9K5gAJaOeL41rUzVC4D5yLIjI/TdboGxe3A1huCz3AiFba9Q3A5u7N877x8n7B2LwcwM6mxiwI crXdLjAbBWD9MlulRUevHtWL9gTS1anEsS91gUN4mW5iV/uqca7ZD0RG6ylU93mcHrWj1sUvE0d sEK/r34hwmVqPxehjx74VW8Sc2trBuU7mks6ywnWpCe9VheuHyitx8TTQoM2nDei5AZBlS12m6X ouGUZDYp4YN98TAOWjAFUHA27isaY8EL7juE9zF51yGlI9wgCoIiBoQPS05p9hMn9xcjrySmXdc i6rD/KRMx/VKWQeVMCnJfAsTe41l5UANEWAQfqkYr8sTvj1wQcmYUWEXZMguWD1geMmnaXtDh7a yUFenH5Ak/9RN57KQYkwjzWMoR8KTompHv5QguItQgKWljazmkbmfe1QOeVWcf1kLdDnRg6CZnd Jk18Nxvv8Z3xPR8qMjQ== X-Authority-Analysis: v=2.4 cv=Y/bIdBeN c=1 sm=1 tr=0 ts=6a0c9ab8 cx=c_pps a=mDZGXZTwRPZaeRUbqKGCBw==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=Uf9RHLb8GrDHKnSoJrcA:9 a=zc0IvFSfCIW2DFIPzwfm:22 X-Proofpoint-GUID: -6Aww05PJlL6Axoudby24o3GjjEAdatl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-05-19_04,2026-05-18_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 bulkscore=0 adultscore=0 phishscore=0 priorityscore=1501 impostorscore=0 lowpriorityscore=0 clxscore=1015 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605130000 definitions=main-2605190172 On most Qualcomm SoCs where minidump is supported, a word in always-on SRAM is shared between the kernel and boot firmware. Before DDR is initialised on the warm reset following a crash, firmware reads this word to decide if minidump is enabled and collect a minidump and where to deliver it (USB upload to a host, or save to local storage). Add a 'sram' property to the SCM binding to describe a region in always-on SRAM where the minidump download destination value could be written. Boot firmware reads it before DDR is initialised on a warm reset to decide where to store the minidump either to host PC or to on device storage. Signed-off-by: Mukesh Ojha --- .../devicetree/bindings/firmware/qcom,scm.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml index 25f62bacbc91..27422d00b8fc 100644 --- a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml +++ b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml @@ -129,6 +129,13 @@ properties: - description: offset of the download mode control register description: TCSR hardware block + sram: + description: + Phandle to a region in always-on SRAM used to store the download + mode value for boot firmware to read before DDR is initialised on + the next warm reset. + maxItems: 1 + allOf: # Clocks - if: @@ -250,3 +257,12 @@ examples: clock-names = "core", "bus", "iface"; }; }; + + - | + firmware { + scm { + compatible = "qcom,scm-kaanapali", "qcom,scm"; + sram = <&minidump_config>; + #reset-cells = <1>; + }; + }; -- 2.53.0