Skip to content

Commit 789e67b

Browse files
Qii Wangwsakernel
authored andcommitted
i2c: mediatek: Add i2c compatible for MediaTek MT8192
Add i2c compatible for MT8192. Compare to MT8183 i2c controller, MT8192 support more then 8GB DMA mode. Signed-off-by: Qii Wang <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 311df9d commit 789e67b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

drivers/i2c/busses/i2c-mt65xx.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,13 +386,28 @@ static const struct mtk_i2c_compatible mt8183_compat = {
386386
.max_dma_support = 33,
387387
};
388388

389+
static const struct mtk_i2c_compatible mt8192_compat = {
390+
.quirks = &mt8183_i2c_quirks,
391+
.regs = mt_i2c_regs_v2,
392+
.pmic_i2c = 0,
393+
.dcm = 0,
394+
.auto_restart = 1,
395+
.aux_len_reg = 1,
396+
.timing_adjust = 1,
397+
.dma_sync = 1,
398+
.ltiming_adjust = 1,
399+
.apdma_sync = 1,
400+
.max_dma_support = 36,
401+
};
402+
389403
static const struct of_device_id mtk_i2c_of_match[] = {
390404
{ .compatible = "mediatek,mt2712-i2c", .data = &mt2712_compat },
391405
{ .compatible = "mediatek,mt6577-i2c", .data = &mt6577_compat },
392406
{ .compatible = "mediatek,mt6589-i2c", .data = &mt6589_compat },
393407
{ .compatible = "mediatek,mt7622-i2c", .data = &mt7622_compat },
394408
{ .compatible = "mediatek,mt8173-i2c", .data = &mt8173_compat },
395409
{ .compatible = "mediatek,mt8183-i2c", .data = &mt8183_compat },
410+
{ .compatible = "mediatek,mt8192-i2c", .data = &mt8192_compat },
396411
{}
397412
};
398413
MODULE_DEVICE_TABLE(of, mtk_i2c_of_match);

0 commit comments

Comments
 (0)