Skip to content

Commit 8c6b5ea

Browse files
mtk23043Wim Van Sebroeck
authored andcommitted
watchdog: mediatek: mt8195: add wdt support
Support MT8195 watchdog device. Signed-off-by: Christine Zhu <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Reviewed-by: Tzung-Bi Shih <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent 39c5b2f commit 8c6b5ea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/watchdog/mtk_wdt.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <dt-bindings/reset-controller/mt2712-resets.h>
1313
#include <dt-bindings/reset-controller/mt8183-resets.h>
1414
#include <dt-bindings/reset-controller/mt8192-resets.h>
15+
#include <dt-bindings/reset/mt8195-resets.h>
1516
#include <linux/delay.h>
1617
#include <linux/err.h>
1718
#include <linux/init.h>
@@ -82,6 +83,10 @@ static const struct mtk_wdt_data mt8192_data = {
8283
.toprgu_sw_rst_num = MT8192_TOPRGU_SW_RST_NUM,
8384
};
8485

86+
static const struct mtk_wdt_data mt8195_data = {
87+
.toprgu_sw_rst_num = MT8195_TOPRGU_SW_RST_NUM,
88+
};
89+
8590
static int toprgu_reset_update(struct reset_controller_dev *rcdev,
8691
unsigned long id, bool assert)
8792
{
@@ -408,6 +413,7 @@ static const struct of_device_id mtk_wdt_dt_ids[] = {
408413
{ .compatible = "mediatek,mt6589-wdt" },
409414
{ .compatible = "mediatek,mt8183-wdt", .data = &mt8183_data },
410415
{ .compatible = "mediatek,mt8192-wdt", .data = &mt8192_data },
416+
{ .compatible = "mediatek,mt8195-wdt", .data = &mt8195_data },
411417
{ /* sentinel */ }
412418
};
413419
MODULE_DEVICE_TABLE(of, mtk_wdt_dt_ids);

0 commit comments

Comments
 (0)