developer | 8b9f285 | 2021-06-03 21:53:08 +0800 | [diff] [blame] | 1 | diff --git a/drivers/i2c/busses/i2c-mt65xx.c b/drivers/i2c/busses/i2c-mt65xx.c |
| 2 | index e1ef012..4fd4721 100644 |
| 3 | --- a/drivers/i2c/busses/i2c-mt65xx.c |
| 4 | +++ b/drivers/i2c/busses/i2c-mt65xx.c |
| 5 | @@ -289,6 +289,19 @@ static const struct mtk_i2c_compatible mt7622_compat = { |
| 6 | .ltiming_adjust = 0, |
| 7 | }; |
| 8 | |
| 9 | +static const struct mtk_i2c_compatible mt7986_compat = { |
| 10 | + .quirks = &mt7622_i2c_quirks, |
| 11 | + .regs = mt_i2c_regs_v1, |
| 12 | + .pmic_i2c = 0, |
| 13 | + .dcm = 1, |
| 14 | + .auto_restart = 1, |
| 15 | + .aux_len_reg = 1, |
| 16 | + .support_33bits = 0, |
| 17 | + .timing_adjust = 0, |
| 18 | + .dma_sync = 1, |
| 19 | + .ltiming_adjust = 0, |
| 20 | +}; |
| 21 | + |
| 22 | static const struct mtk_i2c_compatible mt8173_compat = { |
| 23 | .regs = mt_i2c_regs_v1, |
| 24 | .pmic_i2c = 0, |
| 25 | @@ -319,6 +332,7 @@ static const struct of_device_id mtk_i2c_of_match[] = { |
| 26 | { .compatible = "mediatek,mt6577-i2c", .data = &mt6577_compat }, |
| 27 | { .compatible = "mediatek,mt6589-i2c", .data = &mt6589_compat }, |
| 28 | { .compatible = "mediatek,mt7622-i2c", .data = &mt7622_compat }, |
| 29 | + { .compatible = "mediatek,mt7986-i2c", .data = &mt7986_compat }, |
| 30 | { .compatible = "mediatek,mt8173-i2c", .data = &mt8173_compat }, |
| 31 | { .compatible = "mediatek,mt8183-i2c", .data = &mt8183_compat }, |
| 32 | {} |