Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp907966rwp; Thu, 13 Jul 2023 03:09:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlGbR+4S9MziX02CoQYnQ97fD4Njj526yxwjlzxkNvFdelTxazdas4FVZLMysWJRwWaGWrvJ X-Received: by 2002:a17:906:64de:b0:993:f349:c98d with SMTP id p30-20020a17090664de00b00993f349c98dmr1051595ejn.1.1689242943008; Thu, 13 Jul 2023 03:09:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689242942; cv=none; d=google.com; s=arc-20160816; b=UDFJqbjZBVtNd2uBw85t7fL1yiQicaAdynnTXUx+rFIf2XWka9uvRpyEbHgPmwTeVq 7LIhQwee7HmaN9JdDNdg7nPTaVEyiMne67VB6AQPNZN8PZw9peSSYRhyZTq8l4RmFjoZ La2w/bAg3AwHKacMMCcakm0amW6QhZDKfv0/q/GNNFm+kMqT4MSBcKd4SexAJxJ/9owk 2GwnpWfpb/A0HooRFYud2NjJs6LYjuGp0iyyCaRRwvF695VIJv6QZeZrJaYZgUU0v1ez aDXiKQkdS+u2IZu4HFUZ8hFmsxsXERnCADLN+2GFbmZ7XdnjNVEtv/svP/C42ngSC8nz Td6Q== 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=02qU89AAuYA9eD+QvpZmA4hgJEjRQH3j6BCnYE1DiwI=; fh=26ARdFcEfuUFW5W2UBjFkMA4idoTK1yPd3wFZD9VxgA=; b=rMiT1olEwNo/WDjYxLFijd3D06KKwDrF8hwfF/v/1ij57LN6g8RhXxumc0ItfK573K lZjiR6ezkbe8fWhazmN0PHTq6RwR2Z+mwDgz18MKBiRcqdvgs8IuuZiuptg0h3UTbuu2 bOWf0xMMNmhnsumgzviCFuevAQ5s+f+DQbaqiq7/ko4kA7JER2WW/lEQEp8d8UL4R9Ev EUXHVi/EkASUT/C1PTZ82gUNnXr8O52TdQ40fmJoA02d5S7hiSEdv9aruo8Us5Ghn9Ep jpJIkcNxfjcj7DhEdjrBLjYAFGxGDykFHrQ5HhVEvmp6VTXxF7GhnhKF3onpQ9ar9zuV 0DZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=PK0XshIW; 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 h16-20020a1709062dd000b00991df467bafsi6823995eji.617.2023.07.13.03.08.38; Thu, 13 Jul 2023 03:09:02 -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=PK0XshIW; 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 S234376AbjGMJxk (ORCPT + 99 others); Thu, 13 Jul 2023 05:53:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234674AbjGMJw5 (ORCPT ); Thu, 13 Jul 2023 05:52:57 -0400 Received: from mta-64-225.siemens.flowmailer.net (mta-64-225.siemens.flowmailer.net [185.136.64.225]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B7A42713 for ; Thu, 13 Jul 2023 02:52:56 -0700 (PDT) Received: by mta-64-225.siemens.flowmailer.net with ESMTPSA id 2023071309515401f308b0ed88a63d26 for ; Thu, 13 Jul 2023 11:51:54 +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=02qU89AAuYA9eD+QvpZmA4hgJEjRQH3j6BCnYE1DiwI=; b=PK0XshIWBAT/+KK7oqZXTcjFhFB6B01p0rwPZf+/DmzMUJL9pExMg2RSsiwTcIfcNXu5GR 5r03eDrLnGd7SNpSVAOMRw4Qs5T7hbszN9k47kxJmCvQ6WDP81Z35yrY8JCG3758jjsXKoHD 91kspZqGeUp05M3P5LowIgy2fAmtk=; 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 v3 1/3] dt-bindings: watchdog: ti,rti-wdt: Add support for WDIOF_CARDRESET Date: Thu, 13 Jul 2023 17:51:25 +0800 Message-Id: <20230713095127.1230109-2-huaqian.li@siemens.com> In-Reply-To: <20230713095127.1230109-1-huaqian.li@siemens.com> References: <20230713095127.1230109-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 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 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml b/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml index fc553211e42d..8c16fd3929ec 100644 --- a/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml +++ b/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml @@ -34,6 +34,18 @@ properties: power-domains: maxItems: 1 + memory-region: + maxItems: 1 + description: + Contains the watchdog reserved memory. It is optional. + In the reserved memory, the specified values, which are + PON_REASON_SOF_NUM(0xBBBBCCCC), PON_REASON_MAGIC_NUM(0xDDDDDDDD), + and PON_REASON_EOF_NUM(0xCCCCBBBB), are pre-stored at the first + 3 * 4 bytes to tell that last boot was caused by watchdog reset. + Once the PON reason is captured by driver(rti_wdt.c), the driver + is supposed to wipe the whole memory region. + + required: - compatible - reg -- 2.34.1