Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp256208rwi; Wed, 26 Oct 2022 00:00:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Y7+E69iU015gVaDlNpDPl37fKC1XMeCFCoSw1tDD9reixlt9okhtJiawiMM9ApRvw+NVK X-Received: by 2002:a63:8449:0:b0:46e:ecba:c46d with SMTP id k70-20020a638449000000b0046eecbac46dmr17266506pgd.310.1666767608465; Wed, 26 Oct 2022 00:00:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666767608; cv=none; d=google.com; s=arc-20160816; b=PeeB2fiYzkixobmOWfcAiP7GFIe/azsYazeLeT4mRTP1wQzgxgOomMZb3pPPAsHU10 9jWpp5lzP4pmTvRzHOprk5Rt8O+3mVTVifXkEN4+dICrMjo4hXbeiy6PnvasRBUuaoEv IZLjfnlr85Lq78jrv6wBwIBISNjIXucVcGb9mZ5ow3ui7EF6gVFq/RWqIIornzlgs7Np YF3rXgUiCBzValBaVDxGRoD8VHoxZLGlz2Pz949jClY95USUvmqYvQ3kCh7UeGFupxSD AXQMegKY9LtSQeq8mi4/TTKVYVwvOJbMBkrnhsKAZTgeTnoryiE15bH7en/lPCfp4zG5 9YaA== 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=RmCngl+Thy1APlcJ146Wriv1Se+V1zPJFkxwbB/wguE=; b=FvfALKLSXy02yaTMc6BtTLzCcx09ASHvsKdSvxvOkKcxcZJj0KRw5GXfO/RP9HcIOY SxFbzNq/DT4UvAksZxdhDcuj8KJOD1qeYr+MAqMDTxeHrr9ZJO6vkpnOWo8uS2qVHw7p SXZT/DwoaCzRjsQtMnUCM27s6THySaV14MH4S25B1OQMHwD/GfXWHK6UrCfixU486n72 VQE7MIu+50Y7epGLLZtzG6mbVPh5M23zhbi9NbHidLmei1oMiykQWzH+VxqtO1YeZE1u kzqiA64tBh6agwA1eBaYs/t5Xugymmpzv7DXd+TMXAdieryjRXW0tX2kvutF9tmnVHng SJtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=AFmto6Xc; 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 y3-20020a62ce03000000b0056bf7935ac1si6002588pfg.145.2022.10.25.23.59.42; Wed, 26 Oct 2022 00:00:08 -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=AFmto6Xc; 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 S233231AbiJZGd6 (ORCPT + 99 others); Wed, 26 Oct 2022 02:33:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233214AbiJZGdx (ORCPT ); Wed, 26 Oct 2022 02:33:53 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B47FDAD999; Tue, 25 Oct 2022 23:33:46 -0700 (PDT) X-UUID: e407c26ad4cf494aad3b435bb6fc1d1f-20221026 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=RmCngl+Thy1APlcJ146Wriv1Se+V1zPJFkxwbB/wguE=; b=AFmto6XczTe8caUV54UCMiSEapez9IVL0Mw83m3hgTMWm3LN+PHnV42wmbRvSx/K7BMb2YEVhEHHarR4cJTD5e38V9lhwmdJw9wLp/glkyeL2JOZL0gRQEirK73jPrS1hvoFh6zFDfAcLqGCcbmf8pMbkk3RuVhqNrahe+Aam+s=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.12,REQID:64b6b983-dfac-4892-af30-0511ae51b912,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:62cd327,CLOUDID:5b9a216d-89d3-4bfa-baad-dc632a24bca3,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 X-UUID: e407c26ad4cf494aad3b435bb6fc1d1f-20221026 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 1541144140; Wed, 26 Oct 2022 14:33:42 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Wed, 26 Oct 2022 14:33:41 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 26 Oct 2022 14:33:40 +0800 From: Runyang Chen To: Wim Van Sebroeck , Guenter Roeck , Krzysztof Kozlowski , "Matthias Brugger" , Rob Herring , "Philipp Zabel" , CC: , , , , , , , Runyang Chen Subject: [RESEND v3 3/3] watchdog: mediatek: mt8188: add wdt support Date: Wed, 26 Oct 2022 14:33:27 +0800 Message-ID: <20221026063327.20037-4-Runyang.Chen@mediatek.com> X-Mailer: git-send-email 2.9.2 In-Reply-To: <20221026063327.20037-1-Runyang.Chen@mediatek.com> References: <20221026063327.20037-1-Runyang.Chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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, SPF_PASS,UNPARSEABLE_RELAY,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 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 Reviewed-by: Matthias Brugger --- 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