Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5246883rwp; Sun, 16 Jul 2023 23:58:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlE1XUmBZL1PhHeh0d33HL3dlBxxNDRh4dJ0Mk9QfG4nnMnAjqJ86l2V4JSrTor11qd16Vad X-Received: by 2002:a05:6a00:2d9e:b0:681:ed30:32e5 with SMTP id fb30-20020a056a002d9e00b00681ed3032e5mr11627736pfb.0.1689577134279; Sun, 16 Jul 2023 23:58:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689577134; cv=none; d=google.com; s=arc-20160816; b=pNFb7moAX8J8Mfpj3ejerqWchMtpe/0xYpelDXFwf0lyV1ZegWPHAcTfEA8rnVkPN2 CnVrzhadGN+e0fa0hkq+gpOVnO1pDCTy1heag9Gfo7SmNuS/0tyvZsrUaz3ylPU60Q7Z o6WvGtvG0NwLkjAQBCQc9yxaS/Wtz8CzPH15oX0S7ml/cr1XeP48DG8mg9r/BZNTiELr m8gPsXu/STNkf43StYvDVk2syHIr1YqEQF/CiuV/0J07Jza50kZYbr1QELFHHq/ZSoLm z3rsENFDcYsMGSCBUQArWEavSFg4tI43Yb1XqE13godf4GTnD/K16GJa+m1uDjkz5/tl UhPA== 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=2MC16/gb/Rw+xaosO4cGfAoaCMVpP3vQz0i42ftBTrY=; fh=26ARdFcEfuUFW5W2UBjFkMA4idoTK1yPd3wFZD9VxgA=; b=ZuCqNYEVGz3oVFogacZpBM7rIaDMiMdcZqAA/MRSmoy0lTtqKXOELxA/tQJGGRXjGp mee38N4pmp/w2UzBlsnEV0L+8+7WXSmVdlXf19iLHhNQ9PkHgH3Y3ZOIP9q0uDWpLKeS xwBcCvDT0bsjRLt7REXD4DZBkmcnn5Y/PTyJY+JVB3gGCSr0lqTdRyGFb8qsp/N/uL6I v8DLySIfKiMmnqYsCFq6tWG22iKxH5kgFBzq4YI1FAdVc7Q0suHOv5pQtQhBF6WG/8xs cH8PG2tlLT6Omr/ZJinZ15dE2zPZiwO+hxQz+w22bzJoH/avwCjyq6qoEp8j9Qmf57cZ uhag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=YkGGNjNz; 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 n56-20020a056a000d7800b006815bf78628si10644734pfv.356.2023.07.16.23.58.42; Sun, 16 Jul 2023 23:58:54 -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=YkGGNjNz; 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 S229800AbjGQGma (ORCPT + 99 others); Mon, 17 Jul 2023 02:42:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229766AbjGQGm3 (ORCPT ); Mon, 17 Jul 2023 02:42:29 -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 979E0E47 for ; Sun, 16 Jul 2023 23:42:26 -0700 (PDT) Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 202307170642234abdac491dc1a85ee0 for ; Mon, 17 Jul 2023 08:42:23 +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=2MC16/gb/Rw+xaosO4cGfAoaCMVpP3vQz0i42ftBTrY=; b=YkGGNjNzkaZTJI1orKaVyWJsdAxd5VUzyxchtLSwsf9gyeG95qSRxtU2rp0WuAtrARTc7b Pw4xAG9bZ3jDFwd0Wf/UA1bs/jwPFXGLWVRBsRfbO1DTlVIz1MYP6IRlPxUkVkCzAUoRaRTQ QTEZAe4IvbQIiZMEzgWtnzCqHan8I=; 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 v5 0/3] Add support for WDIOF_CARDRESET on TI AM65x Date: Mon, 17 Jul 2023 14:41:21 +0800 Message-Id: <20230717064124.1315746-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=-3.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 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 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 | 41 ++++++++++++++++ .../boot/dts/ti/k3-am65-iot2050-common.dtsi | 10 ++++ drivers/watchdog/rti_wdt.c | 48 +++++++++++++++++++ 3 files changed, 99 insertions(+) -- 2.34.1