From patchwork Wed Oct 19 11:17:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrej Picej X-Patchwork-Id: 5452 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp329305wrs; Wed, 19 Oct 2022 06:32:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5hsmyQt04wLZguykJ8v8iXbH/+9MKVJPT6YUrg9oeZs639cQ6/Fk2ZLTOLfDKZNBilorfQ X-Received: by 2002:a17:907:3e1b:b0:78d:ccd0:c9f8 with SMTP id hp27-20020a1709073e1b00b0078dccd0c9f8mr6890672ejc.705.1666186351931; Wed, 19 Oct 2022 06:32:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666186351; cv=none; d=google.com; s=arc-20160816; b=0nNugbi8aT2wthtIShOtALdbr348atcWZjLtCoWWNCmtl1AZK5m9gpqIz/YGXa9f+2 ciW/7+clkovv7ct+VcJBoSS5z9cGR+zjgBSQxhFieONW98x9mJ8xzqOQGvkiXPc7Yh0x UnJ6dbdbOpkfVpAdQy0K7ZbGhNDvSgBE0vENENHOPCB7c2LUXzyHPP8rK4rvr7xm4w8v fEYFIZI06Aqkv+e7Y3fnRqhEiClKSEWMM00EXgMkez8nw76loHBc43f9yZB1gvjqdOO7 TNj4hcXF3mJSy7ERI3yLCyJRyEehuED6sgVq851S1vl/2iH4Ew2kDxO+CxZ72aO5PumF x00A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZIxTik8qCVScEWj5sC/9qAFim//UicDvI+RfOQzsGsQ=; b=vEsFrXsPJmAyzAPKVoKbcSJC5MaCfuG/sZvC6qQUHuZOqUj7eW8FSgGCeM5JxtHF/3 jv2emHj2U1jLHwe58XyNwI3vRSeKitUu4kNrYWG0cpDI+isXPM+H28GwqdKfGLFPKVPh /b/zcYq18AdZX8qPcFQ6ZczLp/W+wJctpMCnMIa+naoP1v1U6gGEX1ULyVhgXCe+e/9r MLFtaorGFGC07vMCBOl6AK4X+pfA17cq5HfCU4hh6FpM2wwuN0niu6CQ27w3HRyygiDW HmqUgJ9yy0F43cvG1ZYFfp3XYPkoINoPeMKuUhpzhtKhOsQwPYMGNKr8Srala+U1aoEo FRog== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b="Blppzso/"; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e17-20020a056402191100b0045cfb63a018si15946530edz.31.2022.10.19.06.32.06; Wed, 19 Oct 2022 06:32: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=fail header.i=@norik.com header.s=default header.b="Blppzso/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232505AbiJSNQI (ORCPT + 99 others); Wed, 19 Oct 2022 09:16:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232319AbiJSNPi (ORCPT ); Wed, 19 Oct 2022 09:15:38 -0400 Received: from cpanel.siel.si (cpanel.siel.si [46.19.9.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6AF8303EF; Wed, 19 Oct 2022 06:01:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norik.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ZIxTik8qCVScEWj5sC/9qAFim//UicDvI+RfOQzsGsQ=; b=Blppzso/pr2nGSHf+R1U1YeYg2 JADA3gtzViPRS5E6/JCew3xPWqEXj4sG39/Ume+6UlIlnSYqoTrzm72yTMxSW4SFkWyhgr6yhdVMK V6LUd9d2qMNVA/4tJs04U2VIdwx8FkZkBtqs25dpBPK4gdO0tXfBT9+saANuArPeCZSzK1VNPsg3i x/M2Hz+Lxf5Pp7CZ49FsyOmjgBP9nh+YBvp75kBUQ3de2zSflCTIzwecH0LZI6TdC3DR6jIblHvE9 BEACG1uEWcfOEH8AeHDbVhSWJsfSnCW/JSsbVPD0/E6lA0sajEa5QNZT3QM+mSnjQKs4AZN9ABs+B FEeIazLA==; Received: from 89-212-21-243.static.t-2.net ([89.212.21.243]:45936 helo=localhost.localdomain) by cpanel.siel.si with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.95) (envelope-from ) id 1ol74W-007ZXa-AK; Wed, 19 Oct 2022 13:17:16 +0200 From: Andrej Picej To: linux-watchdog@vger.kernel.org Cc: shawnguo@kernel.org, linux@roeck-us.net, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-imx@nxp.com, festevam@gmail.com, kernel@pengutronix.de, s.hauer@pengutronix.de, wim@linux-watchdog.org, robh+dt@kernel.org Subject: [PATCH 1/3] watchdog: imx2_wdg: suspend watchdog in WAIT mode Date: Wed, 19 Oct 2022 13:17:12 +0200 Message-Id: <20221019111714.1953262-2-andrej.picej@norik.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221019111714.1953262-1-andrej.picej@norik.com> References: <20221019111714.1953262-1-andrej.picej@norik.com> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.siel.si X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - norik.com X-Get-Message-Sender-Via: cpanel.siel.si: authenticated_id: andrej.picej@norik.com X-Authenticated-Sender: cpanel.siel.si: andrej.picej@norik.com X-Source: X-Source-Args: X-Source-Dir: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747123020088623323?= X-GMAIL-MSGID: =?utf-8?q?1747123020088623323?= Putting device into the "Suspend-To-Idle" mode causes watchdog to trigger and reset the board after set watchdog timeout period elapses. Introduce new device-tree property "fsl,suspend-in-wait" which suspends watchdog in WAIT mode. This is done by setting WDW bit in WCR (Watchdog Control Register) Watchdog operation is restored after exiting WAIT mode as expected. WAIT mode coresponds with Linux's "Suspend-To-Idle". Signed-off-by: Andrej Picej --- drivers/watchdog/imx2_wdt.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/watchdog/imx2_wdt.c b/drivers/watchdog/imx2_wdt.c index d0c5d47ddede..150ba83ce176 100644 --- a/drivers/watchdog/imx2_wdt.c +++ b/drivers/watchdog/imx2_wdt.c @@ -35,6 +35,7 @@ #define IMX2_WDT_WCR 0x00 /* Control Register */ #define IMX2_WDT_WCR_WT (0xFF << 8) /* -> Watchdog Timeout Field */ +#define IMX2_WDT_WCR_WDW BIT(7) /* -> Watchdog disable for WAIT */ #define IMX2_WDT_WCR_WDA BIT(5) /* -> External Reset WDOG_B */ #define IMX2_WDT_WCR_SRS BIT(4) /* -> Software Reset Signal */ #define IMX2_WDT_WCR_WRE BIT(3) /* -> WDOG Reset Enable */ @@ -67,6 +68,7 @@ struct imx2_wdt_device { bool ext_reset; bool clk_is_on; bool no_ping; + bool sleep_wait; }; static bool nowayout = WATCHDOG_NOWAYOUT; @@ -129,6 +131,9 @@ static inline void imx2_wdt_setup(struct watchdog_device *wdog) /* Suspend timer in low power mode, write once-only */ val |= IMX2_WDT_WCR_WDZST; + /* Suspend timer in low power WAIT mode, write once-only */ + if (wdev->sleep_wait) + val |= IMX2_WDT_WCR_WDW; /* Strip the old watchdog Time-Out value */ val &= ~IMX2_WDT_WCR_WT; /* Generate internal chip-level reset if WDOG times out */ @@ -313,6 +318,8 @@ static int __init imx2_wdt_probe(struct platform_device *pdev) wdev->ext_reset = of_property_read_bool(dev->of_node, "fsl,ext-reset-output"); + wdev->sleep_wait = of_property_read_bool(dev->of_node, + "fsl,suspend-in-wait"); /* * The i.MX7D doesn't support low power mode, so we need to ping the watchdog * during suspend. From patchwork Wed Oct 19 11:17:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrej Picej X-Patchwork-Id: 5448 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp328753wrs; Wed, 19 Oct 2022 06:31:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7pWu2k5cHgslwLLIdEGmhKBX9WZqp1rGuPRexOvMqiDB4yORW9cTBY6qRxKymuhwy20jZq X-Received: by 2002:a05:6402:847:b0:453:944a:ba8e with SMTP id b7-20020a056402084700b00453944aba8emr7451620edz.326.1666186289398; Wed, 19 Oct 2022 06:31:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666186289; cv=none; d=google.com; s=arc-20160816; b=qdMhg/P9YOxUem98DTd/vIfvqp8GtHIUcyubSCJIQSU2KxzacNLaXJqHL13SuM9IRC ZqpNLkf28qr0PhIiAKh7gy3MMmKSqOVhTz/yC0o8gwd8smFSrayQgpo0XBLuZGSO1Bdc A8NY751F49KcizhKbZ/tvsOnO/aZKuZETUQI2j6+1Eh6i5ndi7+tB9Ls3XDVyTlcSx5Z 6gxrMSZZJWViAu13e57HbUx1/e+bqmsLrct1BxgiLXnTq0CYpOQoJt/I4UvtrJBpWis/ 6/7S9ymYVyGJPGbLlpFKwqUH6f2uzabOsPRdZvfjJKKBubXJZaeZDZ1Hyk5SM6PzCbV9 tt9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eNRpwG4buJx4Tvqox9EQWn+avHOAaaONBH2lWfkT/jc=; b=tJJ235ETxK7eVSdJru4z93pBy5qIr7h1CeOI1zI80RaeTEuDJqaM+yPFHdDdhLzl3K VAwL5CHK9i1m2hMfYGIWnoCBYwcd79BDFPgBpNR14ruGHwMCUfoiYY5YZczi6yajG4fS cPfPYIE6GOJAHk8M8zCKwi6bDWJJbA6TeeAHJEL9yQVsiiAAURyUD/97pdQF9AJdd/Nt knQVguURPirR9Z9Yj18q9ZyMS76Mp8gEVpLWuMPqP/TEWBYZ9lerspFaCLqf3qfqrPk+ Nl0PHPJ8tk68AkUZcMyRiDFR83Y9hGlbYezKTn3eyzWhIaN7hY71i80NcLIDjv4lmDZr zGDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=BXivr5bd; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dm12-20020a170907948c00b0078a802cce5dsi1801455ejc.592.2022.10.19.06.31.04; Wed, 19 Oct 2022 06:31:29 -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=fail header.i=@norik.com header.s=default header.b=BXivr5bd; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232180AbiJSNQE (ORCPT + 99 others); Wed, 19 Oct 2022 09:16:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231987AbiJSNPV (ORCPT ); Wed, 19 Oct 2022 09:15:21 -0400 X-Greylist: delayed 3540 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 19 Oct 2022 06:01:02 PDT Received: from cpanel.siel.si (cpanel.siel.si [46.19.9.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90E451D1E37; Wed, 19 Oct 2022 06:01:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norik.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=eNRpwG4buJx4Tvqox9EQWn+avHOAaaONBH2lWfkT/jc=; b=BXivr5bd5mQEaqcXCZNEmiEbz3 t9zNa27BFIH1TNvmhWDiBYB8ubQHWGHrxwRFyF4v6GtWMeekMRw860/wjdY+/Gbv9EfyhgLgMZfEM UdmPkFKp8d1fydsswt4egcumijRwIlS9oKk1TQdPCC4XTO/yQGGPRO2rKCII8tBn86zPKSOvK/J5W Brjit72EQEoAJ+ZAHWUZoPIkaEJ9nOKXiAQyRvwz/0lwOXfDIPlA2XoAkRFlQnbv8TG1Y321NegFP p2o8ISBUdoCDt3xe6LO7b1CElwkXf3PBQLhBnSIpIbVJVVj/Swzl+xcMNR9kZOBBT6ZfowdMdsOLg VezasqOw==; Received: from 89-212-21-243.static.t-2.net ([89.212.21.243]:45936 helo=localhost.localdomain) by cpanel.siel.si with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.95) (envelope-from ) id 1ol74W-007ZXa-DP; Wed, 19 Oct 2022 13:17:16 +0200 From: Andrej Picej To: linux-watchdog@vger.kernel.org Cc: shawnguo@kernel.org, linux@roeck-us.net, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-imx@nxp.com, festevam@gmail.com, kernel@pengutronix.de, s.hauer@pengutronix.de, wim@linux-watchdog.org, robh+dt@kernel.org Subject: [PATCH 2/3] dt-bindings: watchdog: fsl-imx: document suspend in wait mode Date: Wed, 19 Oct 2022 13:17:13 +0200 Message-Id: <20221019111714.1953262-3-andrej.picej@norik.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221019111714.1953262-1-andrej.picej@norik.com> References: <20221019111714.1953262-1-andrej.picej@norik.com> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.siel.si X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - norik.com X-Get-Message-Sender-Via: cpanel.siel.si: authenticated_id: andrej.picej@norik.com X-Authenticated-Sender: cpanel.siel.si: andrej.picej@norik.com X-Source: X-Source-Args: X-Source-Dir: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747122911854658234?= X-GMAIL-MSGID: =?utf-8?q?1747122954361595584?= Signed-off-by: Andrej Picej --- Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.yaml b/Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.yaml index fb7695515be1..01b3e04e7e65 100644 --- a/Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.yaml +++ b/Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.yaml @@ -55,6 +55,11 @@ properties: If present, the watchdog device is configured to assert its external reset (WDOG_B) instead of issuing a software reset. + fsl,suspend-in-wait: + $ref: /schemas/types.yaml#/definitions/flag + description: | + If present, the watchdog device is suspended in WAIT mode. + required: - compatible - interrupts From patchwork Wed Oct 19 11:17:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrej Picej X-Patchwork-Id: 5447 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp327996wrs; Wed, 19 Oct 2022 06:30:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM70dE9qpXjEvDYkx1Xieh6mjeuEFHG82jJ6eI4LCt9UPeVnQ8f88JxYuFDersraFz4IS/HR X-Received: by 2002:a17:902:f54d:b0:185:4ca4:2641 with SMTP id h13-20020a170902f54d00b001854ca42641mr8303129plf.50.1666186196537; Wed, 19 Oct 2022 06:29:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666186196; cv=none; d=google.com; s=arc-20160816; b=kScTfUBXfXe66x2MToPRcPWfF1AQIgOMzAeO9SFz/qQIsWC0Xci+T30QQnM72dC/te BvAvuJPhn4VakKEii7IG6PLi32s9zRtvxncPzSlMl+vVk6496smRrPt4HXNa+f0KKnm0 uDZ8rSoKelfuzPEOX4lMXMd3WVnIMSDXw3XRgPXZBjYrZoqgx0vq1dcQHFQq1KEegPZQ /NAjL6pnGEpYG+RQESMOZFoyQOeXk9nozZVXQ5P3KZmC3yVzWIMEGoiFYeXnVXGVjKeG nE2Jy+S2ZYQ1iEXxk2pMySgk3K9sBvAqWpEK4ERgiP0loKYInUIKxG8eV4wlHgZch5Yx f7aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TJFQZgcHpAiXq2u8GBJkx2Euz9+WpBppU5rX5bk9CRU=; b=lJ62Se/SVT9tFzcoKaq5rD0QDXFlcjujAcMwZzSn2EIZpdSdZkKfkafWIL+27BNaae eRVbWp7uPmBMr9k/PnUSCuyupzD0bbh62wxBLCuJe7EueFTMv/er+t61L4cayEa+7Fe7 5Kby8dVWhfrUuHNv17d7eQrrODdb/qszL/SWdd6FmL0VxizOMIcu0mX0p71rlZMntQ9U LMVnrleduYIiA5qQLH0M2vJO5bqwi0qwRalKaB6OO+0m3zyJVb9Sf4W5XdMi0nf8h6VD eis7ECA7NiVFLU+lyp8JSfiRSFOiI73i05LDA/Be/l8KJYbZ4Ej8KvsLjPlInhepLtVN AvVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=XqDopoVM; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w3-20020a639343000000b00452bab4de6fsi17527660pgm.749.2022.10.19.06.29.42; Wed, 19 Oct 2022 06:29:56 -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=fail header.i=@norik.com header.s=default header.b=XqDopoVM; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232319AbiJSNQN (ORCPT + 99 others); Wed, 19 Oct 2022 09:16:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230044AbiJSNPv (ORCPT ); Wed, 19 Oct 2022 09:15:51 -0400 Received: from cpanel.siel.si (cpanel.siel.si [46.19.9.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8CBA4F1B5; Wed, 19 Oct 2022 06:01:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norik.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=TJFQZgcHpAiXq2u8GBJkx2Euz9+WpBppU5rX5bk9CRU=; b=XqDopoVMKKJiR8wg4YN3nnIuR/ DwCjGGBWV6S7v5G+kwDtPF9JdatpRfL4i+zUoOwo7eULGHkag2jD6xQRQ0vYbVveK/Wilv8rXHUQv noQh5gTU86qJDujKAma4JC3K64c9dprWVnKw69ZbA6hlvc1oTVJ1PHlqqLhwmjUZryUVCeP9vxDtB K1qZHL9GM7m5RwYJ8ZFieQZeyU+eTXNIH28oSQJQbqJu3kgGWJ9nGWWPy4kYJ5sOcQHGAPabOhCgU 7vac2jLi6ij7wnFY5yEi0Twr43G7TcycuqAuicwJiVZN/3t6b8E/oNzvDLdVnj2U3tw4jvgRZ/K2M zUic0KpQ==; Received: from 89-212-21-243.static.t-2.net ([89.212.21.243]:45936 helo=localhost.localdomain) by cpanel.siel.si with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.95) (envelope-from ) id 1ol74W-007ZXa-H1; Wed, 19 Oct 2022 13:17:16 +0200 From: Andrej Picej To: linux-watchdog@vger.kernel.org Cc: shawnguo@kernel.org, linux@roeck-us.net, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-imx@nxp.com, festevam@gmail.com, kernel@pengutronix.de, s.hauer@pengutronix.de, wim@linux-watchdog.org, robh+dt@kernel.org Subject: [PATCH 3/3] ARM: dts: imx6ul/ull: suspend i.MX6UL watchdog in wait mode Date: Wed, 19 Oct 2022 13:17:14 +0200 Message-Id: <20221019111714.1953262-4-andrej.picej@norik.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221019111714.1953262-1-andrej.picej@norik.com> References: <20221019111714.1953262-1-andrej.picej@norik.com> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.siel.si X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - norik.com X-Get-Message-Sender-Via: cpanel.siel.si: authenticated_id: andrej.picej@norik.com X-Authenticated-Sender: cpanel.siel.si: andrej.picej@norik.com X-Source: X-Source-Args: X-Source-Dir: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747122857337678668?= X-GMAIL-MSGID: =?utf-8?q?1747122857337678668?= It was discovered that the watchdog triggers when the device is put into "Suspend-To-Idle"/"freeze" low-power mode. Setting WDW bit disables watchdog when the device is put into WAIT mode. Signed-off-by: Andrej Picej --- arch/arm/boot/dts/imx6ul-phytec-phycore-som.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul-phytec-phycore-som.dtsi b/arch/arm/boot/dts/imx6ul-phytec-phycore-som.dtsi index 3cddc68917a0..5168ed0ffec3 100644 --- a/arch/arm/boot/dts/imx6ul-phytec-phycore-som.dtsi +++ b/arch/arm/boot/dts/imx6ul-phytec-phycore-som.dtsi @@ -102,6 +102,10 @@ &usdhc2 { status = "disabled"; }; +&wdog1 { + fsl,suspend-in-wait; +}; + &iomuxc { pinctrl_enet1: enet1grp { fsl,pins = <