Skip to content

Commit 15ddf70

Browse files
TooniisWim Van Sebroeck
authored andcommitted
watchdog: mediatek: Add support for MT6735 TOPRGU/WDT
Add support for the Top Reset Generation Unit/Watchdog Timer found on MT6735. Signed-off-by: Yassine Oudjana <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Reviewed-by: Guenter Roeck <[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 a1495a2 commit 15ddf70

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
@@ -10,6 +10,7 @@
1010
*/
1111

1212
#include <dt-bindings/reset/mt2712-resets.h>
13+
#include <dt-bindings/reset/mediatek,mt6735-wdt.h>
1314
#include <dt-bindings/reset/mediatek,mt6795-resets.h>
1415
#include <dt-bindings/reset/mt7986-resets.h>
1516
#include <dt-bindings/reset/mt8183-resets.h>
@@ -87,6 +88,10 @@ static const struct mtk_wdt_data mt2712_data = {
8788
.toprgu_sw_rst_num = MT2712_TOPRGU_SW_RST_NUM,
8889
};
8990

91+
static const struct mtk_wdt_data mt6735_data = {
92+
.toprgu_sw_rst_num = MT6735_TOPRGU_RST_NUM,
93+
};
94+
9095
static const struct mtk_wdt_data mt6795_data = {
9196
.toprgu_sw_rst_num = MT6795_TOPRGU_SW_RST_NUM,
9297
};
@@ -489,6 +494,7 @@ static int mtk_wdt_resume(struct device *dev)
489494
static const struct of_device_id mtk_wdt_dt_ids[] = {
490495
{ .compatible = "mediatek,mt2712-wdt", .data = &mt2712_data },
491496
{ .compatible = "mediatek,mt6589-wdt" },
497+
{ .compatible = "mediatek,mt6735-wdt", .data = &mt6735_data },
492498
{ .compatible = "mediatek,mt6795-wdt", .data = &mt6795_data },
493499
{ .compatible = "mediatek,mt7986-wdt", .data = &mt7986_data },
494500
{ .compatible = "mediatek,mt7988-wdt", .data = &mt7988_data },

0 commit comments

Comments
 (0)