Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3409534rwb; Tue, 16 Aug 2022 02:26:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR4WGgoYgg4tHE57I0eu1QnXpjypXX5Xst5+EVYeVCqHfqSrbYpPfP0yRC9LOVBtBOC+u9AM X-Received: by 2002:a17:902:8302:b0:16d:bf03:847c with SMTP id bd2-20020a170902830200b0016dbf03847cmr21088232plb.125.1660641997685; Tue, 16 Aug 2022 02:26:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660641997; cv=none; d=google.com; s=arc-20160816; b=O4jqOPhgKz3E03QZUM25zUlJ7Xfrtw0BpjlvwOYpGx2nUYUVJhg2IEJg69U44TbOTG MHWf9d2pjZ91CC5ajsTJC5U3UPAeRdvEvjHDu5tiptvV8Oujvk8gaiFfWNL0RudzxDAk dufFG1pgPY4kKPtDaGjvLYGVXFmInGOIobUK1iOekQoUZhu3IejMwSJG03Fb4S7bxj6h Q3x+DYnE8Kh92FPlEnYvw/KN/jcKDWvDtHBeReJ/uBNwrKCq27MnjalwXb9MuQF8/RKM GHPJYQSlO+Mnv39ubmWUGOFN4e+F8hm9E9gmzZDIJms9CkUAIk6gEUnGU7I+Mp3bME6o /Olg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=5t0XM1737ZWX1mhSCQ9gGUR194bfXWMaXzOPq4liWSc=; b=PYdCxctIAlis1Qeg9vVkG5GftSTEdMHpce1XwAwWTf2uQP+fjkE656B1XCe4ML7gxG tbdaCPNEtLAYQeVq7dBWPcKVGqftiIBHuq4EpCk6dJ/hy8QgMuPC8SBSIhLWDYengf1C XOAN5kK+vfdQO9jfSrIM+/mRklFcoS4NrDoXKcjwxqdfVMSauEsIGWBewm7qiFcIf7Co 2oGTSmxZ1lQvOuVCX3xhVQQTFiJpLomGKrY+FDTMxoP2dAScU+x5EXw4oRw2tr1O5ZhX E5tXvoA/z6qOY7Oz79UrsQtLq5xejQMkK43SRzHyDuEkv5m6rJ411Zjoi/hDb6IRAQJP nzpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ZvpuhY0q; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n2-20020a63e042000000b0041d024d58d8si13058654pgj.524.2022.08.16.02.26.26; Tue, 16 Aug 2022 02:26:37 -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=@mediatek.com header.s=dk header.b=ZvpuhY0q; 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 S232704AbiHPItb (ORCPT + 99 others); Tue, 16 Aug 2022 04:49:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230418AbiHPIss (ORCPT ); Tue, 16 Aug 2022 04:48:48 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E201814EBB9; Mon, 15 Aug 2022 23:53:58 -0700 (PDT) X-UUID: ccaf7371070f47dabbfaa3ebd7dd80be-20220816 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=5t0XM1737ZWX1mhSCQ9gGUR194bfXWMaXzOPq4liWSc=; b=ZvpuhY0qEWRyZJGe8XOW1mtDprZvBNjLeXqwISJll48/iLaP8QIVp0RFO/D0dOUcrIBwHKxjXOBACCYV8G15QevC7poThBDuij0TTf1+m++nv0lNcEaJgOqUcI8AV7d74KU16yqQcVRWbqu1n5uPgRvlPZVzBmuczM5WrYi2UCU=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.9,REQID:25ceddc5-54e6-4106-a126-50a8d656b611,OB:0,LO B:0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_H am,ACTION:release,TS:0 X-CID-META: VersionHash:3d8acc9,CLOUDID:92c1f0ae-9535-44a6-aa9b-7f62b79b6ff6,C OID:IGNORED,Recheck:0,SF:nil,TC:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil ,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: ccaf7371070f47dabbfaa3ebd7dd80be-20220816 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 738991589; Tue, 16 Aug 2022 14:53:53 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Tue, 16 Aug 2022 14:53:48 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 16 Aug 2022 14:53:48 +0800 From: Runyang Chen To: Wim Van Sebroeck , Guenter Roeck , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , CC: , , , , , , Runyang Chen Subject: [PATCH v2 3/3] watchdog: mediatek: mt8188: add wdt support Date: Tue, 16 Aug 2022 14:53:30 +0800 Message-ID: <20220816065330.27570-4-Runyang.Chen@mediatek.com> X-Mailer: git-send-email 2.9.2 In-Reply-To: <20220816065330.27570-1-Runyang.Chen@mediatek.com> References: <20220816065330.27570-1-Runyang.Chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,RDNS_NONE, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no 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: Runyang Chen Support MT8188 watchdog device. Signed-off-by: Runyang Chen Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Guenter Roeck --- drivers/watchdog/mtk_wdt.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c index e97787536792..b53763ad90cf 100644 --- a/drivers/watchdog/mtk_wdt.c +++ b/drivers/watchdog/mtk_wdt.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -90,6 +91,10 @@ static const struct mtk_wdt_data mt8186_data = { .toprgu_sw_rst_num = MT8186_TOPRGU_SW_RST_NUM, }; +static const struct mtk_wdt_data mt8188_data = { + .toprgu_sw_rst_num = MT8188_TOPRGU_SW_RST_NUM, +}; + static const struct mtk_wdt_data mt8192_data = { .toprgu_sw_rst_num = MT8192_TOPRGU_SW_RST_NUM, }; @@ -429,6 +434,7 @@ static const struct of_device_id mtk_wdt_dt_ids[] = { { .compatible = "mediatek,mt7986-wdt", .data = &mt7986_data }, { .compatible = "mediatek,mt8183-wdt", .data = &mt8183_data }, { .compatible = "mediatek,mt8186-wdt", .data = &mt8186_data }, + { .compatible = "mediatek,mt8188-wdt", .data = &mt8188_data }, { .compatible = "mediatek,mt8192-wdt", .data = &mt8192_data }, { .compatible = "mediatek,mt8195-wdt", .data = &mt8195_data }, { /* sentinel */ } -- 2.18.0