From patchwork Fri Jan 6 11:53:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen-KH Cheng X-Patchwork-Id: 3659 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp781493wrt; Fri, 6 Jan 2023 03:56:47 -0800 (PST) X-Google-Smtp-Source: AMrXdXtOF0x6mqYIQMpE496iWvd/brbMhOMUt7BF1C8hsWUW0aYwJviWgY84j+dAYNkBh9mho0/E X-Received: by 2002:a62:6145:0:b0:581:7cb0:1eb8 with SMTP id v66-20020a626145000000b005817cb01eb8mr34474223pfb.17.1673006207711; Fri, 06 Jan 2023 03:56:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673006207; cv=none; d=google.com; s=arc-20160816; b=v/vvG3zVeEmXd92jge6oU7xDxWBqODCJU8ndUV63BsC5lE1sXk++spHMIVGw5C9vq3 hytO5yJgjlP8NRnCijMWEL9V89am0j50653K8KQu72IVk6YNPSLxCu/QrwtAypSarGK7 3x8BPTY5KVqdx4e6nunURwNOZYi49UBBDR3epD6NyiOhnIr8EC0HLny/+p0DFM5+boQ7 mRb7z1LxeCjsBSidgSo26RBEBBTjE/1w8RKGA+jCKU1YqieHbSwFNyRsaWuqIT+ydgCE jpzg1YBeIzu7T94RtUyJ20nC1CuisNZBEbGV2rLFoH+hDsW+ioLkGxmhcS0U6otUlipP ZUHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=Zz4lAG7Fv806LdEwYUd3QNWOhaOm63H4dynzSxg33Ss=; b=Ce1k9ZseBhN3fM5zRnyGDGBdYoq9qWHDMaYtx6ZFeUn+Tujr7Gv1MN5s7a7Bn2HlOU ltcM2DQhKdQCqQTlqD3uNoICbV8uxjmvDASfjQxsBsu/jPUBSP0ohw2HwHdh9whG8hH/ 5a93Kco0L6xVQyxrXftRD7vtCB5Nz1shG3R8meJZ3f4G5h7OGTij4BQ/+PMdfTcx+xlN 4KbdrO394kGSkJgUpK2199+47tcudSSwkkmLA3/0JL75Ts7nmAlSk9kKQCDBDhKvAuFo Ebcn3ZrsP6xI1Dckpds/+jkXTV59URD+lSOdsd5bqu6AB8lpmVS2fEQ2TWuCROUdkZWx ZFcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=cO7+jAs4; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c10-20020a056a000aca00b0056ea2b142b6si1297208pfl.373.2023.01.06.03.56.32; Fri, 06 Jan 2023 03:56:47 -0800 (PST) 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=@mediatek.com header.s=dk header.b=cO7+jAs4; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229676AbjAFLym (ORCPT + 99 others); Fri, 6 Jan 2023 06:54:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjAFLyk (ORCPT ); Fri, 6 Jan 2023 06:54:40 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E5B6718B7; Fri, 6 Jan 2023 03:54:34 -0800 (PST) X-UUID: a4c5f7e2bd5b4cd194bd24e1be70a214-20230106 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=Zz4lAG7Fv806LdEwYUd3QNWOhaOm63H4dynzSxg33Ss=; b=cO7+jAs4+RjwTzL9KNJjqXDUSR1pScpa6slz38msabFw1LKIlIPv19L8U9dGqEGOthkLwVZIqJ9o3Vh8YrrD9AzIywdytAUxUj5BGLHltJ/IUBrcZ7y+5UhfCKE/db18bD5PgtLv0hTn8WwhT8ZgR4UBlp9lSQPxTm9IKLgWjXw=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.17,REQID:d7340043-b327-4932-a842-397f39ecf13a,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:543e81c,CLOUDID:c3fe788b-8530-4eff-9f77-222cf6e2895b,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0 X-CID-BVR: 0 X-UUID: a4c5f7e2bd5b4cd194bd24e1be70a214-20230106 Received: from mtkmbs11n2.mediatek.inc [(172.21.101.187)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 97020260; Fri, 06 Jan 2023 19:54:31 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.186) by mtkmbs13n1.mediatek.inc (172.21.101.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Fri, 6 Jan 2023 19:54:30 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Fri, 6 Jan 2023 19:54:30 +0800 From: Allen-KH Cheng To: Wim Van Sebroeck , Guenter Roeck , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , CC: , , , , , Allen-KH Cheng Subject: [PATCH 0/2] mtk-wdt: Add reset-by-toprgu support Date: Fri, 6 Jan 2023 19:53:24 +0800 Message-ID: <20230106115326.15374-1-allen-kh.cheng@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N 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_MSPIKE_H2,SPF_HELO_PASS, T_SPF_TEMPERROR,UNPARSEABLE_RELAY 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?1754274157488473879?= X-GMAIL-MSGID: =?utf-8?q?1754274157488473879?= This series is based on next-20230106. In some cases, we may need toprgu to reset the wdt counter after wdt resets. Provide a reset_by_toprgu parameter for configuration. We can disable or enable it by adding reset_by_toprgu in dts. Allen-KH Cheng (2): dt-bindings: watchdog: mtk-wdt: Add reset-by-toprgu support watchdog: mtk_wdt: Add reset_by_toprgu support .../devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml | 4 ++++ drivers/watchdog/mtk_wdt.c | 7 +++++++ 2 files changed, 11 insertions(+)