From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4BEA315E8B; Mon, 30 Dec 2024 15:51:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735573888; cv=none; b=JlnANxqUQa2C0+vxBEBD14gkNt3jofSGCp9kcjixTKZq7U87pA+70DVfJD6cakNGUzjQnAyjo/7pStlAwnYtTH0xb2nQYfiCRmRYBmq9CHucVKMxnH7SYjuz34Hm6DBSlfaQ27xG2ay7JheM9ZckgbqZhlIOtgb6snFeJ0rzJ3I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735573888; c=relaxed/simple; bh=9GVWMWPme/WJMl0uTAoJursuMl+ZdKhbu075p8kOfSk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jMQ7m9aqNTlVGtfO/OvYaGhy9fhj5iUI1qiO8SxFElolZEK2iQKgV5ulucgqFtOYZc8SSKw0iAU5hepKMW2geF0V37ydaiCciCErzxaarpJuPsFPxWkoeev/hMSd4cR79yWH90opXaJLHTVssl1PEmuZCIe68GtrGrInAIA9Si0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YZq0LPfo; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="YZq0LPfo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0C00C4CED0; Mon, 30 Dec 2024 15:51:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735573888; bh=9GVWMWPme/WJMl0uTAoJursuMl+ZdKhbu075p8kOfSk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YZq0LPfoLnSiSky2yiGdP1lmFR+6l3012sV/QRWGD5LHrJZwhGl74DLwPw/kpVi6E 1jYJnnxUd4KcvSNGcthQUdBreYoNQSXSC74TF1Fj/BQWOumWi4ySo1qwsNeuShco04 ygzXWVU7H6+ZSJbAuACGgfPjxeVKPX8WEBSGcMPk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Yassine Oudjana , AngeloGioacchino Del Regno , Guenter Roeck , Wim Van Sebroeck , Sasha Levin Subject: [PATCH 6.6 33/86] watchdog: mediatek: Add support for MT6735 TOPRGU/WDT Date: Mon, 30 Dec 2024 16:42:41 +0100 Message-ID: <20241230154212.980133131@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241230154211.711515682@linuxfoundation.org> References: <20241230154211.711515682@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Yassine Oudjana [ Upstream commit 15ddf704f56f8c95ff74dfd1157ed8646b322fa1 ] Add support for the Top Reset Generation Unit/Watchdog Timer found on MT6735. Signed-off-by: Yassine Oudjana Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Guenter Roeck Link: https://lore.kernel.org/r/20241106104738.195968-3-y.oudjana@protonmail.com Signed-off-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck Signed-off-by: Sasha Levin --- 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 0559d9f2d97b..66bb68ceb14c 100644 --- a/drivers/watchdog/mtk_wdt.c +++ b/drivers/watchdog/mtk_wdt.c @@ -10,6 +10,7 @@ */ #include +#include #include #include #include @@ -81,6 +82,10 @@ static const struct mtk_wdt_data mt2712_data = { .toprgu_sw_rst_num = MT2712_TOPRGU_SW_RST_NUM, }; +static const struct mtk_wdt_data mt6735_data = { + .toprgu_sw_rst_num = MT6735_TOPRGU_RST_NUM, +}; + static const struct mtk_wdt_data mt6795_data = { .toprgu_sw_rst_num = MT6795_TOPRGU_SW_RST_NUM, }; @@ -448,6 +453,7 @@ static int mtk_wdt_resume(struct device *dev) static const struct of_device_id mtk_wdt_dt_ids[] = { { .compatible = "mediatek,mt2712-wdt", .data = &mt2712_data }, { .compatible = "mediatek,mt6589-wdt" }, + { .compatible = "mediatek,mt6735-wdt", .data = &mt6735_data }, { .compatible = "mediatek,mt6795-wdt", .data = &mt6795_data }, { .compatible = "mediatek,mt7986-wdt", .data = &mt7986_data }, { .compatible = "mediatek,mt8183-wdt", .data = &mt8183_data }, -- 2.39.5