Skip to content

Commit 28927f6

Browse files
AngeloGioacchino Del RegnoWim Van Sebroeck
authored andcommitted
watchdog: mtk_wdt: Add support for MT6795 Helio X10 watchdog and toprgu
Add support for the toprgu reset controller and watchdog for the MediaTek MT6795 SoC. Signed-off-by: AngeloGioacchino Del Regno <[email protected]> Co-developed-by: Allen-KH Cheng <[email protected]> Signed-off-by: Allen-KH Cheng <[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 f0c4d9f commit 28927f6

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,mt6795-resets.h>
1314
#include <dt-bindings/reset/mt7986-resets.h>
1415
#include <dt-bindings/reset/mt8183-resets.h>
1516
#include <dt-bindings/reset/mt8186-resets.h>
@@ -78,6 +79,10 @@ static const struct mtk_wdt_data mt2712_data = {
7879
.toprgu_sw_rst_num = MT2712_TOPRGU_SW_RST_NUM,
7980
};
8081

82+
static const struct mtk_wdt_data mt6795_data = {
83+
.toprgu_sw_rst_num = MT6795_TOPRGU_SW_RST_NUM,
84+
};
85+
8186
static const struct mtk_wdt_data mt7986_data = {
8287
.toprgu_sw_rst_num = MT7986_TOPRGU_SW_RST_NUM,
8388
};
@@ -426,6 +431,7 @@ static int mtk_wdt_resume(struct device *dev)
426431
static const struct of_device_id mtk_wdt_dt_ids[] = {
427432
{ .compatible = "mediatek,mt2712-wdt", .data = &mt2712_data },
428433
{ .compatible = "mediatek,mt6589-wdt" },
434+
{ .compatible = "mediatek,mt6795-wdt", .data = &mt6795_data },
429435
{ .compatible = "mediatek,mt7986-wdt", .data = &mt7986_data },
430436
{ .compatible = "mediatek,mt8183-wdt", .data = &mt8183_data },
431437
{ .compatible = "mediatek,mt8186-wdt", .data = &mt8186_data },

0 commit comments

Comments
 (0)