From nobody Mon Feb 9 17:44:37 2026 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 BC22329AAF7 for ; Tue, 10 Jun 2025 13:45:37 +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=1749563139; cv=none; b=OHLzHrU/fvVSxoQD9Kc4LcLdxTptNMslEZPQplRshfgMrdlXZfLEqFmIW8AtzNVp6UPpvRUDzPva1nshTSOoWmajjB2bvuLWjTaoJs8FZDyMWsuBwzeAVQNobnoYVuH1uYWDddR+++zD1WddIdJIq/AcK432P3bwA+f8uFbakkU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749563139; c=relaxed/simple; bh=lRTdGZr0aQBOohKHQi0z+qkIwN8mJlJ286epa15TUb4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sIF5NWfFqON0CsWYIliWwzlKJyLEApbMjATO+FfLQLXuXpQNA/vFtlkYusegv3Vyyvv1aw0EYCjr7dedKYdeYzPvjudgyoyowJHHh4QJJUmqga5CqGIUWjp9rZEraMrajb3LfOBmypjM+n84DoRxgzRXPAzZohss2vA5dgXzkVo= 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.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="A6JUGWEt" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 55A8lnr3000639 for ; Tue, 10 Jun 2025 13:45:37 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-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 474dn69jac-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-pl1-f200.google.com with SMTP id d9443c01a7336-234fedd3e51so49464925ad.1 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=1749563136; x=1750167936; 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=TpKnWjKQa5jkBcv+PoggP8n9GmzxP9GUNHQFuNkVj4i077FcZHHJQJA01FlnE7/PtI YYXr8AE1Z8G8eFFq2CgxFPbmRx11xQ0NPjKbGk3AVTILh4dtgrt9FmC3z5afW9UZD2RA Mi2etO/okhGhEejxRSWpImxOtGG6bWCbJ742zDH8jWUtT3WW3uVRJ7WCh4CBT/B/9Q2j nFjLqSAIq3qH+wuCx9ZsDnf1DRDgAoDHjsrzSVIZMI0GltrD370mVjqIpDR8U5fjmIYM tsjJ3glnEqqtBpC/ZXC8vAfCP2erKFKmGZX8c74+G8FUiK7sNhDIiXwJFD5S1n45rtc5 QOQg== X-Forwarded-Encrypted: i=1; AJvYcCVCTLWY35UqAow8nztWsN+P0j0Di89bSF6G0i5NJ9xrvN7IaSckp+rr4kQoMii5gd6yocXUvmY3M+0q1eU=@vger.kernel.org X-Gm-Message-State: AOJu0YyzMNMuRk/SjGooT1A20pYSRGdKcCgV8T6rj0A6Q8daBbU+x/l1 MC0rO4XDntl16ZEBs3YcgmDxVyWpbPoo2kq+IsNHs1S6RJMsLMMz5TwdYLs2pAa7IIf51prHu8h ph/bMo2u+EFOJtLd/xKKe8Xoyk7lx4XW0NR28S6TTGGvr52sVtoeJcw3RUU9wHbjNtKA= X-Gm-Gg: ASbGncvLatsSqd6RG50VQo9CHCo81UvrZT6nMRogIexMXJ6NenMLIvTwK/0Ab0iUKtF IHmTf/UngTSCKyDQcMAG8mXFeXGGfl8Rh9/dG5oZuBIUIcc64vgM4mwpwd7aMF43qmxL1gyG2xw JObxNAXaI5VzF8nCWIV+VAtKXU7d2RP3IWOyk59lSeDaOaglt2h292iNfbFG0mzkphIuZYdEle6 qkFpqMIEFwJBau3G1X+h5XctYv1kZ1v1YxCsQQtTy3L+09QieNhGg26by9FMxNRBOfOVIOAeux2 t304Mn2d8uCmbJ8m5xH2tI3SUhiMsPaShmNyxiAhyPzqbLj189250lOe+c8upUudJO3Trr9Poah /drq1/aYL555KmpW+vEVbPNy8mhK7jz+FdZewZ/aAmQFj18q4MzxaSTDm3w== X-Received: by 2002:a17:902:e845:b0:234:9670:cc73 with SMTP id d9443c01a7336-23601cf2f3amr258760345ad.5.1749563136148; Tue, 10 Jun 2025 06:45:36 -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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNjEwMDEwOCBTYWx0ZWRfX8CU+ysZm+8Zs npDXIB+igRNDeS3MnXVsaLGhqVDuL5T75D+xcwU2CD0LvV65ZrWa+P7Hs/3RzVtKIyAZpksnpU8 tYrTy2rGjLB5BDVF+P8/NH9YvrDhfMCCaaxfmjctAXA9ox2+qiwm1SvccyJZy5l7VKWh/wIEdm6 wea7fDIWYP6PBhkDLeaWJZHg5KSAG05RyMROcliemX5sMNxT1X8Ur1IcXCVgTFPYSmCg4zsEqMW F4kiU4C6yTBh/JjW5KpcY/4FBpvCaByghlpI2pycRwLYIQ/zPP/DKsjO1UveGTKPfvDh/Zlv4ZK aJFLEiG2Ha9PyS/oo6CXGQ6h7OAqsEDYtGREUphY5Tgcn0mzq4qWbNGo0F+QzFnQ+7g370mSiFI mrpMbV/nHYuM1O7UplwJW7343VzdSgP1sd6agzZX+yACiOD2eAx1ygyCA2npV6YwMcLKuXtL X-Proofpoint-GUID: glJXaemmeKHGtQ5Gf_wM17itg5C7yyu2 X-Authority-Analysis: v=2.4 cv=FaQ3xI+6 c=1 sm=1 tr=0 ts=68483701 cx=c_pps a=IZJwPbhc+fLeJZngyXXI0A==: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=uG9DUKGECoFWVXl0Dc02:22 X-Proofpoint-ORIG-GUID: glJXaemmeKHGtQ5Gf_wM17itg5C7yyu2 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 lowpriorityscore=0 bulkscore=0 phishscore=0 adultscore=0 mlxlogscore=999 mlxscore=0 spamscore=0 suspectscore=0 malwarescore=0 priorityscore=1501 clxscore=1015 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/Docume= ntation/devicetree/bindings/sram/qcom,imem.yaml index 2711f90d9664b70fcd1e2f7e2dfd3386ed5c1952..dec1b1ee924cf1386f559eb262e= a864f2788c165 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 --=20 2.34.1 From nobody Mon Feb 9 17:44:37 2026 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 E29B629827C for ; Tue, 10 Jun 2025 13:45:36 +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=1749563138; cv=none; b=rKvVqDeffVDXIKCC0UBLW0mVF55s2rxdAd/Ot0fGQRvgm0fEA9G/yDwh+PxYFUs9e2yWfacVIqoZR/dRWtmDXXl0Psf2ckULwPFHL7uRNJmNkZOCnYk7xIQq2dUhksspMhYWznerSHhK0Op/NfOc1b/v1u/Aw9xgcS/AUA0bLJQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749563138; 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=Gz0jN7a2KIwfjh1jXaAMYSTQnqTYnP7UkBSHESaP2Zt3bAessk8vj/VMJOXNW3VQDx6irczh3U3OQmaJ7u8ogzGbEyDHeIpOt+WNKl+zgk07bCvkGMX1rHM7AfpBxOu8Qs7I1AxgeevoLRk4seI7uDv8ijpyINMkJI+TCl6LqJY= 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.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="YR3q1n2J" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 55A6e2UW020237 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-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 476fmn97nu-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-f199.google.com with SMTP id d2e1a72fcca58-7429fc0bfc8so5333753b3a.1 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=LWnQm+Bif7Mjo9MoMATou+asS5vjWf3J0aNwcQP8OQbNKFOv2nTdI2F2B3ZNB/6hcb aqZJxMbt6015vbkuDK7EibzW27TVOLI/1k9KpxYMnq35bJZE+hnVlLKSqtrDlbYv1bC6 63J1DXgq2WEn/I1nZ2+SF472dJ3Qm713WFVEL00HtXAEtcEh8tcVL4me+QBXG13Qm3jA RGf0qXZxwU0DJnUAbrEXzOVqfjyMbp8NPMiOCwpPO3Ne6zP1DpyamESIGaaiNqdqfQma 3q5aZ8L6Ix2+7NrJ2FtSp7VW923edZfOD9MTNMEmGhcN6eEcxNExSkoHX3+/+mhkhN27 vtKg== X-Forwarded-Encrypted: i=1; AJvYcCVZhTYqbbEjPzuIFRoG2v4uW29BocdjZLP7E5jZNbHRG7Q6hR5qOhld1wjDkXY6jGdRhjOIU/Afls0FuMU=@vger.kernel.org X-Gm-Message-State: AOJu0Yxp6ot+uoNLL4H9z8fNicuZs+USDhYkhnT+oHD5FICjTE9QIZha q24DEF0GzZ7cVJKoX0DFKPWk1Vf+BIDH/TVqG/8z6RUfBKtciFjoxDgFc/4Yulu/J0Ij6HyRpU5 h/hfrl8KxYnNqag+xDjWLZ/bQzIj4P7LX1rpupU3CpU31yGXIsbaJYGW6rjHS8nUwDgk= X-Gm-Gg: ASbGnctTKWrf6YgVMlIMhy0hpgt39hZWozWEVE9YZqesBd84MfyWaQvl+EzgFB2E+Uj +IZ13ah11KP3fokMnu8QLomvnBR27YKxUNPz/pvqOOmArzzLLI2qvKgXDiP7BH2dbnvYWcU5Ms1 KI6bhNMNMSSTjJ6Thl0faCp1NvNQx+m7fUEmM2AYmvjWO85IpN0+1rhYLjtyUyBM7m9K9JLdy2F KQZeYhCXZ5+m3hUy525msFisVvD1B6X1ifRRGsDUYzogE+EzS4dWuILsI9WBc8OCkgYoTczpek7 ctcCWMOgTBzSiQ5SDDDg7WtmdqrgjFk+4ydnKZB0p9bnSqp2+ROH50C5ljfWSE5HS6aMFQBZoBo Y7kElhFxHZaPFihwocxLENH+WCDE7rnA5xb6vAlW6o317U77bEoJWwzTFgw== X-Received: by 2002:a05:6a20:6f8f:b0:218:23bd:6927 with SMTP id adf61e73a8af0-21f768bb422mr6565248637.6.1749563135338; 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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-ORIG-GUID: zldmWPa9PA0HsTLODFkRgdabT5TJpxl4 X-Proofpoint-GUID: zldmWPa9PA0HsTLODFkRgdabT5TJpxl4 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNjEwMDEwOCBTYWx0ZWRfXxQwFIO0UKw98 boEAG53SlSJyP/T5Dp6Re+5xoZreZMzJZjGGCxpBNbBpk2z+EVCYpJhYiHntnJ8kgqSXpUg6yxc KlxeNPjO6F1vesvF1bA7lMZMZOKrZNbPsQFFW0gnffkM0v4/XRfFmk08j6NTgYfqEHPnQiwo4vN fu+6C104YYvNGlB75WdfienNximjeRLtD0p5phKu731tSWN8mIhWdCmmjEI+qQ/BpH/8jNBJw52 wlwfXofr8MadBFhUq6Isr1uvqffqRrd4x86mxWubE1McLRe4cyJqq+JOrssv4LE/HacS+TI89HU 7dwlz5qTzaBMLqqFX/feLiP4H6a9/YgzIUpy82LI9ZTNsr23T6PgNHPcR1OA0aWuRwEsOveOSls Fp8nOQx8N0r+SeqitbWrIJAUhBB3MjlTp3urm/0pi8SJNc4fiUzMHkG5ER4giCOadi08m26D X-Authority-Analysis: v=2.4 cv=K8wiHzWI c=1 sm=1 tr=0 ts=68483700 cx=c_pps a=WW5sKcV1LcKqjgzy2JUPuA==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=6IFa9wvqVegA:10 a=EUspDBNiAAAA:8 a=QDJorwyCwNfNgOuVDpwA:9 a=QEXdDO2ut3YA:10 a=OpyuDcXvxspvyRM73sMx:22 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 clxscore=1015 mlxscore=0 mlxlogscore=979 phishscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 bulkscore=0 spamscore=0 impostorscore=0 priorityscore=1501 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 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/qc= om/ipq5424.dtsi index 66bd2261eb25d79051adddef604c55f5b01e6e8b..7fdc003f210e5a69944b00361a1= 6fbdf58f39801 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 =3D "disabled"; }; =20 + sram@8600000 { + compatible =3D "qcom,ipq5424-imem", "syscon", "simple-mfd"; + reg =3D <0 0x08600000 0 0x1c000>; + ranges =3D <0 0 0x08600000 0x1c000>; + + #address-cells =3D <1>; + #size-cells =3D <1>; + }; + usb3: usb3@8a00000 { compatible =3D "qcom,ipq5424-dwc3", "qcom,dwc3"; reg =3D <0 0x08af8800 0 0x400>; --=20 2.34.1 From nobody Mon Feb 9 17:44:37 2026 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 8420D29B76C 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 (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 55A9cU8d029980 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-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 474ce9sntp-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-f200.google.com with SMTP id d2e1a72fcca58-740270e168aso4460890b3a.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=eg6HySoucBb0Ags88lS7T+lTydCNXIhGUM1UdC7PaDA6NH612F/FMW2zJPooajcUSF twfApD/s3r9k+hoNs6krIyAZJ60hTz78ixfnrRgdv3W/eLwAHBuRznBfLCdSccj8BIZp x4fG8nnS7TMAPZG9JwOtBD0m1I7/tDruPs4Co6cqQnpyV5EvSw2kZIhL0dlVtmW9sCCK y/VoB1uwIJNDAza6WNhvPaCNrKfxwvETKAqBYZv6vTCZHXuuIxMEsJVBb70v3bvPicXQ 8GFAOXQe05qmQlkiC2/6COSeaJ5eWQf8Tw+NPceCYkxbrfZ/B5zt5jtltilQEcebj3TF eW7A== X-Forwarded-Encrypted: i=1; AJvYcCWSFf2Dcg72WNLayQONwAl5aSH0Dxlauav5bvfHjPkmYipnJZsiyDDH+tVj5A2UG7l4XWoD9sngCn7O1/Q=@vger.kernel.org X-Gm-Message-State: AOJu0YydxCZEgMInz8Z1cUJuMC/+K4mEp1+QxLrVmvCoA5x3BmaBoJmX 16hGjPdTK8kdY2iuAZ1C5rduVEfWhn1lVPLe3w3pn9hfqar3EF7iK/DOKsvPyprNa41IPhkzcHn YFrnKQOBgeLFiViOlyYY0WnDiNOZ03+BgaV5MkBaTNy2+dQpBbUX846Vwn06fFzSRO1Y= X-Gm-Gg: ASbGncsFuxFNFteNe0vGQ0+a4iSTxVsvZddMzq8UeEZLMAq9a5MBmn0u7+HmLRfe4+g J19Cz75rdHkPPxFXXWUd/LpahkD6Po4KxDWPi9+RE5isjHhHysEVqTEPamYJHcnoxZUfdsMHg0r XWR8ZnUVTNPC485rbjtRjf7Y4saRslskkFZR6q9I38HMdsHE6oxYqsLAHrR9fdWLbPooBey3X69 x69h8GfLokxezUXoyZxa9/uvK98JXcKC9U86WVVK2YRkT232yXROl2Hw4p4nHud4X1/ozU51BtU NuNmtxRw+TnFAmMCRgcvn5ZURBRVuGznk05WiU5gtvTU/mDrswQC8c6Uo/uzAjEvtKJX2LRb7eE juRhdgUUCz91ZkAp0+LApU46eO9vr72iSonMyvYUgKic3c1HPuHZI0UAMUQ== X-Received: by 2002:a05:6a21:8dc9:b0:1f5:6b36:f574 with SMTP id adf61e73a8af0-21f78c75463mr3996071637.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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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-Proofpoint-GUID: wkjgQGKR75hyjvBEQ40X9V41GJeTzh3P X-Authority-Analysis: v=2.4 cv=drjbC0g4 c=1 sm=1 tr=0 ts=68483704 cx=c_pps a=mDZGXZTwRPZaeRUbqKGCBw==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=6IFa9wvqVegA:10 a=EUspDBNiAAAA:8 a=0aCF2Bm0WFNHtCR-1QwA:9 a=QEXdDO2ut3YA:10 a=zc0IvFSfCIW2DFIPzwfm:22 X-Proofpoint-ORIG-GUID: wkjgQGKR75hyjvBEQ40X9V41GJeTzh3P X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNjEwMDEwOCBTYWx0ZWRfX5qgrvKk9+4Nm M2u0x3C/XWRf6UdntbN6VM/I1OZamUcz96TKAYqJl+zhwZiQHmbYnMwMY8rMnjeqe51PuYC/tEU IP6ODuVXn96LxBPVZ1t5P4ZTXKErA9CjgXMR/pgxh5ogkWL461l/jF7OZGB9RNehz/fvXDSI2Ur 6dR9nZ+gwLI37+inkDeOT8zpcf7IQllEtf4KM/DTKxCUHAHEuXDItI8ykaOmr18LkjzB9ax4F5D WhUR6eqtTyaeSbHMK8+dxvPUpqiLif88mc2SWsZtkN+kqyHugNnKRxdWbLSNTJwotNqOjOW6kQX bKLqidTvkJIucp6JIAcQBTy7WswHE056gDZ6GkEyLTqlx8W9xE2CpmmGrFUzgh9D3MuXM3M2YM9 kyW0sHlX38vk4PRE4iTdNGmTN8oGVelda7pr+99MLZes7zuVemuvTi0AXHIIFk3AoQU8KuHk 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 spamscore=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 suspectscore=0 bulkscore=0 mlxlogscore=999 adultscore=0 phishscore=0 mlxscore=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/Doc= umentation/devicetree/bindings/watchdog/qcom-wdt.yaml index 49e2b807db0bc9d3edfc93ec41ad0df0b74ed032..74a09c391fd8e2befeac07f254e= a16d0ca362248 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 =20 + sram: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + phandle to the IMEM syscon node that exposes the system restart reas= on + items: + - items: + - description: phandle of IMEM syscon + - description: offset of restart reason region + - description: value indicate that the watchdog timeout has occu= rred + required: - compatible - reg @@ -117,6 +127,16 @@ allOf: required: - clock-frequency =20 + - if: + properties: + compatible: + contains: + enum: + - qcom,apss-wdt-ipq5424 + then: + required: + - sram + unevaluatedProperties: false =20 examples: --=20 2.34.1 From nobody Mon Feb 9 17:44:37 2026 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 D516129B8CF 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 (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 55A6wqZI002453 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-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 475v2y4dp3-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-f198.google.com with SMTP id d2e1a72fcca58-742cf6f6a10so7549019b3a.1 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=pOZoWnK3zO3CczctTxnLSxzm+tyoOWgaOoOYNIxPdin9mYj6P+Eb/oOTR6zW5J2AKC THi75uhvj5GV0gm/sXx5f+jipTs6R9EaJ1yYDr5v+NdBGhUTuuFkDPs5OHwjY6/qBYnv Oc0M0jp+QDwgqEwVbff4VOdUeCuq9tDq/MN6Q2aI73WRPOdSthK23Q+jTI6ZxfY0KQwY bD8oKmYXvIj+jWpEYpdo2SCg0dq14U8sEyCe0SQN4oKzYdQQveaS2wVTzFAkTd3LAf9w YmrouJVUIQGxP1GevF3D1FeVVG022V1wjb1U3STD2DQVt3zyF+Uhxj54xmmgFM5+GieW ZqrA== X-Forwarded-Encrypted: i=1; AJvYcCXOtJqnbo2UKYECbzrtZe3jxQZjeGsZraQc3w1Jbw+za9TdvN/ojPoopAht/nhSvUvsRfzCOu0ZOQuBmzo=@vger.kernel.org X-Gm-Message-State: AOJu0YwEJFCtpDsXmEqPwCBjfJz3JOm44/VwcJTn+TSN1grWy2gWnDJm s2U8BWht1wLfPR7a7NSkWIBKBROxSW9pmCcrRIKNyEMvaB5vpgwjaekLvQfmhmQuJ28MOvXGIXV CYXFBRy575dIC1HvsPR0lNXt38H/ZtzLN+SWDw1YZ/1xqIFwIvXI9UCPiZNqH3juRxgI= X-Gm-Gg: ASbGncvbSxJBzEmwlfyu8v4OkYgmdsIRkMWQhvUONRKk++FueO3i8bho1oQkA+FpI4Q 25kJlqnQOztybhP2LTALbU1H4sbFcx19mXntg38QE3tCSpfe13AjdqkrQchJp7wmu3bS5mmBYR3 T3GeWYu+auQbU+3hlAwJNKpCEVVy8hGcUQDnFhIIsf0oMQDsdu+jSd9bnN92p2w8Ovl0QCXc/Vf oxgVCCcxPoBGD+z3EC5omLHekboulbcnJL8084S6tJZ3RWvgBUA7BPK/CqFM7cQ/6VetqCwK2Is D382O3KmnxsN9tWYIGJqBhFI2iXXTJOwnOe7cvfGJIBcIqbLJDUqCVRKJL6AlkRxuQ02KeeU9ud BG8KWF9uEAj0iGnS0BjwYPE9d9EOAHY8tS0W5ENuoGJqEE68cX4o/YTYMdw== X-Received: by 2002:a05:6a20:729f:b0:21a:ec1c:5842 with SMTP id adf61e73a8af0-21ee6897fb7mr25631341637.32.1749563142904; 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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: AW1haW4tMjUwNjEwMDEwOCBTYWx0ZWRfX26rEADkGYMP3 E7+ZaGNUpZpUBiyYcIf/CFqjHhvrhtZOelnjp/gsdNwXLcz3C1EDym1ej92EpRZxR4qnC+LvVHW nQHHZWvdW/oB8d+ZxGj9OvzPBeM+1JwqaSavfMybUHyxPi9Y0uT4ecobT1LD5lg168zCUcEccM9 GGPMErFGso6XeWo5bCFJ74PyPGT7FRduoVdxoGxcMr7QtUxxBUf8M4on21FVNct7wM7NfgRGh0z XW+zr/D7U79MVOuXWF5BcSn/M9uUpAJkVkCq349GrXt08Oel/sgqjlGH0TPp7ljLw9JEWC+JtwI lF7rRA/08dEt/jRCl+cIV0j/9nGKlxIPtSHEgDXzXcooNnNqSaWAVRgih8cavI4LzpfqPYJ3grD N8ZGHynS2cjQQzWaHsHbBU9EMj9x1q4hGUqIxlzLRWkHIPpmUIVSh5QFhN7ZXU3CvLWtUfRt X-Proofpoint-GUID: WzTNoEyY3Qhlkq-upUcyLrjzhxRmIK4r X-Proofpoint-ORIG-GUID: WzTNoEyY3Qhlkq-upUcyLrjzhxRmIK4r X-Authority-Analysis: v=2.4 cv=f+BIBPyM c=1 sm=1 tr=0 ts=68483707 cx=c_pps a=m5Vt/hrsBiPMCU0y4gIsQw==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=6IFa9wvqVegA:10 a=EUspDBNiAAAA:8 a=tIxvoA3mxl7b6XSbyz0A:9 a=QEXdDO2ut3YA:10 a=IoOABgeZipijB_acs4fv:22 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 spamscore=0 mlxlogscore=999 bulkscore=0 impostorscore=0 lowpriorityscore=0 priorityscore=1501 adultscore=0 phishscore=0 mlxscore=0 malwarescore=0 clxscore=1015 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/bootsta= tus 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..795f409506c6bb1dfb26cd8af18= bece3cc35aebf 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 =20 enum wdt_reg { @@ -193,6 +195,42 @@ static const struct qcom_wdt_match_data match_data_kps= s =3D { .max_tick_count =3D 0xFFFFFU, }; =20 +static int qcom_wdt_get_bootstatus(struct device *dev, struct qcom_wdt *wd= t) +{ + unsigned int args[2]; + struct regmap *imem; + unsigned int val; + int ret; + + imem =3D syscon_regmap_lookup_by_phandle_args(dev->of_node, "sram", + ARRAY_SIZE(args), args); + if (IS_ERR(imem)) { + ret =3D PTR_ERR(imem); + if (ret !=3D -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 =3D WDIOF_CARDRESET; + + return 0; + } + + ret =3D 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 =3D=3D args[1]) + wdt->wdd.bootstatus =3D WDIOF_CARDRESET; + + return 0; +} + static int qcom_wdt_probe(struct platform_device *pdev) { struct device *dev =3D &pdev->dev; @@ -273,8 +311,9 @@ static int qcom_wdt_probe(struct platform_device *pdev) wdt->wdd.parent =3D dev; wdt->layout =3D data->offset; =20 - if (readl(wdt_addr(wdt, WDT_STS)) & 1) - wdt->wdd.bootstatus =3D WDIOF_CARDRESET; + ret =3D qcom_wdt_get_bootstatus(dev, wdt); + if (ret) + return ret; =20 /* * If 'timeout-sec' unspecified in devicetree, assume a 30 second --=20 2.34.1 From nobody Mon Feb 9 17:44:37 2026 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 33D5A29CB52 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 (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 55A7Enav001104 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 475v2tc9uq-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-b0e0c573531so3362526a12.3 for ; Tue, 10 Jun 2025 06:45:47 -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=Z6Ddup3XSTaxJkiDHI62CBR8RoHADSwLvMfJ5Bx6iHtlk3CuXJINYfH/WlpdStbayi b3AKI7ER6L+aPUD5dGRQkey885aigDMP9tsIwtqBJMK/ifd//mpsKW9Gem9E+TJgF6Kx NMVjYrguZ73uDFhumYr0c/1F8VnOz4Ew87cK7+GKTbrtVsSIliTOMwv+jUAjdx6SR3C+ AkAH+iFug5gIqTwkaX6D668iMKjMU2ktWoJkZVQ1ZchiXlKYvbHs5rJQ9uibOQtNp12h baUHOr5LUr6NFU49pZylCBVX//z/r9tXDnpg6dVaJ3IfzA965kJL026icRme/KjbhDeb JYWw== X-Forwarded-Encrypted: i=1; AJvYcCUM/E3R9y2Na98dRj3QdMQO50+kNwdk1Gyde8TUEmtX5lTW1zMx2oMM9E5StHc3uecp8SeOeyIUZm+aQgU=@vger.kernel.org X-Gm-Message-State: AOJu0Yx35YTCjq1f3kR56jgxP8g7pvYV6jftNiUJlxmkT0DrrOTEOxG+ khPe8sGmcLeaMV5sduFtG4BrU29O1eDSEdzuUv6uj4HjTFctUzjzeETFl4QSJ5RilUZwEQ80ePw /BpNpERu/Ps1mzDVR/dnUy+crktT722CxBdl6W1Ux9fPtosQ/VH9Px7CyH8ucNWSIl9U= X-Gm-Gg: ASbGncvpM3EbedeKZvzCqbCyAqqpU2B8BELYszXkLY/6ZrIgr4iPF1Azaxddl824PO3 UrQLrur3imqEMeJ9TN+HMTTbwilvXenwvIsKlads2l29qkkx1C+KFBZSwG4F/IKspUSDpjxCA0E s7UaoDbbOvHu5ycsNvgzjNAretSzhlIEtmpw6tjHxt+6REQeJdBM0cK8D6T+g3DIPlxwXD7GFDb j+k626WPIjeP0AhweHR8PAQlNqQaQC/uO+qqna6v3lAOjprDCIJR4Z+dXr5qGaEmiG8jzQWCxn1 IFDfxyV0p+xr5/vbuXYSXz40UyY+vWwVLchrrWvDwdt2gvNECFFEQfYKpmNtyH9ZeOYybEMjmzr Duz0HzFin0wk2cHmPmwB9Ba8ZxU0aVcxVSnC5tUaSYGk8oFPMaOxdtKM3yA== X-Received: by 2002:a05:6a20:9144:b0:218:96ad:720d with SMTP id adf61e73a8af0-21f78b00d19mr3904179637.1.1749563146836; 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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: Svq7rbsyjGuaHi46zD2cEcCw0jJ4hVMo X-Authority-Analysis: v=2.4 cv=GoxC+l1C 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: Svq7rbsyjGuaHi46zD2cEcCw0jJ4hVMo X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNjEwMDEwOCBTYWx0ZWRfX0DJMre6647RB 7xaqdIGw9ikGtluLZgNTadMBu62GPaLNVqHbMYQ0XLOqIU06PJFNfU4phSc3SYxc8TcV5NQZW43 7rgiet14at1DBC/8V8zKF3a5u5NXEUL7jHbLmRF4iVLzDnt9p/yN/DSTVnBW0AjjT3gWGZCQ6Qd qmfQXZqFrDjhQercp+i0odfMncaw/AuC0j08MifcFsqMrsIk2KWNejJNVcx9oXGvO4834LmHywS QayZvOE23hJHjHVeqEybC/tBo/AM1QllpTqyimWOpKqtQDY/FXYuW4g60rf6WM9vF7xFMtBtV3S NgGWKwRwJDkGr0/pK4PcIuRvhnJ9Wx77SsOuXmXNWqrIguHRmo/xdCvQ5lyWbG0IHmjY0Nr6lzM lE3uSEyTbbVWr4g6iZiFF6SAAemlJJ+25hEdkVY0PrAO3563hgho11O+EERDBaVpdCSY5gDV 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=932 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 "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/qc= om/ipq5424.dtsi index 7fdc003f210e5a69944b00361a16fbdf58f39801..1d5f943b3aa6be1c1bb7b74d9d4= 4c8e1755678a4 100644 --- a/arch/arm64/boot/dts/qcom/ipq5424.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq5424.dtsi @@ -485,6 +485,7 @@ watchdog@f410000 { reg =3D <0 0x0f410000 0 0x1000>; interrupts =3D ; clocks =3D <&sleep_clk>; + sram =3D <&imem 0x7b0 0x5>; }; =20 qusb_phy_1: phy@71000 { @@ -591,7 +592,7 @@ ssphy_0: phy@7d000 { status =3D "disabled"; }; =20 - sram@8600000 { + imem: sram@8600000 { compatible =3D "qcom,ipq5424-imem", "syscon", "simple-mfd"; reg =3D <0 0x08600000 0 0x1c000>; ranges =3D <0 0 0x08600000 0x1c000>; --=20 2.34.1