Skip to content

Commit bc73136

Browse files
Runyang ChenWim Van Sebroeck
authored andcommitted
watchdog: mediatek: mt8188: add wdt support
Support MT8188 watchdog device. Signed-off-by: Runyang Chen <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Reviewed-by: Matthias Brugger <[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 fea5804 commit bc73136

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
@@ -14,6 +14,7 @@
1414
#include <dt-bindings/reset/mt7986-resets.h>
1515
#include <dt-bindings/reset/mt8183-resets.h>
1616
#include <dt-bindings/reset/mt8186-resets.h>
17+
#include <dt-bindings/reset/mt8188-resets.h>
1718
#include <dt-bindings/reset/mt8192-resets.h>
1819
#include <dt-bindings/reset/mt8195-resets.h>
1920
#include <linux/delay.h>
@@ -95,6 +96,10 @@ static const struct mtk_wdt_data mt8186_data = {
9596
.toprgu_sw_rst_num = MT8186_TOPRGU_SW_RST_NUM,
9697
};
9798

99+
static const struct mtk_wdt_data mt8188_data = {
100+
.toprgu_sw_rst_num = MT8188_TOPRGU_SW_RST_NUM,
101+
};
102+
98103
static const struct mtk_wdt_data mt8192_data = {
99104
.toprgu_sw_rst_num = MT8192_TOPRGU_SW_RST_NUM,
100105
};
@@ -435,6 +440,7 @@ static const struct of_device_id mtk_wdt_dt_ids[] = {
435440
{ .compatible = "mediatek,mt7986-wdt", .data = &mt7986_data },
436441
{ .compatible = "mediatek,mt8183-wdt", .data = &mt8183_data },
437442
{ .compatible = "mediatek,mt8186-wdt", .data = &mt8186_data },
443+
{ .compatible = "mediatek,mt8188-wdt", .data = &mt8188_data },
438444
{ .compatible = "mediatek,mt8192-wdt", .data = &mt8192_data },
439445
{ .compatible = "mediatek,mt8195-wdt", .data = &mt8195_data },
440446
{ /* sentinel */ }

0 commit comments

Comments
 (0)