Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36561884rwd; Tue, 11 Jul 2023 02:40:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlF3CxopVLfLHGMOOncf8uiDghOI4fX7FHUaEpJ78689c3SVTa0sb6GeFLf/TS4nHrxbFPfD X-Received: by 2002:a05:6358:7f08:b0:135:57d0:d173 with SMTP id p8-20020a0563587f0800b0013557d0d173mr7455059rwn.20.1689068435996; Tue, 11 Jul 2023 02:40:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689068435; cv=none; d=google.com; s=arc-20160816; b=uI2ZBEBkUREx32vJVeYzr42ks53qb5Z/1nIcpvLfsO2mxV+1MpKgmCElodhS6/b7XY pZLlad/QTG86Kz/1af+zBk5I+F/9PVpENmbRoHkUjjR44wldjw8VV1Qocc/xTxcsnO9r hxNwszQEufjQWfnbaVR3YRKJL3kNF9ylO38+tvLiGXFgzR5nox65J8xfM5ChDwueLu08 NVBQSBxXPNT8tzyFqzEDPQAPW+mpOqWNsR4MzmL1jFtlWj/YZaPIhLwEhj3aQj/Axar0 ALpzjE7iSy2R6YCCrY+lT4wZU2ZvXmPOCyMkC+ooOjZS37CGX1V9QGz8ca2ouCt+NdVt 6FCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wE+SEueNbEbwnhCHFDEWPtQJzySe4EclgZMfWR8En/4=; fh=26ARdFcEfuUFW5W2UBjFkMA4idoTK1yPd3wFZD9VxgA=; b=G9ox1ZRHtdg2rqLIktEuklCkKCYTaNSMDkvAEElTWTOCMQJDGaxrPeeWi/E4nuSXrF uyd2M3xDiU+VlTtPi5ozTZFqEM8u+1eOLUKO4ejA1LyNtSGrAQG0JFk/GsA9brl/PM5b c1yq2jOcL1yFk+1vhXTcYa1UJOJkR8CVHNQA2N688kTEMi31zdS4YfrsF+uTnTzVdlVp yhtj0ta8jNUC7YrpkZxvW4hMwOg0CBx2llKSBG6ArDIcOabShNRunJmqxtuqKDgx1Esk +v05apNW0dXtT64IDmqoNVxw6EpeIioHK/C0FDAYyruwSJvbOsqCZsyGDm1C4itvlG3u O2tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=gt8hEd6J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l8-20020a63be08000000b0055c66f42ee8si28703pgf.43.2023.07.11.02.40.24; Tue, 11 Jul 2023 02:40:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=gt8hEd6J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229882AbjGKJX5 (ORCPT + 99 others); Tue, 11 Jul 2023 05:23:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232415AbjGKJXM (ORCPT ); Tue, 11 Jul 2023 05:23:12 -0400 X-Greylist: delayed 81 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 11 Jul 2023 02:19:03 PDT Received: from mta-65-226.siemens.flowmailer.net (mta-65-226.siemens.flowmailer.net [185.136.65.226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E5AC44B8 for ; Tue, 11 Jul 2023 02:19:03 -0700 (PDT) Received: by mta-65-226.siemens.flowmailer.net with ESMTPSA id 202307110917390949818ac86cb28ad0 for ; Tue, 11 Jul 2023 11:17:40 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=huaqian.li@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=wE+SEueNbEbwnhCHFDEWPtQJzySe4EclgZMfWR8En/4=; b=gt8hEd6JCG6zwuqr5chB1NtzWxJ910wZPCDgmK9GLi8dwDMo+u+xPW84URA2v2SRvoXxx1 mhwOAdnPpAmEsIYY3ppntPYh6S9DJSqF+lAkkQn6NznpdinLn6Js9cLWAJCe3KmzsGmWKDpo 6WbeQKTgGX2EFv9tgbyv4OmWsHg/A=; From: huaqian.li@siemens.com To: wim@linux-watchdog.org, linux@roeck-us.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: huaqianlee@gmail.com, nm@ti.com, vigneshr@ti.com, kristo@kernel.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, jan.kiszka@siemens.com, baocheng.su@siemens.com, Li Hua Qian Subject: [PATCH v2 1/3] dt-bindings: watchdog: ti,rti-wdt: Add support for WDIOF_CARDRESET Date: Tue, 11 Jul 2023 17:17:11 +0800 Message-Id: <20230711091713.1113010-2-huaqian.li@siemens.com> In-Reply-To: <20230711091713.1113010-1-huaqian.li@siemens.com> References: <20230711091713.1113010-1-huaqian.li@siemens.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-959203:519-21489:flowmailer X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Li Hua Qian TI RTI (Real Time Interrupt) Watchdog doesn't support to record the watchdog cause. Add a reserved memory to know the last reboot was caused by the watchdog card. In the reserved memory, some specific info will be saved to indicate whether the watchdog reset was triggered in last boot. Signed-off-by: Li Hua Qian --- .../devicetree/bindings/watchdog/ti,rti-wdt.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml b/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml index fc553211e42d..f227db08dc70 100644 --- a/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml +++ b/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml @@ -26,7 +26,18 @@ properties: - ti,j7-rti-wdt reg: - maxItems: 1 + maxItems: 2 + description: + - Contains the address and the size of MCU RTI register. + - Contains the address and the size of reserved memory, which + has the pre-stored watchdog reset cause as power-on reason. The + second item is optional. + In the reserved memory, the following values are needed at the + first 12 bytes to tell that last boot was caused by watchdog + reset. + - PON_REASON_SOF_NUM: 0xBBBBCCCC + - PON_REASON_MAGIC_NUM: 0xDDDDDDDD + - PON_REASON_EOF_NUM: 0xCCCCBBBB clocks: maxItems: 1 -- 2.34.1