From patchwork Tue Apr 8 08:49:53 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kathiravan Thirumoorthy X-Patchwork-Id: 879694 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 7C60B26659B for ; Tue, 8 Apr 2025 08:50:14 +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=1744102216; cv=none; b=gYMAspQMhVWopBlsMBpToovPSTdy0PbE1Q/i6kpCK3WfN8lz8xkJrDFoBqqkl0PhyUnbOz4xZRmk3YVriYWoSXcYFq79Wgpb9UaaeO17N6FSBEx16KiDXh3Ed6tBZ57741Cdpu1oYj4XL1IWyeGxlMRIp1/utdm1d+bwMd7571U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744102216; c=relaxed/simple; bh=rFZfORpX/VodBNhM3MvD9XibIi54cIx4GhyKqOm7u+A=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NoF+E3lwicD6GdhIaHYGlESX+SYh9IjzLm7hBe5OXXuXVUSZA0hdjSt7R82F7euiSZmtGWe4zOzg3HC72TW3LDK02Hfq9FMaSlliHXzN31V0vVWrw+oYhG/Nv3tDWpv7hjqNRWPtDSWyJUsFgffT6FCtK9J+snpaz1JL9UODdJ4= 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=orQgpIsa; 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="orQgpIsa" 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 5382GebR008231 for ; Tue, 8 Apr 2025 08:50:14 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= w8wfggCgi4FvHL1Ymx29tBzmBj8jKzAGIS9tbIh782Q=; b=orQgpIsaVal1P7FZ zz3IA7CeYxKEhJWfGTH2OKcVjBYqhQplSQBT4ponUFHq7S2bfK36H18QlMb7QMRO /Z+Hqd85gOh07eMzRoO38s5LSXMuOD75VJcRBFDmxU3nyEc3vjW7WFQDpO4rR0Wb 5y+nxH/G6KvROlWYS0ULkoor1c31O230Dohc6YNT0OmhdFWtYEyN0d51NxwucZO5 viKKkzwxRCmHQ5j29OUQeNMtbS41o3C3uXcVIOp11sGMk7Ma4w6h31YsItDhmuSH yP4v8AgLC3uiXx9Sn3XUwmWA7DRlnQIuQydFJOW2uwAKIytf8P9ruqSi6lrwaBgA LJz/Jw== Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 45twtay5bu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 08 Apr 2025 08:50:13 +0000 (GMT) Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-2241ae15dcbso62883875ad.0 for ; Tue, 08 Apr 2025 01:50:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744102213; x=1744707013; 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=w8wfggCgi4FvHL1Ymx29tBzmBj8jKzAGIS9tbIh782Q=; b=p5d0P2n+oVdGE06jiUd9wXCxL+2urjcLNURItMH08ghU+jD8Nt0Hz+XJr98Uk38XbD NkX/wP3iwNhTlF385nX4depI29ZUufeXqoGS+HSpDNTM6olM375uny1SXyG2qWxZQNpz hyU1O/YMfuUnOKbRt9NswcVipbb5meT1Ihr7Eve+tH6xGUj/Yf1KscqRIkBENtYOF/L+ jzuOaJXqwnsE6HYepb4zfa70jCDADavFxzx6foXaKT/eZdUbKmR8bbhESQPSNQK29IlS hshIOgdFT2PNqCBpksu0G2AiXkJLeuKI8pd0+kK+fR+XzGKhhuEIbpePLhOaO++kO9Gj VroQ== X-Forwarded-Encrypted: i=1; AJvYcCVMak5kUylCUUalczsewYkraAc3DGIvcVHggaPR4mvBnxOATRUrdboLvMLWyh+drHf9uXXbFVH9nVmpRsM2jg==@vger.kernel.org X-Gm-Message-State: AOJu0YxW8pLt/BfIwjGetJLxoTgVLsjGTFbTbgUOAin8BhxnhhMbUWDR cB+GoPLjLozGZh1O66TkLlCfYEUQQ3lPFHbOA+TVKLhY2xSkOrsNm60XVTYRTMeZL0uX021UL5u ECDa5qTFAynMalH7464ajXj5zCV3l89xZgTw+4SvLCXKEVOg2H6HQ1VIw3OZo+m5ySg== X-Gm-Gg: ASbGncvIhrwU+afY9FHz0kgOEe6jwg3P3CvyLPoc9ZOoy8Osaahfwx1ubr3IxmYjDVM Lsw8KmXwITPhqfMpgHhWpi6wnWJA4I+AqaBL53jz7u2lxdQedxaj3EXjKkxKgz2/jn+Hzhw4Gs4 4GPTuQaCNt0YOwWKERMj6NjxsZbjTgym6qtc/xyv+ectABwCo1EY7uAjYT37Ht3+RqKBuHk7fuo 23Im/Gxxj5zvW/qWbgCSqATP9tlGia6uSlEFiIpf29w0/h8HIRNhzvyTPw3sta0YP04/2UycI80 Wf/1JNcAb9pbvwrF0CeV9T+ciinWNNeNmwVSPJipZu0CR7YNrtiSg0fSyHmMIIqE0V2+Wz2wTHW BbcOcWLD/7whMmVrlvfNFYkS9gzfle1LRKq+acHY+eX3xXxNXBCY= X-Received: by 2002:a17:902:c94e:b0:224:5a8:ba29 with SMTP id d9443c01a7336-22a8a0b38bdmr185397525ad.43.1744102213022; Tue, 08 Apr 2025 01:50:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGxGVjc6gczWTVRmIfx+jXyF7w2qEVdun4mE6OaIksOtFQAgvYNQKxxDMbfEp5G2BJZ2C0J5A== X-Received: by 2002:a17:902:c94e:b0:224:5a8:ba29 with SMTP id d9443c01a7336-22a8a0b38bdmr185397255ad.43.1744102212649; Tue, 08 Apr 2025 01:50:12 -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 98e67ed59e1d1-3057cb5a823sm10480846a91.34.2025.04.08.01.50.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Apr 2025 01:50:12 -0700 (PDT) From: Kathiravan Thirumoorthy Date: Tue, 08 Apr 2025 14:19:53 +0530 Subject: [PATCH RFC 3/6] dt-bindings: watchdog: Add Qualcomm restart reason binding Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250408-wdt_reset_reason-v1-3-e6ec30c2c926@oss.qualcomm.com> References: <20250408-wdt_reset_reason-v1-0-e6ec30c2c926@oss.qualcomm.com> In-Reply-To: <20250408-wdt_reset_reason-v1-0-e6ec30c2c926@oss.qualcomm.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Wim Van Sebroeck , Guenter Roeck 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=1744102197; l=1894; i=kathiravan.thirumoorthy@oss.qualcomm.com; s=20230906; h=from:subject:message-id; bh=rFZfORpX/VodBNhM3MvD9XibIi54cIx4GhyKqOm7u+A=; b=15B5CH7fqcLNre7ij4t8RNHCIE50ipG8Z/m6BzUVEfeqPybqlpRvP0AIn8NVdETwm7v4VNsL4 ZkG0mNB7Pe5BoFohG0QL2wCFrp9/HtCUZ+km2CwQF5kWad6oFEpzBEX X-Developer-Key: i=kathiravan.thirumoorthy@oss.qualcomm.com; a=ed25519; pk=xWsR7pL6ch+vdZ9MoFGEaP61JUaRf0XaZYWztbQsIiM= X-Proofpoint-GUID: xwrOomKySFTqi3w1pNE4E-u9_YtDyO4w X-Authority-Analysis: v=2.4 cv=LLlmQIW9 c=1 sm=1 tr=0 ts=67f4e345 cx=c_pps a=JL+w9abYAAE89/QcEU+0QA==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=XR8D0OoHHMoA:10 a=gEfo2CItAAAA:8 a=EUspDBNiAAAA:8 a=yGTD2esuQI4FSrW5RC4A:9 a=QEXdDO2ut3YA:10 a=324X-CrmTo6CU4MGRt3R:22 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-ORIG-GUID: xwrOomKySFTqi3w1pNE4E-u9_YtDyO4w X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1095,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-04-08_03,2025-04-07_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 clxscore=1015 mlxlogscore=999 malwarescore=0 phishscore=0 lowpriorityscore=0 priorityscore=1501 mlxscore=0 spamscore=0 adultscore=0 suspectscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2502280000 definitions=main-2504080062 Add a devicetree binding for the Qualcomm IPQ SOCs restart reason information region found in the IMEM, allowing the system to identify the cause of a restart. Signed-off-by: Kathiravan Thirumoorthy --- .../bindings/watchdog/qcom,restart-reason.yaml | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/Documentation/devicetree/bindings/watchdog/qcom,restart-reason.yaml b/Documentation/devicetree/bindings/watchdog/qcom,restart-reason.yaml new file mode 100644 index 0000000000000000000000000000000000000000..babbaa70b114f9691018ed6cb10bfa78e18fad64 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/qcom,restart-reason.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/qcom,restart-reason.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm IPQ SoC restart reason location + +maintainers: + - Kathiravan Thirumoorthy + +description: + The Qualcomm IPQ SoC restart reason memory region, in IMEM, is used to + identify the cause of the system restart. This will be helpful to identify + the cause when the RAM dump collection is disabled. + +properties: + compatible: + const: qcom,restart-reason-info + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + imem@8600000 { + compatible = "qcom,ipq5424-imem", "syscon", "simple-mfd"; + reg = <0x08600000 0x1000>; + + #address-cells = <1>; + #size-cells = <1>; + + ranges = <0 0x08600000 0x1000>; + + restart-reason@7b0 { + compatible = "qcom,restart-reason-info"; + reg = <0x7b0 0x4>; + }; + }; +...