Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6288321rwp; Mon, 17 Jul 2023 19:36:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlGL4yUtpbucx203HOYKLwEHqkN0Zn9D+hPGHs36tQ1ZSjNireamKo8nIs6d4RMda8a00/K1 X-Received: by 2002:a05:6358:4289:b0:134:e5e7:fb0b with SMTP id s9-20020a056358428900b00134e5e7fb0bmr10993170rwc.0.1689647775713; Mon, 17 Jul 2023 19:36:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689647775; cv=none; d=google.com; s=arc-20160816; b=0GouZDjjDRAJNrmG3fBQxEtdFucr2e1tWX9gw3spvyuAFpTD1XE/ZnLZn7SxvO6q/R Pk9WXQxtElJOwS3Rw1WkCzVTQTZai946j9G1ReKuwwmQpHpJoUdVbThkjLljmAXh86G8 lHsmuhwcxJ6c62z32K3bkUtC4V/FMu8qn2aMceHtZdonG9/jdx8fmO8L81ix0wAHEfZc iZ6+Sg2Gs9Vivt9Glu4Fhs6j4Gi1oT7HtM9Ki5XjU2Bf0dcgKn8BYF4Y7ZK87ctY4lR0 mIn0d5kSMCfhe3dcXpoQVJNPcCWsJB4t0hhVnSXHRBx9/ME/ofnl/JWE3rZcbxdYbo0r 7rIw== 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=eTtFH6HCeBJOa/yUObvyHtwj0PDScIS3TxthR2Qintg=; fh=26ARdFcEfuUFW5W2UBjFkMA4idoTK1yPd3wFZD9VxgA=; b=IKIWNHKjTDai9Sr6/tP6FJA61kBNDFwzWd7bFgMsJlXU2YLDfMFuORPOWLAvHFJyEi lGF9wbXIjA9x3aMNVGjEbOLiJXkx1gtageP5YWgqVzEGdAiP035fHj2pzf9oR9WvB6X5 aTFlyAQJ7KAEHIhOFEkcfgSENcv22JGlAATJ7q3nuW2XIMAe96fsFaj0Sp7DULhOea+4 SDsxGX9Wsd1aAVWvwUeEaWvIr9N+ZAvIDuqPUDCHSh6NLs3MMqWt2mDH9vqNShozy9X6 oyitRJCNdmSDv/8Mk+x8xODW+a/pzvGl0V0mnWw98IT1/Wf7m43adHYjO3aWkSn73kqz rDqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=dAtQCIZc; 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 v65-20020a632f44000000b0054033bf35f4si757334pgv.773.2023.07.17.19.36.03; Mon, 17 Jul 2023 19:36:15 -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=dAtQCIZc; 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 S230103AbjGRCNM (ORCPT + 99 others); Mon, 17 Jul 2023 22:13:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229665AbjGRCNL (ORCPT ); Mon, 17 Jul 2023 22:13:11 -0400 X-Greylist: delayed 62 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 17 Jul 2023 19:13:07 PDT Received: from mta-64-228.siemens.flowmailer.net (mta-64-228.siemens.flowmailer.net [185.136.64.228]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E2C610CC for ; Mon, 17 Jul 2023 19:13:07 -0700 (PDT) Received: by mta-64-228.siemens.flowmailer.net with ESMTPSA id 202307180212037bc85e03ecb0acbf1f 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 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 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(-) -- 2.34.1