From patchwork Tue Jun 10 13:45:17 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kathiravan Thirumoorthy X-Patchwork-Id: 895288 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 1A156298242 for ; Tue, 10 Jun 2025 13:45:33 +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=1749563135; cv=none; b=NdJCqoHdMpK1ukFAIcT7fxUcEE/r8WK6bByw1IHeP5G1VnlOuCx46J4gldc1mDPi9RtXYQno4mLVx6/eCHUpgOkVU96O+aL7ZTDTK5z9YzOO5HeWCaktNqFfiCkuOwwQNoqHKA2QqMV+41fVVfNf7opKB7jmgo5ERtErYkQAKrM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749563135; c=relaxed/simple; bh=lRTdGZr0aQBOohKHQi0z+qkIwN8mJlJ286epa15TUb4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=j0VzRle48iRti+fCl6/zbHREe5xhBy8ha5g5samTiIdPPGRr4ri8leA7cOVAQhPAXe4ow67bCeLU4mfscqq4zK2/9qeTsm2b7fNX3NMGTUIMoZl0qG/cY1CWNh6EGNmHjNeBnAz8XK4PYIOi6eOV3bfoo5AjwiHqQh/LqfOQ7Yw= 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=A6JUGWEt; 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="A6JUGWEt" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 55AADDov011148 for ; Tue, 10 Jun 2025 13:45:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 7Ip6JzXoXzNg1IMXwmAxpeKkTCk5UZ4yAdalMGWbYLk=; b=A6JUGWEtiHBO2REr dZMeM87m3Tg6sAZQc+pD+U9oUwQByjXbE+ZZsD14xgzoo7l+04iY7hbRAaOcQ5lM hfWXWylpx6SD7YiO1U2tMZMGA3J7xS1tTWqzmZjoA1om73qtG3aWkliqd5jm+ZvN VaNG7PEoxV9VRbG9LcX0vjxHbDFx9H4yJYFxl1YRAWM6D2DuLUQrPJLvbYTPwPNz RSCWANNsOJl+KX4B5bxaSiPHvDIsMPw3hiVSe5LYF4Fj2uTi9foIzNAJ8dtr1hS8 PozrhGBO4e25YaoWGBgHye05MI7sHFH8DL1UKSX8LV/vneepjnY/5+LJzgxNLCkx I/25dg== Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 476jrh8k8m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 10 Jun 2025 13:45:32 +0000 (GMT) Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-b2fa1a84566so1740345a12.1 for ; Tue, 10 Jun 2025 06:45:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749563131; x=1750167931; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7Ip6JzXoXzNg1IMXwmAxpeKkTCk5UZ4yAdalMGWbYLk=; b=j/HEDIhkx7zBYL8GOPAPFtIX9taxigkpcvVjYotGfLhRyczBXEePw9RcxWpEmwIOrx kKjHg4ErvCr/yZCbKlxrZ0LRnd89zwUrsS9YtgREKKRzWXpsx2MOkqZEuDOm4oO8RyZb mEDAJ5q7o2oq073hRY9WvfdfpgGIrDp03NslhtH8PR6qdu9UnH0VghLexkS8TvXFI+Cd VlT09UC+k1e+qHzeUxVGpih/cVBofiiKqIjQRE7+MJHdHMw+Gm/P5KAOkk6jiQxAEsMX LtO9r/LX8NxXteCKYxRqmRO7IUfyvQrRmqBq3QGlUPkICf6ouOXfyjWMWamqn/M0cxev c98Q== X-Gm-Message-State: AOJu0Yy/higy1PaKleJuDLmc+WG1cY2MI9XDA1jbEpm77PMzeYzh78dq z6Ci+gKzP4H8aKwNOa+HtX4Q18qXnDG+3EqoIYYKere9qQJEew+7qmMUDmmrOR2Gl0tPjLQlvFw J6zAZzdvANLkwq6FCoXgyV4ExEzK5I9ha0y8ZKmKmFBFfiiRxB0AZCnSR2bttkDsoF0U1 X-Gm-Gg: ASbGncuO3vflPQChW+cJ/t5Q4Tx8V6676WlvSzlU624vo7gLDmc63rwxoewZbNKIpuu ePJXkw4vXRhQBPz1FJJyeI1Kxon9cmE+NXJgFMY8VuyNm1aWG9fnOewbFdYIAY1ESM4HXk87vqw K0p7cL8IgptT9CmV50JlQkqd3hef1Az3G5f2g9ljtM+3MjW/7WuFCd7QLwmTmnW3chLXmN7zOgO EI46RFH9MlWZPOvBkEqUH939V7yXjgR9up009G+IV5FbsvNEOMS3qjFLhOxFtqvRu+FgED5Nw0P OxC5B/IU7pkPkEjyHcRrd1dYC3jmLFkJ8lc67qFZfOWmSd2Z5qebNCe7pCmg36OGYsuAhyQYR74 GLouqZ10ji60R05c1nfJ4AyBIKDpLu1AAC5gqLfaD9ozHEeFGjdfilutoeA== X-Received: by 2002:a17:902:e845:b0:234:9670:cc73 with SMTP id d9443c01a7336-23601cf2f3amr258755465ad.5.1749563131311; Tue, 10 Jun 2025 06:45:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGagDwRHIdZc82bl/Bc4fkh850v1GfJHbnj0t2zwGj/im0wRw69ffh5SSZvgBKPQez5uO4MHw== X-Received: by 2002:a17:902:e845:b0:234:9670:cc73 with SMTP id d9443c01a7336-23601cf2f3amr258755005ad.5.1749563130925; Tue, 10 Jun 2025 06:45:30 -0700 (PDT) Received: from hu-kathirav-blr.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b2f5ee70085sm5858107a12.25.2025.06.10.06.45.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jun 2025 06:45:30 -0700 (PDT) From: Kathiravan Thirumoorthy Date: Tue, 10 Jun 2025 19:15:17 +0530 Subject: [PATCH v5 1/5] dt-bindings: sram: qcom,imem: Document IPQ5424 compatible Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250610-wdt_reset_reason-v5-1-2d2835160ab5@oss.qualcomm.com> References: <20250610-wdt_reset_reason-v5-0-2d2835160ab5@oss.qualcomm.com> In-Reply-To: <20250610-wdt_reset_reason-v5-0-2d2835160ab5@oss.qualcomm.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Wim Van Sebroeck , Guenter Roeck , Rajendra Nayak Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, Kathiravan Thirumoorthy X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1749563123; l=966; i=kathiravan.thirumoorthy@oss.qualcomm.com; s=20230906; h=from:subject:message-id; bh=lRTdGZr0aQBOohKHQi0z+qkIwN8mJlJ286epa15TUb4=; b=Cz/fVLAzSNzfmtCcKdndL12pNT67DVD3c8cVSEDgf30NJmKS5BSiBO+pDjtJEYaPdq7mcbcnN i+xVgS2gwKBCaVOgoFK0w3ug58sLoHm45tjHFR+CQ7z1KlhsBZ4Yytw X-Developer-Key: i=kathiravan.thirumoorthy@oss.qualcomm.com; a=ed25519; pk=xWsR7pL6ch+vdZ9MoFGEaP61JUaRf0XaZYWztbQsIiM= X-Authority-Analysis: v=2.4 cv=EovSrTcA c=1 sm=1 tr=0 ts=684836fc cx=c_pps a=Qgeoaf8Lrialg5Z894R3/Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=6IFa9wvqVegA:10 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=7sp3e_VSdAcdU5CosJ0A:9 a=QEXdDO2ut3YA:10 a=x9snwWr2DeNwDh03kgHS:22 X-Proofpoint-ORIG-GUID: izJdZ1konQoR3YV1UcWjWB2VLJk_UZ70 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNjEwMDEwOCBTYWx0ZWRfX9h3bAEKkdz0o +tN+lPpmKdfxWg6goPTS2gZd/9RCMV3q+i4bqj7adCIuHb9+V1lF2GklZYdNatkGKEfCod3yjPq 8/ltX+EQDn09pH7NRS7vl6xn9oIdRDzqlvVHctZ39ghpXytixqwbYRku15mQFlEkTyI0FS3mFTl 4szVZup0bJw+mCeJj6Derh2iIA4sEJKqm3n5MU12LQjdNWMZbQ3EIegeWEOxzsiMO9rlLAFz0R0 afRbiUsSljeEvBQm9hGRiEu6WnUStJEFJPAOahF50jKEolHSRG8b8k6zsCgBIWhdQpOyZVsHCSC 2+/hc8P5Iy5NRN4jonMhgFaAlCErshh8Tl69K7nIMKfrzbLdsnpVNxyoKAhIPxfhGsb15p/x5Ad UgKxObA+CCYcBX1LHEAmD9KthDUolgDBa87kGdw0wMFmjbGHt5kxVzTQXLnjQYNbbKnTSCAc X-Proofpoint-GUID: izJdZ1konQoR3YV1UcWjWB2VLJk_UZ70 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-06-10_05,2025-06-10_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 spamscore=0 suspectscore=0 priorityscore=1501 mlxlogscore=996 mlxscore=0 clxscore=1015 malwarescore=0 adultscore=0 lowpriorityscore=0 phishscore=0 bulkscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2506100108 Add compatible for Qualcomm's IPQ5424 IMEM. Acked-by: Rob Herring (Arm) Signed-off-by: Kathiravan Thirumoorthy --- Changes in v5: - No changes Changes in v4: - No changes Changes in v3: - Picked up the A-b tag --- Documentation/devicetree/bindings/sram/qcom,imem.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/sram/qcom,imem.yaml b/Documentation/devicetree/bindings/sram/qcom,imem.yaml index 2711f90d9664b70fcd1e2f7e2dfd3386ed5c1952..dec1b1ee924cf1386f559eb262ea864f2788c165 100644 --- a/Documentation/devicetree/bindings/sram/qcom,imem.yaml +++ b/Documentation/devicetree/bindings/sram/qcom,imem.yaml @@ -18,6 +18,7 @@ properties: items: - enum: - qcom,apq8064-imem + - qcom,ipq5424-imem - qcom,msm8226-imem - qcom,msm8974-imem - qcom,msm8976-imem From patchwork Tue Jun 10 13:45:18 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kathiravan Thirumoorthy X-Patchwork-Id: 896765 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 E47ED29AB02 for ; Tue, 10 Jun 2025 13:45: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=1749563139; cv=none; b=OsrIBVG6nSmoaetUQZU37kBcH8gqW0Th4H9R112pryLDGxVwy4oCoWP14eK5jCUlPMdJXi33K/WvrOidiaa196pIjAb3X/rwNkQ6q1c6omitXLb4LObIVZHGt6u+YKlogSdMRzdR4Of321Q65djrGSMGxRDFjx/hWa6f9Lj6jn0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749563139; c=relaxed/simple; bh=gRV628O4cjIUWMgrYP/Hj7VGLprVkTS/C0/4hXFUHyw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GYiL6DYmHmLv4csiuraZbHOwUHe9MZUw6k4ycAAm2xkQo26ryHt8oCr/3dMUBL/UM5JQ/nKTH9JFvQtqlNj8rbo1AVZ35gsPH9UBXTS4uyaBiRA78DIofU79JLGST8pkl5GTh3SHyg6YUVCGAKL+yJ6xc37QlWvvUWSdUmneoNk= 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=YR3q1n2J; 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="YR3q1n2J" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 55ADcMH7000923 for ; Tue, 10 Jun 2025 13:45:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= mQoPrvg9W5jhvTTkdFPGa/0JYUGBtoa8pnLOQRkk+tU=; b=YR3q1n2JVHQLdr6v pjKEirpMjncJcsHdVXF2nMpJhR3X8SEHIFtYAzi+bWx77YUqgNrZjH7M9pwND4eL 4m1eR6kyi6jBSxAYCwifyZAPg0m4uA3zmutKwTRTNX1GnV8YunGwSMyFpX3qeJK1 sj0gVkTSz2cP4txCen7zRv+baCzf8nwvS+FjOP1bDTlpNj9Sm9kO84lpB8CfxpgK ZHaERhRw1RMFKJdPtKarfJovrRo/ue84SmRW7veYwm38QkZuq6w92fD/149as3Q3 VTQ9xHH2gy5DNl3+D/rOYLLsSrHErmdPTm6BbKHeHG9B2hAYe5bravvBF4fR/vcv US2ILA== Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 475v2tc9tu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 10 Jun 2025 13:45:36 +0000 (GMT) Received: by mail-pf1-f198.google.com with SMTP id d2e1a72fcca58-7391d68617cso4806134b3a.0 for ; Tue, 10 Jun 2025 06:45:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749563135; x=1750167935; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mQoPrvg9W5jhvTTkdFPGa/0JYUGBtoa8pnLOQRkk+tU=; b=m/Zl52oF5hJI26bHiopcQDWutbr/zMDGT3SLh9WrWtVExif4CQe4jN5VX99aJcF53V Td8ElTYblozbnNtIkAk22JNb4csLlb9bP1qYZtA1pAGitEAAmSHE35F4YMrZKALMNblN eG5YGWFB9Ia03MsCx64c9+28CAuXzsQUzFfXjMKq0kqY6apwMX6aetuRnkzHtlaSQUsJ MNDmpeMMTT+2MHnIHwHLfONKBLcCuLM9C8dHvhGtCSxerKpT7J+OeERSIyaPmwoDXguS evDxfSfGTEqIvs1EOp4IigD6XtXL+ZA9HGrd82+K5F7pRZ415zABUdHbr6cXmP1TA6Y3 KsUg== X-Gm-Message-State: AOJu0YwPULhe4H6CbCi/fgIuKIoGaTi2ql9Z9KwgY7iNS2JQhIZnl5ed xKxXFKcaZRIpe/Mzb8QqdM69dNY/lHvIka16RnBNil5iO7nQnven6uPaQIzh3y/dx0a1U547dS/ dfq/gASJBlqwAZrgrQsMwXguO/pWV2g/35qUtuyisqf4ELjnj4sOJgU8kO7TocjFtUNxR X-Gm-Gg: ASbGncufn03h028aKlu4uTW1+FJRGU9t8qdQPhYPlcC3HqvpTuhTmg4OTwByQLw4HUU zSbyuNqCr/D83uNk+0onVvRA1K0i9dbVMrAHsGnZZvcIGybMlxQ0uHUcIMpoNS0btsY7gzCLEJ/ WcG9ffPvH07LMyQGQgVkwEWC5r/x+DuVLtFgt2zzmcoU0EdgS03yC4S+fvYSdBtByuFXUZjh75K 7wA7btM83g+x/L7w99pu5VCQaxWGI9h8YPjXbi0ykVRqnkQO/1LI3NLyzFJgKy7uG2E12xUqMk8 +Yyl1cWtpyBOSC5kvVP4hJn35DRttlw6YjU9O/XAaZqCHfQiha6iwioOLxSU0fUlLMoM+kk6dKO UXH/QiFeQ1VfESq/Co812Y22xnRLsNU6ZHpRgaCN4nSB5Wae2+OnHQlo0FA== X-Received: by 2002:a05:6a20:6f8f:b0:218:23bd:6927 with SMTP id adf61e73a8af0-21f768bb422mr6565259637.6.1749563135352; Tue, 10 Jun 2025 06:45:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEBBcdRBFkeEE+EAH0fFVFZ0A3sioZzVlSSFpOGgykRhiygclkXJi8Oq+aCuNfkRivNItmW8Q== X-Received: by 2002:a05:6a20:6f8f:b0:218:23bd:6927 with SMTP id adf61e73a8af0-21f768bb422mr6565202637.6.1749563134928; Tue, 10 Jun 2025 06:45:34 -0700 (PDT) Received: from hu-kathirav-blr.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b2f5ee70085sm5858107a12.25.2025.06.10.06.45.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jun 2025 06:45:34 -0700 (PDT) From: Kathiravan Thirumoorthy Date: Tue, 10 Jun 2025 19:15:18 +0530 Subject: [PATCH v5 2/5] arm64: dts: qcom: ipq5424: Add the IMEM node Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250610-wdt_reset_reason-v5-2-2d2835160ab5@oss.qualcomm.com> References: <20250610-wdt_reset_reason-v5-0-2d2835160ab5@oss.qualcomm.com> In-Reply-To: <20250610-wdt_reset_reason-v5-0-2d2835160ab5@oss.qualcomm.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Wim Van Sebroeck , Guenter Roeck , Rajendra Nayak Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, Kathiravan Thirumoorthy , Konrad Dybcio X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1749563123; l=1511; i=kathiravan.thirumoorthy@oss.qualcomm.com; s=20230906; h=from:subject:message-id; bh=gRV628O4cjIUWMgrYP/Hj7VGLprVkTS/C0/4hXFUHyw=; b=aa7tvznPKLnp0bSqhajVeSBeJlJay4tBzrkC146ZA43XpW2btA/5JFYYC8ecBuRn70TtsZCUZ EZ9AsHBDQIxDhxcbLnPRpMx5uMS+iITu99D1s6kQcJ30OpMty9M9jW5 X-Developer-Key: i=kathiravan.thirumoorthy@oss.qualcomm.com; a=ed25519; pk=xWsR7pL6ch+vdZ9MoFGEaP61JUaRf0XaZYWztbQsIiM= X-Proofpoint-GUID: xCCwzMbv0s0c1h05xeM2VxIjpp76JHsy X-Authority-Analysis: v=2.4 cv=GoxC+l1C c=1 sm=1 tr=0 ts=68483700 cx=c_pps a=m5Vt/hrsBiPMCU0y4gIsQw==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=6IFa9wvqVegA:10 a=EUspDBNiAAAA:8 a=QDJorwyCwNfNgOuVDpwA:9 a=QEXdDO2ut3YA:10 a=IoOABgeZipijB_acs4fv:22 X-Proofpoint-ORIG-GUID: xCCwzMbv0s0c1h05xeM2VxIjpp76JHsy X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNjEwMDEwOCBTYWx0ZWRfX7aVFbJ7Mtw/4 2n4LEK3+3nkraAt+NGsZWhHkkV+Vl4N6F/EE4TAfkpQxejwnetFuf56oK8aGaSgnclzu1sw0r81 2JO6B32V2fx6bTHMMPCuDcQEZiyHdzV/zTKSDVp4+552C9kuNDW8iSO4F/I3lr/xEVNwPL5cNxu IubAbR9awidf1kov0lotp/9d2UqHyhpL0OIGtCl5/40Ofo4rjqmr42eWRJFzXlfr+owWlyObWl/ CiGYxfadItOQbZA6MTDLteuT/bjO9wFl9ruWRK+pePG6v7fU6yT+EDCZ9z/1XYrODHdWHZSfNOJ Ds4tB42tqgeimL/6IBs8ybFpPVwT93VyI42zUFmJnhwlURFavo8v8UorMeMXvVOix9CCHYtXoW9 iIT7sIm63yFA7Vd10egmUyQLGLy5A3XiGRiCPTBVgQClHrGWKjdCvwBYSFw7jYq+bj73gW9x X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-06-10_05,2025-06-10_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=967 adultscore=0 impostorscore=0 malwarescore=0 mlxscore=0 suspectscore=0 phishscore=0 priorityscore=1501 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2506100108 Add the IMEM node to the device tree to extract debugging information like system restart reason, which is populated via IMEM. Define the IMEM region to enable this functionality. As described, overall IMEM region is 112KB but only initial 4KB is accessible by all masters in the SoC. Reviewed-by: Konrad Dybcio Signed-off-by: Kathiravan Thirumoorthy --- Changes in v5: - No changes Changes in v4: - No changes Changes in v3: - Picked up the R-b tag Changes in v2: - Describe the entire IMEM region in the node - Explicitly call out that initial 4K only accessible by all masters in the commit message --- arch/arm64/boot/dts/qcom/ipq5424.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq5424.dtsi b/arch/arm64/boot/dts/qcom/ipq5424.dtsi index 66bd2261eb25d79051adddef604c55f5b01e6e8b..7fdc003f210e5a69944b00361a16fbdf58f39801 100644 --- a/arch/arm64/boot/dts/qcom/ipq5424.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq5424.dtsi @@ -591,6 +591,15 @@ ssphy_0: phy@7d000 { status = "disabled"; }; + sram@8600000 { + compatible = "qcom,ipq5424-imem", "syscon", "simple-mfd"; + reg = <0 0x08600000 0 0x1c000>; + ranges = <0 0 0x08600000 0x1c000>; + + #address-cells = <1>; + #size-cells = <1>; + }; + usb3: usb3@8a00000 { compatible = "qcom,ipq5424-dwc3", "qcom,dwc3"; reg = <0 0x08af8800 0 0x400>; From patchwork Tue Jun 10 13:45:19 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kathiravan Thirumoorthy X-Patchwork-Id: 895287 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 8427A29B77B for ; Tue, 10 Jun 2025 13:45:41 +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=1749563143; cv=none; b=SdF2n/woT9tQe6SLltTf61f+75a8lUhr3sraZDST0ql8+75TapPIO/UhWf/urpyXBaDN+iPg4hlhIetML/9yA5QLKXNikXcapXsrM52lGqxJfMoKOpF7+CN3MGTexEs1M8LVz24E96Y82q76XTEVbn0cuAmpX6GkBbe/AKz84Qc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749563143; c=relaxed/simple; bh=NgMsgeUzbu1NBsXjdXusMRPlVqn66otCTDVh6lp/wFo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JKItpR61y/RX4YP38c/h47ly7QIXentjAMpRGNSs64oG59qDPR1Ig3zmGzEoLtpQyUbfDD62husvcTsp38hNJoeWGL16YBTiKs35PHJO93GmZiwutk5WlY90ARod++bFqb30QWQwL0M+iyuDb5QSSUsj3qSeiRcmdpHT5lhX3lo= 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=WRnlXGcL; 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="WRnlXGcL" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 55A8lfjq017676 for ; Tue, 10 Jun 2025 13:45:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= PafoB/3Wa4/aWlMuKHG6sO8D3G9m6I3Dvq2Y8WMHdVM=; b=WRnlXGcLz9ZroyHP 1IUThS4u0jBvdxWJgUqSNonQllzfYsXHOEstZ92isBBYboG0FZWLWu6mzIIG2x4h hjhvcjZs916GnEFDWuy9046pNKXsoL5yzkfZV8fR2Gz8CmU/xD7KqUU6zlaEsjsU mE4qzbn620Ji6TIDQgDJn6SyaAnbypLY1jN/nyJ33g9ffh0/EXeXdSzMLvHErLWi DdNowpvhdnv2Z/ow3VoF7dU3hcAOqYOWKRHyPk968cbo7CtyFOq7hU7raSPFCxmE 24smwm6tGWcr6fAnTk//LfiICRs2En3T4LWL4ck6DFsAvsFeOwGpR252MV688QBB K6NB0Q== Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4766mcjc2j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 10 Jun 2025 13:45:40 +0000 (GMT) Received: by mail-pf1-f199.google.com with SMTP id d2e1a72fcca58-740270e168aso4460889b3a.1 for ; Tue, 10 Jun 2025 06:45:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749563139; x=1750167939; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PafoB/3Wa4/aWlMuKHG6sO8D3G9m6I3Dvq2Y8WMHdVM=; b=oa/1y8+vAA+zs7YueEgq4F82cKjX9FQiin5v30KlldBIi79J77qTZ0oNV257wNIFC2 yYdB5aqIonYrffYluwo+/T35f2Xwf5V6XESNDGK4cvZ3Dc0b/YrWi1CsJrh3Sij0y4n0 Gxm2gWBMQVU4a3E1FQkwbCdpaYXb6xI4gYFMT9YzmyQnxpdkByQsG8V3GRB7LDOAvz2n zR65ECf8m2jZdVRKsURqZOHikyRVbXFCsSG1Dv/6MQr4dXp6+QCoE1LYVyOJw2Vh4AHd 3SqAi6AVKAtLMKVudJWgwbpb1H5Dt7sMo+4tkgdVZSKl9NhBMTEYQrWv8dG79yCu24JR 7DHw== X-Gm-Message-State: AOJu0Yw5gsC4iGf8hOs5IDwL9XgRdhaunWlg5y+XL5kPLhl2rD9SJ9Rj /ohq567XPNb/5J7SHeMDBfdR7jh1qxul3BsBHFwq+D8Qa4lXEzosLV0QoFoa5kyRKATmQfiN3yL 4cqokbTJH0N0Y2VN6ySH1sYSFbY1w6Lr3IGX/XEp9ApyDVIWbJIer+9ZJjvQuFa5iVoZP X-Gm-Gg: ASbGnctl6+vHGuI+bO/aak1D+U2/3tdfA4GXjyLa3el1RQLieSS98vAIlOkWF7OxxPd wkQ8fyeVh9yn1sU+kBF786z5YZQNzZrEirPcXRupno1vKIcqgoWolarq2i23RspGzUzsveG20RT ZdbBqY46f42vSv1gLJIMso2xJYAQ5Cr28ENeNhLPDXhfInDNut2uL9gY94Ynwb5Cy86N3pAgUOu EMCXLBK9/rv9guXYcs7QAJVvRTDIEhBpQ3CrEpyN2B/q66akaCWpEWCQbghWHjH+nepT9zK/tbh v1Cz+seRjxRfvqR0ymPJpe4/tX6zzYiHRKGDIVV1oBUYX3O8W/fINL8O/yKMQebR76NItvNVFm4 oelsDIXM2QuWVfF3/HMR6qrqzarcDjOhHfblrCeR0UMSP8JI4kUvNRDN5og== X-Received: by 2002:a05:6a21:8dc9:b0:1f5:6b36:f574 with SMTP id adf61e73a8af0-21f78c75463mr3996070637.38.1749563139148; Tue, 10 Jun 2025 06:45:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEjjZpNDZxLb9Z6pAdAQAD/xCdCacbKubRpCZmPtfdp4I6UMK9b1IuSydPftAse8qDNXpGldg== X-Received: by 2002:a05:6a21:8dc9:b0:1f5:6b36:f574 with SMTP id adf61e73a8af0-21f78c75463mr3996032637.38.1749563138749; Tue, 10 Jun 2025 06:45:38 -0700 (PDT) Received: from hu-kathirav-blr.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b2f5ee70085sm5858107a12.25.2025.06.10.06.45.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jun 2025 06:45:38 -0700 (PDT) From: Kathiravan Thirumoorthy Date: Tue, 10 Jun 2025 19:15:19 +0530 Subject: [PATCH v5 3/5] dt-bindings: watchdog: qcom-wdt: Document sram property Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250610-wdt_reset_reason-v5-3-2d2835160ab5@oss.qualcomm.com> References: <20250610-wdt_reset_reason-v5-0-2d2835160ab5@oss.qualcomm.com> In-Reply-To: <20250610-wdt_reset_reason-v5-0-2d2835160ab5@oss.qualcomm.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Wim Van Sebroeck , Guenter Roeck , Rajendra Nayak Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, Kathiravan Thirumoorthy X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1749563123; l=1882; i=kathiravan.thirumoorthy@oss.qualcomm.com; s=20230906; h=from:subject:message-id; bh=NgMsgeUzbu1NBsXjdXusMRPlVqn66otCTDVh6lp/wFo=; b=AAqKs26bBLfnLC+UHWUOLU9c8X4MRvyGM2fp3soA+25gWxjKfJX/Z5oJE4C0FOe1K6mihEpAS yR1KQRO723eClZQoxeIinNj83GJ9a9AUedp/9sByxmnBDpFJsEn7v/C X-Developer-Key: i=kathiravan.thirumoorthy@oss.qualcomm.com; a=ed25519; pk=xWsR7pL6ch+vdZ9MoFGEaP61JUaRf0XaZYWztbQsIiM= X-Authority-Analysis: v=2.4 cv=T8KMT+KQ c=1 sm=1 tr=0 ts=68483704 cx=c_pps a=WW5sKcV1LcKqjgzy2JUPuA==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=6IFa9wvqVegA:10 a=EUspDBNiAAAA:8 a=0aCF2Bm0WFNHtCR-1QwA:9 a=QEXdDO2ut3YA:10 a=OpyuDcXvxspvyRM73sMx:22 X-Proofpoint-ORIG-GUID: 9qZmCVGZRBqPvXup6KlPXVtVhYMbhOFE X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNjEwMDEwOCBTYWx0ZWRfX+XSBV/fiCjtM EvKiQH7k2f3gHrmXjBK1ts4BrCoNx6j202wZ1CqUO4aTp6k+vb+upXY8uemhmNMIsTbyIHTAqOV l19bcQAWhYrlQa8f+F9QU4Ft7jBlLP5yy5loW6JsUPi15Gm7GThsGbno0nj3H7/AH+TF7nO8lfN JLUoOCSxfmnnPnMYK2cNR/5Lnzjfg3y7/tzi9MDWhVq3bl+gGKTfjVw10+J5pEMeoYLSLj7d9Yc 1xIcRZ77tJDVmWLKiSAf0Jl/Gswt+mZvkMMRxuO5SjXGEVyMxDrtp0hYUbrpeZupU9fyAh1xVL6 g7IqQsMXQ5dtDQ8BTzj7U+ubZWftsBQdLXSWhbEbautthMPS3kPbHc4Q+e8YoeQlSdwr9x3e6DL 8jMsRxfBXp/bcRmrYbaLhZlQG13hFA/+3e2i8jRmn9md0jH0doF39sJWNHASy4xDM91GehmS X-Proofpoint-GUID: 9qZmCVGZRBqPvXup6KlPXVtVhYMbhOFE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-06-10_05,2025-06-10_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 bulkscore=0 clxscore=1015 malwarescore=0 impostorscore=0 spamscore=0 priorityscore=1501 lowpriorityscore=0 mlxscore=0 phishscore=0 mlxlogscore=999 suspectscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2506100108 Document the "sram" property for the watchdog device on Qualcomm IPQ platforms. Use this property to extract the restart reason from IMEM, which is updated by XBL. Populate the watchdog's bootstatus sysFS entry with this information, when the system reboots due to a watchdog timeout. Describe this property for the IPQ5424 watchdog device and extend support to other targets subsequently. Signed-off-by: Kathiravan Thirumoorthy --- Changes in v5: - Rename the property 'qcom,imem' to 'sram' Changes in v4: - New patch --- .../devicetree/bindings/watchdog/qcom-wdt.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml index 49e2b807db0bc9d3edfc93ec41ad0df0b74ed032..74a09c391fd8e2befeac07f254ea16d0ca362248 100644 --- a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml +++ b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml @@ -81,6 +81,16 @@ properties: minItems: 1 maxItems: 5 + sram: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + phandle to the IMEM syscon node that exposes the system restart reason + items: + - items: + - description: phandle of IMEM syscon + - description: offset of restart reason region + - description: value indicate that the watchdog timeout has occurred + required: - compatible - reg @@ -117,6 +127,16 @@ allOf: required: - clock-frequency + - if: + properties: + compatible: + contains: + enum: + - qcom,apss-wdt-ipq5424 + then: + required: + - sram + unevaluatedProperties: false examples: From patchwork Tue Jun 10 13:45:20 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kathiravan Thirumoorthy X-Patchwork-Id: 896764 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 ABA8329C33B for ; Tue, 10 Jun 2025 13:45:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749563146; cv=none; b=tFB/Uop5jFnUGY3bNGnujtLtEyW0sDxfV7D4KWhrgXw3kVnfWF8l43AhjgrhsFQvjzyp1fua6YGm5HEUueJp2Vfuh6PJ9qNN83x+RQ3q2iJAiL01T51tziHAgZurRA9EhcV74ubkLOjUsRH1zYuBuCkUm4sm9DqXmZ3qfFo/Kkk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749563146; c=relaxed/simple; bh=qodg/qJgptXiBp36gN6zPzfmpF/ldoJtnRNBNm4szJw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=A8irSUxTJlHDN4v4vT09XKDonuMCZLH63gM/0hepqgkkyCtBnBShPxUEsd15zLxZMGx1MCR/OBTEttcLM03X9doWfQGMynh1vYY8iqoUWJY2p9ynsnUCInDi2afwxAaJv3IJHa09pObRZ+tuL1A6lszcRft0PT8ELCXQY46g/TA= 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=omTnmL4b; arc=none smtp.client-ip=205.220.168.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="omTnmL4b" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 55A8AYrB009809 for ; Tue, 10 Jun 2025 13:45:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 4mIEeWqs0Eroebgunj8ZpmJbv/vEwYm2mCE1jLGUifA=; b=omTnmL4bq0zxc++M c7BHD3US+kpzfMj6Jf+egd/uyOgki87MPJSvz/6wYhWjyqvy+3C/fX6l06aak5CB +eu40BLeQKGgIxT49On56I2h87NdIzlwuPoLtNFlyxaWQj/4FuI/JmprkzMkJ9O6 DBYe5eqYNfHsGRjxbywPVN3y8fhpQ8UGLe4V6lydnOskQdIVK0j/DJYOiY9plOFP NYAwmeNbsh5B42AFXQfvSzPEKQRu+OGkeesHvkfm4lFQvfM5UZ7lRccRyKHX0S8Q cqeEPTlzbSgtK58qdch+7kOVc7iPu/lPh2/PNLmC8poLFvgMbZGpWooVP5rAVCLW KEMe7A== Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 474eqchh1p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 10 Jun 2025 13:45:43 +0000 (GMT) Received: by mail-pf1-f199.google.com with SMTP id d2e1a72fcca58-74834bc5d37so5342048b3a.0 for ; Tue, 10 Jun 2025 06:45:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749563143; x=1750167943; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4mIEeWqs0Eroebgunj8ZpmJbv/vEwYm2mCE1jLGUifA=; b=VJyctT/x+zRce/NZSijZJTRMvgqSV6vN3YA2eXvSL5MzE5BFAPuw4+o+Vcw//FnVvs g+7N9z+N+Qlm+Ze5HcafPlSuFq6H9WPbvEgh3F1xskDFaqK96w3Y/8PXOrzT1bg6msEg fCHeWBL4w0rhBH3hwZhro/Epi+PV2/9VElRqgx3L5Cp+lnlcsEdij6TC0YQOkef55C6u +S8nVgh8n6dVs1YJaCXBmiJdLwyJ7khMI9zk9Bqw94WcK7pPkNg9Zvk657bdggm10DN2 ANW4Rm6H/vvS3GQ1W6MenC7d/XVBjgpti3AnsGckSqVoufnxz1uS3f2HEFeoF0xc+U9F Nmyw== X-Gm-Message-State: AOJu0Yzbd2709y47hign2UBH9em2Ogpxb1QQaVlbE3cDebPFu650q6gb LmVx2tYhAE6jBHnwuMey5q/JqiOpMC4CM/bA+/jJxCMyjDwXQl12ylNjAvxEgH7XPlWzssU+rDf uEvnNr6kHcMQ1PrgK9iUGTYwKyd7GtZkfcb+b6Leh7JuwljGWkldbb+BVAv81aYGdOYMN X-Gm-Gg: ASbGncvAGDr5LLVdnvALeNTvF8A0Nvp/YLtt+4amijAvJsQn3HQ/8vMyishtFUuWPQt m2IyKYNfg8r0whiq9t4gip7CuI5ZhdaFiYa2FlCDVz37CCUmnRsQw9ttuv9vhRM1DCJNOsLFDP7 +YdWt+d+G60vd5JYxA7MNVlQx4TiUqPWqMCFd2sYk/Bmtr0RPeSaxwDN11+VEHnvnxvdrI9DSTU CotxQa+kgadhvZs8tHTziw3osvWENk+oTpjCuCQA/HlTchqnQI4vU6eh8/taHcL4Jv0Y1gopleN eT58sSe9rrP++dQ76etMsGZ1D5JCh1Knh/sA2fh5XEhIlTmbok8BbVvEf8tvcceB8QGRE/EPjB5 X9OQvE5DCLfBX7tk61OluxUK8EgN/UcAFhgFVl61WDHBet5/pKIpwB6PHTg== X-Received: by 2002:a05:6a20:729f:b0:21a:ec1c:5842 with SMTP id adf61e73a8af0-21ee6897fb7mr25631346637.32.1749563142925; Tue, 10 Jun 2025 06:45:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEXle56quYcGkL187PQrEfR1t2ZC0l/D9zmJLpQ87BsRlsZYNw5ms9DIz4OovX6axzP/0PQPA== X-Received: by 2002:a05:6a20:729f:b0:21a:ec1c:5842 with SMTP id adf61e73a8af0-21ee6897fb7mr25631310637.32.1749563142543; Tue, 10 Jun 2025 06:45:42 -0700 (PDT) Received: from hu-kathirav-blr.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b2f5ee70085sm5858107a12.25.2025.06.10.06.45.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jun 2025 06:45:42 -0700 (PDT) From: Kathiravan Thirumoorthy Date: Tue, 10 Jun 2025 19:15:20 +0530 Subject: [PATCH v5 4/5] watchdog: qcom: add support to get the bootstatus from IMEM Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250610-wdt_reset_reason-v5-4-2d2835160ab5@oss.qualcomm.com> References: <20250610-wdt_reset_reason-v5-0-2d2835160ab5@oss.qualcomm.com> In-Reply-To: <20250610-wdt_reset_reason-v5-0-2d2835160ab5@oss.qualcomm.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Wim Van Sebroeck , Guenter Roeck , Rajendra Nayak Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, Kathiravan Thirumoorthy X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1749563123; l=3796; i=kathiravan.thirumoorthy@oss.qualcomm.com; s=20230906; h=from:subject:message-id; bh=qodg/qJgptXiBp36gN6zPzfmpF/ldoJtnRNBNm4szJw=; b=dzDC23v73Zw8FkncgGzm33P7WFmhs7dYkj4tln+4sd/97YIALm0eTFRNI0m1Vf6UZrP3JyaqB lNw2I+Z6kk0AxVCstl0NTPuRfMnpKSa8pnZmd8mIlPyyIt+deOONdT1 X-Developer-Key: i=kathiravan.thirumoorthy@oss.qualcomm.com; a=ed25519; pk=xWsR7pL6ch+vdZ9MoFGEaP61JUaRf0XaZYWztbQsIiM= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNjEwMDEwOCBTYWx0ZWRfX4qG3krs8D00s a1B25FyUNjGZCKpS06qfcCwHR3APleCqsXAgdNIln4nVh1XxjsCz8Vii5kvx/9GpArADWgFvCJt rtqIkQ9WS+OoDQj7Uk9VJns3YyvDLhZMGXZQA45kPArs8dRS+8xmdfiTI77hA8oSnE1wAue6uz0 Zi5LHEGXHNrcowYJfJK1TARjtFsWPlR7uihAdLd7A4Dh5z+Euh4G+S84ACjYKlqS3EJiW/iF8nA mR5/wb5HBU2S5JGg0bcYh+79wTyaFtv2N+/I+T+EBpA6uRD4kHmrb5XPoNKYJXwn8YyfoKBi6Un CnOgSBZAqSxwzhCzFN+BPoBZVXNmSBZL8iN1LWC5rjS2r/u7sFqbSRQPMU/kPF9KV+++PdNxqXh n8qpEWQOpe/YcMJTOEg1Q6yt+vvE8QspUYaJdKk3SdnmjtGtcF7CjOOYda9QlIJubejEvUjX X-Authority-Analysis: v=2.4 cv=Q7TS452a c=1 sm=1 tr=0 ts=68483707 cx=c_pps a=WW5sKcV1LcKqjgzy2JUPuA==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=6IFa9wvqVegA:10 a=EUspDBNiAAAA:8 a=tIxvoA3mxl7b6XSbyz0A:9 a=QEXdDO2ut3YA:10 a=OpyuDcXvxspvyRM73sMx:22 X-Proofpoint-GUID: f7TIxrnNTUDCEMSCXnVA2TPJZN24JCI7 X-Proofpoint-ORIG-GUID: f7TIxrnNTUDCEMSCXnVA2TPJZN24JCI7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-06-10_05,2025-06-10_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 mlxscore=0 spamscore=0 mlxlogscore=999 bulkscore=0 clxscore=1015 lowpriorityscore=0 adultscore=0 impostorscore=0 priorityscore=1501 malwarescore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2506100108 When the system boots up after a watchdog reset, the EXPIRED_STATUS bit in the WDT_STS register is cleared. To identify if the system was restarted due to WDT expiry, XBL update the information in the IMEM region. Update the driver to read the restart reason from IMEM and populate the bootstatus accordingly. With the CONFIG_WATCHDOG_SYSFS enabled, user can extract the information as below: cat /sys/devices/platform/soc@0/f410000.watchdog/watchdog/watchdog0/bootstatus 32 For backward compatibility, keep the EXPIRED_STATUS bit check. Add a new function qcom_wdt_get_bootstatus() to read the restart reason from IMEM. Signed-off-by: Kathiravan Thirumoorthy --- Changes in v5: - Use dev_err_probe instead of dev_err Changes in v4: - Kept only WDIOF_CARDRESET and dropped other codes - Renamed qcom_wdt_get_reason_reason() to qcom_wdt_get_bootstatus() - Moved the existing check inside qcom_wdt_get_bootstatus() - Dropped the device data and put all the details in the DT node Changes in v3: - Split the introduction of device data into separate patch - s/bootloaders/XBL - for clarity of which bootloader is involved - Mention the sysfs path on to extract this information - s/compatible/imem_compatible in the device data structure to avoid the confusion / better naming Changes in v2: - Use the syscon API to access the IMEM region - Handle the error cases returned by qcom_wdt_get_restart_reason - Define device specific data to retrieve the IMEM compatible, offset and the value for non secure WDT, which allows to extend the support for other SoCs --- drivers/watchdog/qcom-wdt.c | 43 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/drivers/watchdog/qcom-wdt.c b/drivers/watchdog/qcom-wdt.c index dfaac5995c84c1f377023e6e62770c5548528a4c..795f409506c6bb1dfb26cd8af18bece3cc35aebf 100644 --- a/drivers/watchdog/qcom-wdt.c +++ b/drivers/watchdog/qcom-wdt.c @@ -7,9 +7,11 @@ #include #include #include +#include #include #include #include +#include #include enum wdt_reg { @@ -193,6 +195,42 @@ static const struct qcom_wdt_match_data match_data_kpss = { .max_tick_count = 0xFFFFFU, }; +static int qcom_wdt_get_bootstatus(struct device *dev, struct qcom_wdt *wdt) +{ + unsigned int args[2]; + struct regmap *imem; + unsigned int val; + int ret; + + imem = syscon_regmap_lookup_by_phandle_args(dev->of_node, "sram", + ARRAY_SIZE(args), args); + if (IS_ERR(imem)) { + ret = PTR_ERR(imem); + if (ret != -ENOENT) { + dev_err_probe(dev, ret, "Failed to lookup syscon\n"); + return ret; + } + + /* Fallback to the existing check */ + if (readl(wdt_addr(wdt, WDT_STS)) & 1) + wdt->wdd.bootstatus = WDIOF_CARDRESET; + + return 0; + } + + ret = regmap_read(imem, args[0], &val); + if (ret) { + dev_err_probe(dev, ret, + "Failed to read the restart reason info\n"); + return ret; + } + + if (val == args[1]) + wdt->wdd.bootstatus = WDIOF_CARDRESET; + + return 0; +} + static int qcom_wdt_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; @@ -273,8 +311,9 @@ static int qcom_wdt_probe(struct platform_device *pdev) wdt->wdd.parent = dev; wdt->layout = data->offset; - if (readl(wdt_addr(wdt, WDT_STS)) & 1) - wdt->wdd.bootstatus = WDIOF_CARDRESET; + ret = qcom_wdt_get_bootstatus(dev, wdt); + if (ret) + return ret; /* * If 'timeout-sec' unspecified in devicetree, assume a 30 second From patchwork Tue Jun 10 13:45:21 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kathiravan Thirumoorthy X-Patchwork-Id: 895286 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 87CEF299954 for ; Tue, 10 Jun 2025 13:45:49 +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=1749563151; cv=none; b=OWOzL9nn6v+wKouKEsX+TUiV7UDCD9rc6YdWx5CQlp33Tla/aNc8UZqTXuPqP9sc9IYSAI0hTCNGVorLCIp5hn6KCHLmj6s3P7hq6uhUpNBhiBT/kOeTg5Fnle9SeyFsJp/+yHnYAWzzTNSn06e5PlMsu3axrN+QT6VIpmTJP1Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749563151; c=relaxed/simple; bh=tIkOcJFE+rafh2MgqZmDWTromNT6mSUqQ5PDBWtf60c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Xaz+iggVc0aKXTKE37h7fSOywvnlfvUuncHVs80Z+gxti7VYqhjluQDfLzDyI32Tve4TU+xxh66QPyWTlcp2HUFEH2DibvVNyiCUL3CKZ1oMO32Q0I6ObidS9XY0qKk4ldv+cN8ppTbouLnCzfUw7oA8Vb8hzyfM0utyXpaD+Vo= 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=NHwoO76x; 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="NHwoO76x" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 55A930BD010661 for ; Tue, 10 Jun 2025 13:45:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 2zlECPsipiGdH8hAfvBAtz4pKbhBRjMIfShCSx4B4p4=; b=NHwoO76xuGCplsPO n6eZn6zhoCdsTXeuLhU9dbNFeg/Z9BE/ysOdyKzKHPKhQAaG480qlC/r5TLKXJZt Lv34ptHv4+dg3chJE1VuPZQikcQLWEYx2qecf+h8Kzg4g36/1B1OBEHA/n+LhEjq GeFAC3NTUNGdg6d+FPbTjj1c80lp61S1dZxc8YDWc9Va4FjULMqUikpe+sLXSPXV eLgFF6tJFaYCrB/BMmVVcRnW1sVmnkDbik35XImP4YQWk89JOnF3vjrby/NOPSiu H0AX0k14BscfIUVbSa7BJ81atUdC4yQpwQBlJakAbMLBIbXsYO9TxUa95Nvhyx2m Gi10Tw== Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 474d121qm7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 10 Jun 2025 13:45:48 +0000 (GMT) Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-b0e0c573531so3362531a12.3 for ; Tue, 10 Jun 2025 06:45:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749563147; x=1750167947; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2zlECPsipiGdH8hAfvBAtz4pKbhBRjMIfShCSx4B4p4=; b=Mobu1WhkJjlZU6BZ/iNsOtNlCfpjxRCzC8HJC04mxT/Sn3QhKzQaYDgN+NFMNqyhuG PK1rdB8cjZk2FbSLj99nZnpJ97gM0vbPUTDxNmGvchvUjPHAtSxvwLxNbcSTQldk2YBq 0hPL3VE78bqPdFXql4D7rZXRSqZMsqQ1vkQd1RwFsJ9N4JNiTq0qFcb36iVrDl9u4iXd lSFkVGcuzobQSGc7YfBP7KIQgUetD/sZIvwyhe/rzcP9sYIVbjpWZUL5G4hKBdWmNHzG 4mggmZphUwbMoQnk1ILRadOOHMFsMaleTZvu5ykkRiSgBxFSOoOu/Td/iIURmbTti7c3 KKVQ== X-Gm-Message-State: AOJu0Yw/AWWaJl7caiqKNx3QhqOcExp//v9PbH63i8LBjf70U4PbpEdX 41M1nKeSC1fDUi25C7Y0CJP9ugjWD74m7ns9Lptu4ptrIFpNgxjURWxX343BsF6eKRIQ7Ac6XuO peRAhScysyAarue6GIA1vPX6w6TkNSoR4evcBXHT1l4KTUd4IFymx7NCWP9d8pjD/rZRg2rRRGR 3R X-Gm-Gg: ASbGncuFLlM9CPsB+7inkRFkbWSy+UhQuwyZDMzVX4nshp8L/9obiRU9swzyLuFkkMZ 57UDFmiWkugDJnJY6jb2BEn/Xlm0jthQReY+Vf7laZDMTkb7f7C0+0Esgpk9pca+NELEbrFAELS hBL9uWnVj+OwJk6G5rkJ77MRQ0PtkvJhE5vP8OJ8RHavyFWkz4X86PtYakCUzkaYgzwnprOdmy5 ic4euCbdpQMNCzD3Zs6fp2H9qYXgV/Z54AwL900gH0USvOr1pAUQtX2Vt+FpBvPPZGHKEifSbJ2 sRcM1/MW/XgYNEUf30eYe87wLzboAUb4+xJj+v10tPTw+ktvtDvj87DQD1cW1eHmzKS+hCpYDL8 aSMbTuA7js9XnLM//PXdrioU1Io9Oh3jvynOYicQqSWZm0ylYZFhM+tuc/w== X-Received: by 2002:a05:6a20:9144:b0:218:96ad:720d with SMTP id adf61e73a8af0-21f78b00d19mr3904173637.1.1749563146830; Tue, 10 Jun 2025 06:45:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFbD2yzkEoSMKz5KaTlc9zIq3cjy7BteG1YQFBVwOSU21N2znKNGceH1ZhcbWzlMysruW16gQ== X-Received: by 2002:a05:6a20:9144:b0:218:96ad:720d with SMTP id adf61e73a8af0-21f78b00d19mr3904127637.1.1749563146353; Tue, 10 Jun 2025 06:45:46 -0700 (PDT) Received: from hu-kathirav-blr.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b2f5ee70085sm5858107a12.25.2025.06.10.06.45.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jun 2025 06:45:45 -0700 (PDT) From: Kathiravan Thirumoorthy Date: Tue, 10 Jun 2025 19:15:21 +0530 Subject: [PATCH v5 5/5] arm64: dts: qcom: ipq5424: add support to get watchdog bootstatus from IMEM Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250610-wdt_reset_reason-v5-5-2d2835160ab5@oss.qualcomm.com> References: <20250610-wdt_reset_reason-v5-0-2d2835160ab5@oss.qualcomm.com> In-Reply-To: <20250610-wdt_reset_reason-v5-0-2d2835160ab5@oss.qualcomm.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Wim Van Sebroeck , Guenter Roeck , Rajendra Nayak Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, Kathiravan Thirumoorthy X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1749563123; l=1331; i=kathiravan.thirumoorthy@oss.qualcomm.com; s=20230906; h=from:subject:message-id; bh=tIkOcJFE+rafh2MgqZmDWTromNT6mSUqQ5PDBWtf60c=; b=FuSWMbgkxF7ijEzeW9B9JbFHZuz/cLrnIeEaDoB8zMVARjDfERKmd8wt8S5/Wgq/izDiMzNms yU2NllYj5OuC2ITF6ituhkXvPBSZACsViUzQXxuCVVFdjjQAeefc0ZD X-Developer-Key: i=kathiravan.thirumoorthy@oss.qualcomm.com; a=ed25519; pk=xWsR7pL6ch+vdZ9MoFGEaP61JUaRf0XaZYWztbQsIiM= X-Proofpoint-GUID: ie6ckMFxJH3SgkIDFJac9XWpB-ueRnp9 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNjEwMDEwOCBTYWx0ZWRfX0nHPmCdghaYp v0OU0OlIwH2W24iOvTYSyUepjmoyI6gcPop3WawmTW9uPKcedF2w2G3ObC2jSrZ2bbCaDa04Ta7 Ru0cZnwsAT0XHZXgNFEAvXEDIgG8wKIKJPjiOUA2q7+t1OHIGA8g1DSui/3T9fLcxVydQ4G9ZFZ tOrGQ7HIQ90jtIurlTs8fcXUcI9TQUZCb9w0JO7ga2sKhYrJMwmv9WCDezAQJ3O8wwHtKU7c2pr iTPgzFUWe5QP1GEc97/jTcMsT8oRiPjU1U54FR4cI1Xsrox4v/AbHCqQRSx4X+v/19XJQy98fYb cOd4yyul37uSEvKLHEPYXVHGK+ey1Ou1db9h+fZvTyptFcDUCIk9TVh09kxr4+Gh5/AsILyupVo pWAwuuyu75b4sGKZ+CDM7WsjtElShtaoefomY5yQhsmJgtlrQ/XiAnAqn+nmKvq3XrJHqds2 X-Authority-Analysis: v=2.4 cv=GYkXnRXL c=1 sm=1 tr=0 ts=6848370c cx=c_pps a=rz3CxIlbcmazkYymdCej/Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=6IFa9wvqVegA:10 a=EUspDBNiAAAA:8 a=WbeaI0-OC7IQdSlKmUMA:9 a=QEXdDO2ut3YA:10 a=bFCP_H2QrGi7Okbo017w:22 X-Proofpoint-ORIG-GUID: ie6ckMFxJH3SgkIDFJac9XWpB-ueRnp9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-06-10_05,2025-06-10_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 spamscore=0 mlxlogscore=930 bulkscore=0 impostorscore=0 clxscore=1015 malwarescore=0 priorityscore=1501 mlxscore=0 adultscore=0 lowpriorityscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2506100108 Add the "sram" property to the watchdog device node to enable retrieval of the system restart reason from IMEM, populated by XBL. Parse this information in the watchdog driver and update the bootstatus sysFS if the restart was triggered by a watchdog timeout. Signed-off-by: Kathiravan Thirumoorthy --- Changes in v5: - Rename the property 'qcom,imem' to 'sram' Changes in v4: - New patch --- arch/arm64/boot/dts/qcom/ipq5424.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/ipq5424.dtsi b/arch/arm64/boot/dts/qcom/ipq5424.dtsi index 7fdc003f210e5a69944b00361a16fbdf58f39801..1d5f943b3aa6be1c1bb7b74d9d44c8e1755678a4 100644 --- a/arch/arm64/boot/dts/qcom/ipq5424.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq5424.dtsi @@ -485,6 +485,7 @@ watchdog@f410000 { reg = <0 0x0f410000 0 0x1000>; interrupts = ; clocks = <&sleep_clk>; + sram = <&imem 0x7b0 0x5>; }; qusb_phy_1: phy@71000 { @@ -591,7 +592,7 @@ ssphy_0: phy@7d000 { status = "disabled"; }; - sram@8600000 { + imem: sram@8600000 { compatible = "qcom,ipq5424-imem", "syscon", "simple-mfd"; reg = <0 0x08600000 0 0x1c000>; ranges = <0 0 0x08600000 0x1c000>;