[PATCH 2/2] mmc: mtk-sd: Add support for MT6797

From: Ben Grisdale via B4 Relay

Date: Wed Dec 02 2026 - 14:13:41 EST


From: Ben Grisdale <bengris32@xxxxxxxxxxxxx>

Add support for MT6797 with a new compatible string and data.

Signed-off-by: Ben Grisdale <bengris32@xxxxxxxxxxxxx>
---
drivers/mmc/host/mtk-sd.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)

diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c
index 20bebb20de2c..b7a45d56d897 100644
--- a/drivers/mmc/host/mtk-sd.c
+++ b/drivers/mmc/host/mtk-sd.c
@@ -580,6 +580,19 @@ static const struct mtk_mmc_compatible mt6795_compat = {
.support_64g = false,
};

+static const struct mtk_mmc_compatible mt6797_compat = {
+ .clk_div_bits = 12,
+ .recheck_sdio_irq = true,
+ .hs400_tune = false,
+ .pad_tune_reg = MSDC_PAD_TUNE0,
+ .async_fifo = true,
+ .data_tune = true,
+ .busy_check = false,
+ .stop_clk_fix = false,
+ .enhance_rx = false,
+ .support_64g = true,
+};
+
static const struct mtk_mmc_compatible mt7620_compat = {
.clk_div_bits = 8,
.recheck_sdio_irq = true,
@@ -718,6 +731,7 @@ static const struct of_device_id msdc_of_ids[] = {
{ .compatible = "mediatek,mt2712-mmc", .data = &mt2712_compat},
{ .compatible = "mediatek,mt6779-mmc", .data = &mt6779_compat},
{ .compatible = "mediatek,mt6795-mmc", .data = &mt6795_compat},
+ { .compatible = "mediatek,mt6797-mmc", .data = &mt6797_compat},
{ .compatible = "mediatek,mt7620-mmc", .data = &mt7620_compat},
{ .compatible = "mediatek,mt7622-mmc", .data = &mt7622_compat},
{ .compatible = "mediatek,mt7986-mmc", .data = &mt7986_compat},

--
2.56.0