| From 64902a41254881d559a2f1e4d2966f16e4a7f98a Mon Sep 17 00:00:00 2001 |
| From: Sam Shih <sam.shih@mediatek.com> |
| Date: Fri, 2 Jun 2023 13:06:06 +0800 |
| Subject: [PATCH] [slow-speed-io][999-2110-i2c-busses-add-mt7986-support.patch] |
| |
| --- |
| drivers/i2c/busses/i2c-mt65xx.c | 14 ++++++++++++++ |
| 1 file changed, 14 insertions(+) |
| |
| diff --git a/drivers/i2c/busses/i2c-mt65xx.c b/drivers/i2c/busses/i2c-mt65xx.c |
| index 5587e7c54..14d96c876 100644 |
| --- a/drivers/i2c/busses/i2c-mt65xx.c |
| +++ b/drivers/i2c/busses/i2c-mt65xx.c |
| @@ -289,6 +289,19 @@ static const struct mtk_i2c_compatible mt7622_compat = { |
| .ltiming_adjust = 0, |
| }; |
| |
| +static const struct mtk_i2c_compatible mt7986_compat = { |
| + .quirks = &mt7622_i2c_quirks, |
| + .regs = mt_i2c_regs_v1, |
| + .pmic_i2c = 0, |
| + .dcm = 1, |
| + .auto_restart = 1, |
| + .aux_len_reg = 1, |
| + .support_33bits = 0, |
| + .timing_adjust = 0, |
| + .dma_sync = 1, |
| + .ltiming_adjust = 0, |
| +}; |
| + |
| static const struct mtk_i2c_compatible mt8173_compat = { |
| .regs = mt_i2c_regs_v1, |
| .pmic_i2c = 0, |
| @@ -319,6 +332,7 @@ static const struct of_device_id mtk_i2c_of_match[] = { |
| { .compatible = "mediatek,mt6577-i2c", .data = &mt6577_compat }, |
| { .compatible = "mediatek,mt6589-i2c", .data = &mt6589_compat }, |
| { .compatible = "mediatek,mt7622-i2c", .data = &mt7622_compat }, |
| + { .compatible = "mediatek,mt7986-i2c", .data = &mt7986_compat }, |
| { .compatible = "mediatek,mt8173-i2c", .data = &mt8173_compat }, |
| { .compatible = "mediatek,mt8183-i2c", .data = &mt8183_compat }, |
| {} |
| -- |
| 2.34.1 |
| |