Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3733130rwb; Tue, 20 Sep 2022 04:04:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ePZoTV3qXqd7UzljKmmNiZPeJ/o3L8n9nJHPhbB6swV2Wlc6hFMoe9EsHbQxi6Qf7aMUc X-Received: by 2002:a17:90b:3b90:b0:202:80ac:467c with SMTP id pc16-20020a17090b3b9000b0020280ac467cmr3194481pjb.17.1663671884743; Tue, 20 Sep 2022 04:04:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663671884; cv=none; d=google.com; s=arc-20160816; b=peBDqCh4SE3VI8PVpP/4l+0WPWzOw3LC9Hi9RWpuOkZ2jfregN6ZtBqlet/nO1LQy0 HlRSjz6YlI9yNxrYpFFjF6RREwjbHi9d9AFCoSX/08jM4mKhn6262O/8x1uhcSqrbBAL rTgKMJPRincE6kRcPNoElTDVHAlW9djp3MFkfIBz3T78oxAeedSLqa23QZxAAqtNYmUp ZPVCHEvxn2A9JM8J4sYSaGt83zLA3XSByy2UvOeveXeYh255I9crEyUTPGp+uaf7Dsae aIsvqudVALxMxRyySOskjkKE0ZKv/y3Fult0O5DHi0tKGATTIjAL8c69JysVgy+HhlMx gpkw== 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=jF0oLZE3vpkRF9A8Zg+iGSwWUUONgShn1RxUVEdttB/HaDecmOvVSckw9os847eW6E IjB/i3/EYbdaEj5wV/gUA1ynUVCqSEnvXQwNjigM6mboSyTfeUp58OpX8JJ1cNFgfzHS f+rONvk4W73sPSLhPjVRbxl9K7qVduTlakqjmcBzENUqKcbcYl3ifYpxRau0Tga10WbW Hy9b2BjfvJAn5wBB4OhwGPQCbkmsglDiqGV58oqUHygjzGflNEmnhfpos70dHCqZeoqE RayJ55NWreA4AMBBkhUraHceTVJUflzsjthWdEk66/44VElX3wcJTZcXPdCtEJBs0Bmw dY6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="FeHAa/mL"; 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 q23-20020a656857000000b0042a8bebaaf7si1408429pgt.106.2022.09.20.04.04.32; Tue, 20 Sep 2022 04:04:44 -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="FeHAa/mL"; 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 S230518AbiITK4s (ORCPT + 99 others); Tue, 20 Sep 2022 06:56:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230246AbiITK4l (ORCPT ); Tue, 20 Sep 2022 06:56:41 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB5486DF88; Tue, 20 Sep 2022 03:56:39 -0700 (PDT) X-UUID: b2a5e7552d874d36b5c4dc36b478e1f8-20220920 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=FeHAa/mLZKMTzbPi6r6RE104jzY13e9CKCbEeUYDJ2o5ywKbk0MmOub4pY0D6WVtT49pxQxR7klrOewFCEaxnCGYDWofFaU6HuNUWe62FraLfmBd5df1IHc9XAtjXKyNzHmzNZI3oFW3SQGJzV5KIEo5HwerCFcvGWPIwwEv+HQ=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.11,REQID:b7300394-d2d2-447d-ae4d-e4aa9ff8fd32,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:39a5ff1,CLOUDID:4a4b485e-5ed4-4e28-8b00-66ed9f042fbd,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:nil,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: b2a5e7552d874d36b5c4dc36b478e1f8-20220920 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 615476418; Tue, 20 Sep 2022 18:56:35 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Tue, 20 Sep 2022 18:56:33 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Tue, 20 Sep 2022 18:56:32 +0800 From: Runyang Chen To: Wim Van Sebroeck , Guenter Roeck , Krzysztof Kozlowski , "Matthias Brugger" , Rob Herring , CC: , , , , , , "Runyang Chen" Subject: [PATCH v3 3/3] watchdog: mediatek: mt8188: add wdt support Date: Tue, 20 Sep 2022 18:56:22 +0800 Message-ID: <20220920105622.25666-4-Runyang.Chen@mediatek.com> X-Mailer: git-send-email 2.9.2 In-Reply-To: <20220920105622.25666-1-Runyang.Chen@mediatek.com> References: <20220920105622.25666-1-Runyang.Chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.0 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_CSS 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 --- 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