Skip to content

Commit 6cafcc5

Browse files
AngeloGioacchino Del Regnobroonie
authored andcommitted
spi: spi-mt65xx: Add support for MT6991 Dimensity 9400 SPI IPM
Add support for the SPI IPM controller found in the MediaTek Dimensity 9400 (MT6991) SoC. As a note, this is the same SPI IPM Controller IP found on the MT8196 Kompanio counterpart. Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://patch.msgid.link/20250611110747.458090-2-angelogioacchino.delregno@collabora.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 414145b commit 6cafcc5

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

drivers/spi/spi-mt65xx.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,14 @@ static const struct mtk_spi_compatible mt6893_compat = {
220220
.no_need_unprepare = true,
221221
};
222222

223+
static const struct mtk_spi_compatible mt6991_compat = {
224+
.need_pad_sel = true,
225+
.must_tx = true,
226+
.enhance_timing = true,
227+
.dma_ext = true,
228+
.ipm_design = true,
229+
};
230+
223231
/*
224232
* A piece of default chip info unless the platform
225233
* supplies it.
@@ -245,6 +253,9 @@ static const struct of_device_id mtk_spi_of_match[] = {
245253
{ .compatible = "mediatek,mt6765-spi",
246254
.data = (void *)&mt6765_compat,
247255
},
256+
{ .compatible = "mediatek,mt6991-spi",
257+
.data = (void *)&mt6991_compat,
258+
},
248259
{ .compatible = "mediatek,mt7622-spi",
249260
.data = (void *)&mt7622_compat,
250261
},

0 commit comments

Comments
 (0)