From patchwork Mon Jan 16 10:53:03 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: 4057 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1126961wrn; Mon, 16 Jan 2023 02:54:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXv4hAGLMadrlhXlymAEuwApFbyVBgjdxI6/auTcDE4KpS/DJR8syqk3IQCQC87nE0npuTpK X-Received: by 2002:a05:6402:538d:b0:487:2ce6:2b80 with SMTP id ew13-20020a056402538d00b004872ce62b80mr63167942edb.8.1673866478902; Mon, 16 Jan 2023 02:54:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673866478; cv=none; d=google.com; s=arc-20160816; b=iLLy9glIe/bZHIoCWBGRQfoEnSk3HqmJmivJKxvhdM0F/GKfAAS8Ex0MgEAbZmsdhY vgGJVv7ln0md0zLsis8FgaJbJnLo09s9twx5urdl+00b68TFkCwQm4Sy6aH0PrpB12Gb 5wNBCq1mr6qrau7ezObGbBdyX68NXWYS4d6p7w6+cZcQ3kNkVl7rlCUSz4IZbZP/1rro CoDGheHeL9O+MFQqHiOsR47bVW6V1VJ9THm2gUhFDm1XW+Z/7IfVt9KFBzM2osXP+k5B G+xc8vLcQ7CHyC/9GUYXIBEvQKsuklhLZwFewWMcqzqVtTrrTSvn0rj9gMaXmvJWfhhr efRw== 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=sZJQzJf1FPzCYsFNTrXsae7EJN3wjmK6a7W2GJN6E28=; b=vLQjEAL21riFiOPsSQJORtbwhESqOmfXgDviOMRaC6KgshULgcnFwiYk27oOVbEn0k ZprIsaVmSloUbJq7WJd5E/HPceBUohO/w/vcLMngroRo+wlMKq0+rflOLqTQDYQHjarC weWkp2knqY8AsAJ2aOf3IssyN3fmsLpUc+o2yKp6ITr3UnK8ktRJFTT7K7FkjlvQgdTJ g3B4xWXgO2jBTAbZeW3omuRUZzJRu2ZL8t8CWE8H+/OP7nZeriZFRekklXliQZa95pHd zu1IGKMTemvDa0Tm2lU8cUhZ8uZo8zWX4xEipnqDaUqHF+6ZSaEkhMYZl9DFTg+oYoDW WPTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="bR/946Dm"; 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 d23-20020aa7ce17000000b0049b471421dasi14506708edv.316.2023.01.16.02.54.15; Mon, 16 Jan 2023 02:54:38 -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="bR/946Dm"; 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 S230426AbjAPKx0 (ORCPT + 99 others); Mon, 16 Jan 2023 05:53:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230367AbjAPKxV (ORCPT ); Mon, 16 Jan 2023 05:53:21 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 863AC196A0; Mon, 16 Jan 2023 02:53:14 -0800 (PST) X-UUID: f62a4f70958b11eda06fc9ecc4dadd91-20230116 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=sZJQzJf1FPzCYsFNTrXsae7EJN3wjmK6a7W2GJN6E28=; b=bR/946DmFnl8g2XdGXwf+h3mQiQ4vPCW8N9EaO/Gn0T3OYB/6hO0s0wt2dQ9Cs1qvRQqObuc7HohzrlRYfu6IV3nyWDJyD3ZJy98/cqKjpehLWGBNXgUS5WE8njbwoMyyvG+rUU2Bjv/KQiO9Q4aBsi6/jqO49fj7ob1ljO52Bk=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.18,REQID:9af11f6a-e934-41f0-b033-db9b26dbe006,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:95 X-CID-INFO: VERSION:1.1.18,REQID:9af11f6a-e934-41f0-b033-db9b26dbe006,IP:0,URL :0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTION :quarantine,TS:95 X-CID-META: VersionHash:3ca2d6b,CLOUDID:a96ef2f5-ff42-4fb0-b929-626456a83c14,B ulkID:230116185310DZXA5TCP,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48,TC:n il,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OS I:0,OSA:0 X-CID-BVR: 0 X-UUID: f62a4f70958b11eda06fc9ecc4dadd91-20230116 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1398069662; Mon, 16 Jan 2023 18:53:08 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Mon, 16 Jan 2023 18:53:06 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Mon, 16 Jan 2023 18:53:06 +0800 From: Allen-KH Cheng To: Wim Van Sebroeck , Guenter Roeck , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , CC: , , , , , Allen-KH Cheng Subject: [PATCH v2 0/2] mtk-wdt: Add reset-by-toprgu support Date: Mon, 16 Jan 2023 18:53:03 +0800 Message-ID: <20230116105305.31818-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?1755176216945107837?= X-GMAIL-MSGID: =?utf-8?q?1755176216945107837?= This series is based on next-20230116. In some cases, we may need toprgu to reset the wdt timer after system resets. Provide a reset_by_toprgu parameter for configuration. We can disable or enable it by adding reset_by_toprgu in dts. Changes since v1: - Add more information in bindings - Modify some words in the commit message 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 | 6 ++++++ drivers/watchdog/mtk_wdt.c | 7 +++++++ 2 files changed, 13 insertions(+)