Skip to content

Commit 1bff55b

Browse files
Kewei Xuwsakernel
authored andcommitted
i2c: mediatek: Add i2c compatible for Mediatek MT8168
Add i2c compatible for MT8168. Compare to MT2712 i2c controller, MT8168 need to synchronize signal with dma. Signed-off-by: Kewei Xu <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Reviewed-by: Qii Wang <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 09055eb commit 1bff55b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

drivers/i2c/busses/i2c-mt65xx.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,19 @@ static const struct mtk_i2c_compatible mt7622_compat = {
389389
.max_dma_support = 32,
390390
};
391391

392+
static const struct mtk_i2c_compatible mt8168_compat = {
393+
.regs = mt_i2c_regs_v1,
394+
.pmic_i2c = 0,
395+
.dcm = 1,
396+
.auto_restart = 1,
397+
.aux_len_reg = 1,
398+
.timing_adjust = 1,
399+
.dma_sync = 1,
400+
.ltiming_adjust = 0,
401+
.apdma_sync = 0,
402+
.max_dma_support = 33,
403+
};
404+
392405
static const struct mtk_i2c_compatible mt8173_compat = {
393406
.regs = mt_i2c_regs_v1,
394407
.pmic_i2c = 0,
@@ -448,6 +461,7 @@ static const struct of_device_id mtk_i2c_of_match[] = {
448461
{ .compatible = "mediatek,mt6577-i2c", .data = &mt6577_compat },
449462
{ .compatible = "mediatek,mt6589-i2c", .data = &mt6589_compat },
450463
{ .compatible = "mediatek,mt7622-i2c", .data = &mt7622_compat },
464+
{ .compatible = "mediatek,mt8168-i2c", .data = &mt8168_compat },
451465
{ .compatible = "mediatek,mt8173-i2c", .data = &mt8173_compat },
452466
{ .compatible = "mediatek,mt8183-i2c", .data = &mt8183_compat },
453467
{ .compatible = "mediatek,mt8186-i2c", .data = &mt8186_compat },

0 commit comments

Comments
 (0)