Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <y.oudjana@protonmail.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20241106104738.195968-3-y.oudjana@protonmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

Yassine Oudjana and committed by
Wim Van Sebroeck
15ddf704 a1495a21

+6
+6
drivers/watchdog/mtk_wdt.c
··· 10 10 */ 11 11 12 12 #include <dt-bindings/reset/mt2712-resets.h> 13 + #include <dt-bindings/reset/mediatek,mt6735-wdt.h> 13 14 #include <dt-bindings/reset/mediatek,mt6795-resets.h> 14 15 #include <dt-bindings/reset/mt7986-resets.h> 15 16 #include <dt-bindings/reset/mt8183-resets.h> ··· 86 85 87 86 static const struct mtk_wdt_data mt2712_data = { 88 87 .toprgu_sw_rst_num = MT2712_TOPRGU_SW_RST_NUM, 88 + }; 89 + 90 + static const struct mtk_wdt_data mt6735_data = { 91 + .toprgu_sw_rst_num = MT6735_TOPRGU_RST_NUM, 89 92 }; 90 93 91 94 static const struct mtk_wdt_data mt6795_data = { ··· 494 489 static const struct of_device_id mtk_wdt_dt_ids[] = { 495 490 { .compatible = "mediatek,mt2712-wdt", .data = &mt2712_data }, 496 491 { .compatible = "mediatek,mt6589-wdt" }, 492 + { .compatible = "mediatek,mt6735-wdt", .data = &mt6735_data }, 497 493 { .compatible = "mediatek,mt6795-wdt", .data = &mt6795_data }, 498 494 { .compatible = "mediatek,mt7986-wdt", .data = &mt7986_data }, 499 495 { .compatible = "mediatek,mt7988-wdt", .data = &mt7988_data },