From patchwork Tue Oct 10 08:19:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacky Bai X-Patchwork-Id: 731588 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6872BBA57 for ; Tue, 10 Oct 2023 08:14:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="LLZw15ZT" Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2080.outbound.protection.outlook.com [40.107.104.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 044A5D3; Tue, 10 Oct 2023 01:14:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B2YuI+VjsEI5WH/h05X2tAjbQCmHAlCD/zKZ+zSZ+A48+Oj8Ow2s9+jB5+75PtZOr/WedceCbIsOvQA+H9cLHcQzBhBmMNaj2ibiHTFFK6RmwpBrT0bq9Ms20bhPHWqYkYWihw/uFqacCymubt6udjLB298zHhdna7xISDO4Ze8sVzBc9Ns6nbjdB7QMHRfNYTfWKadL17gdgqb4qfD+aXTH6Lm2uElpTI/+WgXPOEHNNOCjahOf4Bogo65n04FV3JEUgqkuD6bCrk9TAOoK88HoFkmpP27bfdrYUXqu+FhPh3BffieQFcMaWxJBWGJt0So7EKeUEUhqVexS2px3Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=twQx8ngbXcEPROGcq0iZqcReqGPVAtwfK6wN3iDWhzw=; b=LX5I8HW/MXO6604i8TuuFkfc90CSSB/Ky9ph6LECnQ9pL5v/sE2yRQMd1PyNwAxdX858QdA9SUlyCUxlXqoIjWxfbxQi33N/h7rHfrOngOHjGG1qmbNTfI/P/Orgn5yl5/UqYzdhYm3rdl6LIHgrhNHBhtC8RHJEVZr3Q+kFSsdfjk0wkUBC+wdtNDsBmE03QkNh27GyeekfF/6sIXSNwyKuKLMDQ5pUtrBXKfIBLUWwR+6VMRyS9NyM6fPl+AQxJrumCPtxk5Rg4Vc4b2hAPjBnUS16wopP23N1JcfhY1TliMvAnUXvQBeJ/i8mxIq4MUtMHklFRGBsjRXzl6M4qg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=twQx8ngbXcEPROGcq0iZqcReqGPVAtwfK6wN3iDWhzw=; b=LLZw15ZTIPgJZLUvuWVCmQT46Bhi2O/Hxqnfu+t3TkAONk1fL9J1Okr5dgzE5xhRU6uXXFw5dZry5Mwf2VYen6++fXaaUBmOVw+257Hwwr8VRgBh80LGNMM7kTO6g5AnEGNhtrWq5fbMDzoYS5pOpRRoQHGkgBaYJCJgnt4kMhA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8642.eurprd04.prod.outlook.com (2603:10a6:20b:429::24) by DB9PR04MB8298.eurprd04.prod.outlook.com (2603:10a6:10:248::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.37; Tue, 10 Oct 2023 08:14:26 +0000 Received: from AS8PR04MB8642.eurprd04.prod.outlook.com ([fe80::258e:61b0:da64:d168]) by AS8PR04MB8642.eurprd04.prod.outlook.com ([fe80::258e:61b0:da64:d168%5]) with mapi id 15.20.6863.032; Tue, 10 Oct 2023 08:14:26 +0000 From: Jacky Bai To: wim@linux-watchdog.org, linux@roeck-us.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org Cc: s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/3] wdog: imx7ulp: Enable wdog int_en bit for watchdog any reset Date: Tue, 10 Oct 2023 16:19:07 +0800 Message-Id: <20231010081909.2899101-1-ping.bai@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SI1PR02CA0043.apcprd02.prod.outlook.com (2603:1096:4:1f6::19) To AS8PR04MB8642.eurprd04.prod.outlook.com (2603:10a6:20b:429::24) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8642:EE_|DB9PR04MB8298:EE_ X-MS-Office365-Filtering-Correlation-Id: 597eb8ea-fd60-4b02-f0d9-08dbc968eb16 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 13H5CVsaLftG+a+Ko7t0nGB+V07wQhYzfRhVA8zQ6C5jRzXEOncSvj77eGs+2weEqI1F5I+Fedzi9EPYZQ7BHViH+7E566aPqds+q0vKb9WEErEuzwotQFbRbGCPgJCtF6A7M9ECKPtz2pefA510jhYxmniIAKCpWfbqsHtpDv4UHU4Alpwui72ina4OtQTlAN0dEfbSYjQeE5YaZ6B46K0JV9EzBzwtqzeGhN3jSkaUgHytc4qzNrr4gCWuiILMkDQyk8c2G9iGjjdWgP7NOt21vHuQOKfHdaYFpLpgm/IZNi0gk5UdPHVsfyqJiNy/JKT6uwh6Vu0OLC4tpKH9+nhv7e6HxqfuOD8l6hYnrYPzuiwgggevMfn30fOJQ/fRzHJu0s07Xbs16TKrSCfrfSn2NxJ0Tundit2E3XyyV0Q4+tJj16g7pt9jaOkrdaja32El0h6yzxVVm3HY11xlBNG6HaEXzuuFIO3axNJh7Qkl1ORi3OV18wibk5fSzE3fm4ZtgVb5iFp/TlwUdcNpnboAA0PQzP17lOGjcjY4urB6GcMP22Q4b4DTFflotDxDINdsc30U+iUqWyfWb/iMLIyVn6h61BumD97wnPdDMOo0z3yXU80rLKrPyjc7GCTWSC3DGwnn7mxJrWLQgKELww== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR04MB8642.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(376002)(346002)(39860400002)(396003)(366004)(230922051799003)(1800799009)(186009)(451199024)(64100799003)(2616005)(26005)(52116002)(1076003)(86362001)(38350700002)(36756003)(38100700002)(83380400001)(7416002)(4326008)(2906002)(6486002)(6666004)(6512007)(478600001)(8676002)(6506007)(316002)(66476007)(5660300002)(41300700001)(8936002)(66556008)(66946007)(171213001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: bA6HANRwQN/nX+utYxGWf6f5b07KHfFZ1zC/feb6ECyF2ruOIyMgVj2Ab7JwacS5xfm883YeG1GfTEMs3Y0m7fSWRhaisu/QrVVnW6Stp9dKCV904JPmgpis+3NfikMh+gufK+q5cuCyt/LDgxZPTUCmaeXJVA4Nx5bFefXd/eE7vUolCOlKGmrJv6VhqLr6ENa2UWWEAkvTq7JN3u2OLuSwHoWr8u1BXo4sQp+neGRQF1cc7I6bk1d4lLiwOIZuomTNuhL0DiYmOkxFgRqXKynq3lFM9yUh1xKVjrVvZHCQWvuN1O/QICwukh8YgVYU1TlQ/itDmaep6eu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3bwXGS3tTPb/qER24X7URSvMONLirJla0WeDqv+0gbIiKtyKYZk81FXQQ2EfVhWrTF1FDYaF1YxJo4GeeqkduH5rJfm1DL/SwxptZoW71hLyvesHxJiFKMhOH0vmLtq4yA+W2LgT9X6ItWFaQ3W79l1BnIW2itrCYIYON2dHMairaUxk1/TEx3MU6zh08 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 597eb8ea-fd60-4b02-f0d9-08dbc968eb16 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2023 08:14:26.2996 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: tioS9P8v0c/pVBeKCW6tME7EajBKqyVCU1REufDjSKns7Js42tuVyaM3GclDZxADQDS8zSGt9nwf/WmUMhqU/A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8298 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net The wdog INT_EN bit in CS register should be set to '1' to trigger WDOG_ANY external reset on i.MX93. Signed-off-by: Jacky Bai Reviewed-by: Peng Fan Acked-by: Rob Herring Reviewed-by: Guenter Roeck --- drivers/watchdog/imx7ulp_wdt.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/watchdog/imx7ulp_wdt.c b/drivers/watchdog/imx7ulp_wdt.c index c703586c6e5f..b21d7a74a42d 100644 --- a/drivers/watchdog/imx7ulp_wdt.c +++ b/drivers/watchdog/imx7ulp_wdt.c @@ -23,6 +23,7 @@ #define LPO_CLK_SHIFT 8 #define WDOG_CS_CLK (LPO_CLK << LPO_CLK_SHIFT) #define WDOG_CS_EN BIT(7) +#define WDOG_CS_INT_EN BIT(6) #define WDOG_CS_UPDATE BIT(5) #define WDOG_CS_WAIT BIT(1) #define WDOG_CS_STOP BIT(0) @@ -62,6 +63,7 @@ struct imx7ulp_wdt_device { void __iomem *base; struct clk *clk; bool post_rcs_wait; + bool ext_reset; const struct imx_wdt_hw_feature *hw; }; @@ -285,6 +287,9 @@ static int imx7ulp_wdt_init(struct imx7ulp_wdt_device *wdt, unsigned int timeout if (wdt->hw->prescaler_enable) val |= WDOG_CS_PRES; + if (wdt->ext_reset) + val |= WDOG_CS_INT_EN; + do { ret = _imx7ulp_wdt_init(wdt, timeout, val); toval = readl(wdt->base + WDOG_TOVAL); @@ -321,6 +326,9 @@ static int imx7ulp_wdt_probe(struct platform_device *pdev) return PTR_ERR(imx7ulp_wdt->clk); } + /* The WDOG may need to do external reset through dedicated pin */ + imx7ulp_wdt->ext_reset = of_property_read_bool(dev->of_node, "fsl,ext-reset-output"); + imx7ulp_wdt->post_rcs_wait = true; if (of_device_is_compatible(dev->of_node, "fsl,imx8ulp-wdt")) { From patchwork Tue Oct 10 08:19:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacky Bai X-Patchwork-Id: 732924 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78017BA57 for ; Tue, 10 Oct 2023 08:14:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="DGw2Yi7Q" Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2065.outbound.protection.outlook.com [40.107.104.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14DBCB8; Tue, 10 Oct 2023 01:14:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EfX5/RY3ZN3BYG7VnXT3/HwqVQMjsZuHqWij3xIhpZSFbnJD47RB92n7NagqGO2ADytB8JleIr7f7J6DR2BmYLUmZmF8J2XZyinNDVIryGU3PaTVGExjQt3fD6iOs3m5qan1t9+VR0WDEBEBhUB4aT0T0oX6o8LKCrTgzdN1doaMJtVO3B2FTSEmc/ZWQHYA5glwQh+nzPVSLV/qAN3hZLyI9cLE+p/43bHuf6gMU0kZrUGm4TFvDm3xAHUU2qmcdKDtrURW/9/JZHJrtz5979X3Lo20/Spls1xpAS9jWUbmz4r+13zvGIMtuH4oSRO2ADasDY67Mp4zx4JyUwV7IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/ep4C23UfS2m1IyEy+lzf/3cEU8JRdMitAAJTt11ytY=; b=hiSnRwkUTdIukqJEQYcjM4C99T7RkA2wnC7M5YD6hAjR2qZ8g6rJmVGtyEppQJAAfnFkH1Kho359zDE97f/s0qSpXPRDQ9vc3C0VZZ4Fhckd7VlVvpgy2sF4jVJNZQFJJ4Xo08D31tSidgjUCDMmV8/OAzdzwMqgs/wMe3Km7y+R4/GZkSnR6TuONphZSSIwR6GGw+JUxxuMS3sddacNqof/c7+8EBwp2phNhXq11poEjFSwd5WZ3jQTzcaL2B/v85p/+PQ6wyl8UUzd5AkXvZAbgEBAdmCqVpovtBCoJ6NtTHUMkjPWeTXqaeEcgxNeJAqbBbyutDf8J/HIH5+Eug== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/ep4C23UfS2m1IyEy+lzf/3cEU8JRdMitAAJTt11ytY=; b=DGw2Yi7QUk2XdHd+f0J76frAjc6zFFbD9HCKUwktygcvl4ydGVdUDuaE5Jx38ukIw9F+xE4G6GSK1cw0TmN1LIy9BvE3VvW+MpS2Z/JM6z4Gtmr8vx0U7sasK4+I3owicUdxmVoJWFqACGBMttYcenzPCCxjj7WOwEu8GKc0coU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8642.eurprd04.prod.outlook.com (2603:10a6:20b:429::24) by DB9PR04MB8298.eurprd04.prod.outlook.com (2603:10a6:10:248::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.37; Tue, 10 Oct 2023 08:14:33 +0000 Received: from AS8PR04MB8642.eurprd04.prod.outlook.com ([fe80::258e:61b0:da64:d168]) by AS8PR04MB8642.eurprd04.prod.outlook.com ([fe80::258e:61b0:da64:d168%5]) with mapi id 15.20.6863.032; Tue, 10 Oct 2023 08:14:33 +0000 From: Jacky Bai To: wim@linux-watchdog.org, linux@roeck-us.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org Cc: s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/3] dt-bindings: watchdog: fsl-imx7ulp-wdt: Add 'fsl,ext-reset-output' Date: Tue, 10 Oct 2023 16:19:08 +0800 Message-Id: <20231010081909.2899101-2-ping.bai@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231010081909.2899101-1-ping.bai@nxp.com> References: <20231010081909.2899101-1-ping.bai@nxp.com> X-ClientProxiedBy: SI1PR02CA0043.apcprd02.prod.outlook.com (2603:1096:4:1f6::19) To AS8PR04MB8642.eurprd04.prod.outlook.com (2603:10a6:20b:429::24) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8642:EE_|DB9PR04MB8298:EE_ X-MS-Office365-Filtering-Correlation-Id: c7a64721-1121-4199-c1bf-08dbc968ef4e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nrrrjVB0FU3tX14z98JYcQVamz+WhIiqzbkA76XN7E9OU3u9356RzDWmh2A89dgCOl9LaWL7Yb74Qm4z4Zde6aO5REpmvHidOHzBMSUS40zXXknHgDx3R8d1wlRHk32FV6GXoQDOFS5WwuKS8m+JcfifjWzcPl3UfIQgAFq9YpcNBqbuCCl7Ch189CT+jc97nCUYJGtCyCOHukHaMZjPbtUsgJmITaHBUB/BcMQ+PPo4YbEv/yz7Nu9d5xZCXK7FBaGvq424S7LOzc62XxLxCD2GVN76jPdRPKX3Tyeliz1JEoujO7i2Oly3+n4vkJRX4G4krWQKgAJYGwaQmZn36fMjju4GJePyW/GMEeatnx+s7CY/B5JcjL8jSOzfHuZMH/RQcqs5jCzN5nhhLJViDKaioYS0vqhcPGxdFAH5cfCR1c84ObMce0RE4k9fg2i80pW+LjPgQmkJy35/3RG89DaWIur3gbIwO+GMoTuWdT8YjFZaA/B+uuZxvT+Y9Ae3I2bUewE0oAhtuci7ZSMbwuJ+q18/GJbbcoDncjz3thW/pcivVD0BDo5VO96sz7ZfAqgLCi2nL0YzaLjn/sO07qZzbGVA4pQu+vBYgIO7KAw+DH0Oj7C6ygO7KXXLqTc4 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR04MB8642.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(376002)(346002)(39860400002)(396003)(366004)(230922051799003)(1800799009)(186009)(451199024)(64100799003)(2616005)(26005)(52116002)(1076003)(86362001)(38350700002)(36756003)(38100700002)(83380400001)(7416002)(4326008)(2906002)(6486002)(4744005)(6666004)(6512007)(478600001)(8676002)(6506007)(316002)(66476007)(5660300002)(41300700001)(8936002)(66556008)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: bNXqn8GX1qbD9KEU9I4EVC9EvnJ9RPhi+ccNErVFgmMh+UxOdPmYmuGl6VIb1IDpHb8DhXoWGRmfXd/NAhXrNRNITe5q8mqdTXbnJ791xFV219UQn42+PwJqoRTLmUUSbbsceOF3Pl3vRH+WJJXto4e36qmfR77dXR9daRmqrpV9SnNnWTvrYhGKXigcEgx6JUkaOvWJEep0MmI6/YkgqXvHEmK2kNT6Im+p61MEFo2TcrFXGth8zrrBkWwZQ6J0J4m49U7g3SwI0oycSmY3W+uRFY6Xo2CyiFszivYRreZP3cCGHykz8/TaXmszE0QemooED89ywjUJBnhpp5JOkNS74lcj9g0uyJ0vYsbB2fqqMot4lPXPAzBPgt2g9BSO7pc4rsfNz+L/rrDgRysp8+R+luMDCEIYo0gvVubhGURKJ/Gx+B4SVWMqzQFmkMlmiWQfSvsf2ptoAbzLs8B2X0Ia8yL1DQRTWyXQOcngjCdobPeQHfQS933KKtY27vfqbcz4lOvHx42qQyN27Pk+pxqdp0SVP4fh/nwt0JJTrvikKYIea+mETG2jzdrmNJ86l9vi/o+nvYj+HvAyOu0oV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-Exchange-CrossTenant-AuthSource: AS8PR04MB8642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2023 08:14:33.5249 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Za95Vk8NAx1aWwRk0KHEvJkbYJ+2QtuvgVWg8EVSQlbm0p7QXgHzkItdo8l6MsDQdEZH7otbeSx+DotkYqhLDQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8298 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net The wdog may generate wdog_any external reset if the int_en bit is configured, so add a property for this purpose in dt-binding doc. Signed-off-by: Jacky Bai Reviewed-by: Peng Fan --- .../devicetree/bindings/watchdog/fsl-imx7ulp-wdt.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/watchdog/fsl-imx7ulp-wdt.yaml b/Documentation/devicetree/bindings/watchdog/fsl-imx7ulp-wdt.yaml index 4b7ed1355701..9c50766bf690 100644 --- a/Documentation/devicetree/bindings/watchdog/fsl-imx7ulp-wdt.yaml +++ b/Documentation/devicetree/bindings/watchdog/fsl-imx7ulp-wdt.yaml @@ -30,6 +30,11 @@ properties: clocks: maxItems: 1 + fsl,ext-reset-output: + description: + When set, wdog can generate external reset from the wdog_any pin. + type: boolean + required: - compatible - interrupts From patchwork Tue Oct 10 08:19:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacky Bai X-Patchwork-Id: 731587 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 742AD14F90 for ; Tue, 10 Oct 2023 08:14:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="BNlYEc4R" Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2044.outbound.protection.outlook.com [40.107.104.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1297CF; Tue, 10 Oct 2023 01:14:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mvKLBuVafUH2w2FR2jx7Veorvxz5pdY3d8dy27z/66EMhNExy2nXO/1WecYGcAF0SAnz+5SmEv9YrfkBEB/6c377VVFMpIJK9nCMWAFKh4+tfa+8lRHL7mhNUimeI+pC+VV0KNj7+qv0NqwOHHpDyfSFuR5gLNSFIiHOI0Fq+CGhja1PNWzHoTrFHVTBV1I9PFO1soliOLaUAES5YGCdoBjWp6xyMb2/LpF02BgHyJTZ/YTq3UF/te4TAJnq/b8ttFC1lzcvWlStfkTIvk2ZrdLO+tFSeifOLxj9HwADyG8cF3IGVH7vMkTUK6dvQPRIXng2yOGPXFFSu11wo1TlMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=EI44Df2dyABYDF/LfoaOtbdR2ZnVIEfMKKYXFuv/PVg=; b=aDhdr+8CIwxzaJrj//0302/A9/2/woP8Z7JL5n7tfRqDo3/rNNfVTEz1rN7nlbpI4RY+FR8bslh2NF4nomqc4F0U1CRAp1qAvDuPo2jMVj7YojR8KYk6CZcknjEZdyf2iR5MW72zIQnLffoksrgLhnrMd4C3vsXJ8odibbLFtFGx15MtJgu4qeelAWUaiTohScoC3Su9HjvU41mHbooMpvv4eritBPsUTLkvYJTwzdXrrHBP6wYX0VWdD5kufC5aDXnZyJV0nURYe6T8i20dx5NhG4PE8XcuevGZMNyZcythjH95CiUbdH6qgnEd2H+hOeGw2F26qFKhuCaceFzXwA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EI44Df2dyABYDF/LfoaOtbdR2ZnVIEfMKKYXFuv/PVg=; b=BNlYEc4R+ZIQwyCP0i6Z3eCiNzcS/sbwaXRqHJLAtOPTIJP2LDtZ3FJBz+rYoM1+LkTPIquJUnDKdSAes2RE/Oktm21+CRae/ai3N3raVet0su6jC9wx7vIHSbpPZRhUVzBAyuj8fwqxmaNpRcrVt8wBuioZyfVhKuxiMH9fu1E= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8642.eurprd04.prod.outlook.com (2603:10a6:20b:429::24) by DB9PR04MB8298.eurprd04.prod.outlook.com (2603:10a6:10:248::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.37; Tue, 10 Oct 2023 08:14:46 +0000 Received: from AS8PR04MB8642.eurprd04.prod.outlook.com ([fe80::258e:61b0:da64:d168]) by AS8PR04MB8642.eurprd04.prod.outlook.com ([fe80::258e:61b0:da64:d168%5]) with mapi id 15.20.6863.032; Tue, 10 Oct 2023 08:14:46 +0000 From: Jacky Bai To: wim@linux-watchdog.org, linux@roeck-us.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org Cc: s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 3/3] arm64: dts: imx93: Add the 'fsl,ext-reset-output' property for wdog3 Date: Tue, 10 Oct 2023 16:19:09 +0800 Message-Id: <20231010081909.2899101-3-ping.bai@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231010081909.2899101-1-ping.bai@nxp.com> References: <20231010081909.2899101-1-ping.bai@nxp.com> X-ClientProxiedBy: SI1PR02CA0043.apcprd02.prod.outlook.com (2603:1096:4:1f6::19) To AS8PR04MB8642.eurprd04.prod.outlook.com (2603:10a6:20b:429::24) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8642:EE_|DB9PR04MB8298:EE_ X-MS-Office365-Filtering-Correlation-Id: 4f412b4e-48e5-4af7-6cf8-08dbc968f6f1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +ynAOXkqUXxmipho1E9U0NO4TOr8pfavxqwAk2IUcewdvt9TSCHr50ZqNGcINCPpQJ5rYUZw0umuU4ZYd11itvxAzziEc3n/JqOib3tUZpTQLG7Qfc5my9rk6cA4e5OQJ5bzJCEDKaBpssh93HjeGOnsdL6eQryB7br0Z4CUCAPCf1EuoNNvzJatFSS+AyV4XLigIYSZcuZOHrIRwwt15/R3/kM/k6q3FInKN9p0y4XAitxdK/YNGUTWcNjBjeNpBoOKfIK3jjlfLackfAUp4DHMR8wIjDgDSHL/MY+rjOwyqM3tT3e3oAEKA6nf41n1dDqRKHrDJQJa5fsi0ssyXZTYDnYusVN/4/Dkx7hqb8G5BFjJ0ROQzfCm5krunHXVL8xzaLNvEnnvNveor9eNBbECGkmJJjPYew3LMo+2Zg15GAqEbZuLUrStfrDkPZ6FsTKdSn0N3DBh4hWFiLLRfNCmfZ+kUeZMzyfFpVqGe4gEbMm2cM4KZP7E+5uEfkZ43AF62CNPoQg0Ht/leicmGu1N90J1pMgwtD4Q+lJRQBOmxMtwLNm/uF5mqjHDSwXqdxXX38/S+BB150QrDUwHvArnW0Q6edvFHmT9gISepGVuY3jbsSURAye7oxDzBOmu X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR04MB8642.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(376002)(346002)(39860400002)(396003)(366004)(230922051799003)(1800799009)(186009)(451199024)(64100799003)(2616005)(26005)(52116002)(1076003)(86362001)(38350700002)(36756003)(38100700002)(83380400001)(7416002)(4326008)(2906002)(6486002)(4744005)(6666004)(6512007)(478600001)(8676002)(6506007)(316002)(66476007)(5660300002)(41300700001)(8936002)(66556008)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Z/F6q+gsVzQh/0ZI+z0kNyDC1GJON6mT7822FkU7yFhNnFYC3UEGAS4nNmih8gx4bq4ok5P5kfyYI9JyU2sU2SNNjSmIIPfs2RSafx6P1bR+JmtSwmjmhU8i7bW6rZ8NfswD4zNjgWX6I7DuEQdglKL9UmJjAeQfQA8M5NrrIEOGMAeHNi+DI2Dk/y8wE3niA9QML7zc7a1ebN6fL2OiLXrtOxchH4stuysaQ05yiKhWn+02EQ82AG8pVFQujVUaSoLgB2nDjmj8kkd/HYmPKF0AzJEqtTD9XULs/sP8oz+43MCo1lJ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5OupiutBBbxbFa5EyHQnhT2Tci/gIGFBULdixYhO25P7p7QpmWFf0FIPD/A6B7VHcP3foAhex+exWEz7V2xDbhs9WpT1M+3O4tvaVY4HWzZlA7Zd0V5ALzHF74rUOwqFjzxsLxNVxuoHIOuOp84g/sILL2AkuZWQCMTRx8uNY1SGNrakbwkY3DVEoNHGoBcl5S6ZdFrUhImvmqTogwTgiehykxVwI3 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4f412b4e-48e5-4af7-6cf8-08dbc968f6f1 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2023 08:14:46.2978 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Hpxbi+fDBf1l9cy+qi//nNhJmAyABtEXPqjGw1m2G1oU3jxanfowc0JXRblRnyK6BSzOc1nydtXF5/t9A9JK6g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8298 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Add 'fsl,ext-reset-output' property for wdog3 to let it to trigger external reset through wdog_any pin. Signed-off-by: Jacky Bai Reviewed-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx93.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi index f20dd18e0b65..bb40a022601d 100644 --- a/arch/arm64/boot/dts/freescale/imx93.dtsi +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi @@ -562,6 +562,7 @@ wdog3: watchdog@42490000 { interrupts = ; clocks = <&clk IMX93_CLK_WDOG3_GATE>; timeout-sec = <40>; + fsl,ext-reset-output; status = "disabled"; };