From patchwork Tue Jul 18 02:10:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Hua Qian" X-Patchwork-Id: 13316665 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA308C001B0 for ; Tue, 18 Jul 2023 02:12:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229705AbjGRCMJ (ORCPT ); Mon, 17 Jul 2023 22:12:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjGRCMI (ORCPT ); Mon, 17 Jul 2023 22:12:08 -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 E411611C for ; Mon, 17 Jul 2023 19:12:05 -0700 (PDT) Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 20230718021203c5ed761e4c4cf83536 for ; Tue, 18 Jul 2023 04:12:03 +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=eTtFH6HCeBJOa/yUObvyHtwj0PDScIS3TxthR2Qintg=; b=dAtQCIZcnxrOypHaqI18cxbZQzkVqDQuFI11h15LmCUVnr8tRoZe8SG0/1zvqeRYtjlf8M NIW3w1Rrh43uFtfBkLozgXgjT5K4F3d69IF4pq0eO0upXJ3RM/2bBGlIuzDbrl9gIeAzTsR+ QPR3sBz+F2mOtr91Dbs1btnhAbVo0=; 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 v6 0/3] Add support for WDIOF_CARDRESET on TI AM65x Date: Tue, 18 Jul 2023 10:10:04 +0800 Message-Id: <20230718021007.1338761-1-huaqian.li@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-959203:519-21489:flowmailer Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@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. Signed-off-by: Li Hua Qian --- Changes in v6: - Integrate example with the existing binding. - Link to v5: https://lore.kernel.org/linux-watchdog/20230717064124.1315746-1-huaqian.li@siemens.com Changes in v5: - Corret the `Reviewed-by` info. - Link to v4: https://lore.kernel.org/linux-watchdog/20230717040723.1306374-1-huaqian.li@siemens.com Changes in v4: - Fix the coding style. - Add usage note for the reserved memory. - Link to v3: https://lore.kernel.org/linux-watchdog/20230713095127.1230109-1-huaqian.li@siemens.com 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 | 28 ++++++++++- .../boot/dts/ti/k3-am65-iot2050-common.dtsi | 10 ++++ drivers/watchdog/rti_wdt.c | 48 +++++++++++++++++++ 3 files changed, 85 insertions(+), 1 deletion(-)