Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp909387rwp; Thu, 13 Jul 2023 03:10:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlHf/z5raDoe4nue04Bxkj/g7uM+n0jxwt+vQEz8qTRFNfPWN+B65fpY4KVEyYAUreyhuWlR X-Received: by 2002:a17:906:eb82:b0:991:f7cb:cc3d with SMTP id mh2-20020a170906eb8200b00991f7cbcc3dmr1037691ejb.65.1689243031818; Thu, 13 Jul 2023 03:10:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689243031; cv=none; d=google.com; s=arc-20160816; b=HVuB66oPCVDj8bgKqMXkjn0k7gkI8+i9ZXzn0R124GcrWGQgE4kzWA56gqMfKAJIgW 9ymmR4mYSUGdG4Jov2FLRb57zYTQrqzWGodp6fscd92ZABQE/xgWupWZHiO4CofHdx1j wJmUQqnisBa8tRBRwepUKrSJVYofSNqm2UihC4NvX9DCh+b3+AJRRV75DyZBIRB08Ctg F/vIdXS1GMIxsmihEu3yVewr8SvKfGBb7Q3q+SoTsHDkiRVFjLgGh/GwTJp8Y4d6sAF4 JJ2kLJ3CcgQKWtBoyQ1N0OeSg3Y/EXi49KFoUN455+nB4mddqYgic7AQj/iD9rAyb0QJ Nr9w== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=FmUGUn49WETz1Fw3mb6/eNP9ivK6zo0mmq3YHUWYtzA=; fh=26ARdFcEfuUFW5W2UBjFkMA4idoTK1yPd3wFZD9VxgA=; b=AJyueQcCHem7ldoLQdjMtEkb6loSvyOLxOfF06rAKTWQop001EFYsz0RxxWPQNs6AY 3CgClmBLMHyHLQ2GYpX3PhR9jX5/vMHIqXrEZpCDLiVIlHeQjQAW8uS6Lx8ZBjB37erX 29YhpC3CRxmVLMHmqUMvEj0HIvN2BrcIselfrJGocTpNhKCIkPhH5w1Bn13T6KckouAi lLCssogOLysi6wTG8M3MNDN0+/6wMN5J+F41HPoLPYSYEVCFwsfFXUfVW5GelCGIU7QY 2giXNLMKj4G394larPkQIfXHaf0L/dyke6vJUkHEFMxm/RDn2XgYF2InFJYZm2c414fT Ck7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=NKojwrGa; 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 d23-20020a170906041700b00982762e2cc4si6808425eja.775.2023.07.13.03.10.07; Thu, 13 Jul 2023 03:10:31 -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=NKojwrGa; 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 S234361AbjGMJwI (ORCPT + 99 others); Thu, 13 Jul 2023 05:52:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234303AbjGMJwB (ORCPT ); Thu, 13 Jul 2023 05:52:01 -0400 Received: from mta-64-227.siemens.flowmailer.net (mta-64-227.siemens.flowmailer.net [185.136.64.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24CA9E77 for ; Thu, 13 Jul 2023 02:51:51 -0700 (PDT) Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 202307130951480dce4904efdbf28889 for ; Thu, 13 Jul 2023 11:51:49 +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; bh=FmUGUn49WETz1Fw3mb6/eNP9ivK6zo0mmq3YHUWYtzA=; b=NKojwrGakjk/94cLrq3SsM9YQMLnobsnR9QuFWb7dq4VRHt71ndg7EMaq8m5aJBF64oSIC lZS1FOOkGnbU+JMgcPh7oaJ2OuTT8yu7lzYMWRTv//gj7lV7lOTMi37ypn9o0Ecy47L9JOyb 29kTUgaDi/dQE6+odkIHk0RaMeXdc=; 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 0/3] Add support for WDIOF_CARDRESET on TI AM65x Date: Thu, 13 Jul 2023 17:51:24 +0800 Message-Id: <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=ham 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 The watchdog hardware of TI AM65X platform does not support WDIOF_CARDRESET feature, add a reserved memory to save the watchdog reset cause, to know if the board reboot is due to a watchdog reset. Changes in v3: - Add memory-region back for the reserved memory, and remove reserved memory from the watchdog IO address space. - Add changelog. - Link to v2: https://lore.kernel.org/linux-watchdog/20230711091713.1113010-1-huaqian.li@siemens.com Changes in v2: - Remove memory-region and memory-size properties, and bind the reserved memory to watchdog IO address space. - Remove the unnecessary rti_wdt_ioctl. - Fix the mail list - Link to v1: https://lore.kernel.org/all/3137d87e56ef75ba0b8a923d407b2fecace6ccbd.camel@siemens.com/ v1 had a wrong mail list at the beginning, and the mail thread was messed up. Li Hua Qian (3): dt-bindings: watchdog: ti,rti-wdt: Add support for WDIOF_CARDRESET arm64: dts: ti: Add reserved memory for watchdog watchdog:rit_wdt: Add support for WDIOF_CARDRESET .../bindings/watchdog/ti,rti-wdt.yaml | 12 +++++ .../boot/dts/ti/k3-am65-iot2050-common.dtsi | 10 ++++ drivers/watchdog/rti_wdt.c | 51 +++++++++++++++++++ 3 files changed, 73 insertions(+) -- 2.34.1