Add i2c compatible for MT8186. Compare to MT8192 i2c controller,
MT8186 doesn't need handshake signal witch apdma.
Signed-off-by: Kewei Xu <kewei.xu@mediatek.com>
---
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 9ea427f53083..aa4d21838e14 100644
--- a/drivers/i2c/busses/i2c-mt65xx.c
+++ b/drivers/i2c/busses/i2c-mt65xx.c
@@ -397,6 +397,19 @@ static const struct mtk_i2c_compatible mt8183_compat = {
.max_dma_support = 33,
};
+static const struct mtk_i2c_compatible mt8186_compat = {
+ .regs = mt_i2c_regs_v2,
+ .pmic_i2c = 0,
+ .dcm = 0,
+ .auto_restart = 1,
+ .aux_len_reg = 1,
+ .timing_adjust = 1,
+ .dma_sync = 0,
+ .ltiming_adjust = 1,
+ .apdma_sync = 0,
+ .max_dma_support = 36,
+};
+
static const struct mtk_i2c_compatible mt8192_compat = {
.quirks = &mt8183_i2c_quirks,
.regs = mt_i2c_regs_v2,
@@ -418,6 +431,7 @@ static const struct of_device_id mtk_i2c_of_match[] = {
{ .compatible = "mediatek,mt7622-i2c", .data = &mt7622_compat },
{ .compatible = "mediatek,mt8173-i2c", .data = &mt8173_compat },
{ .compatible = "mediatek,mt8183-i2c", .data = &mt8183_compat },
+ { .compatible = "mediatek,mt8186-i2c", .data = &mt8186_compat },
{ .compatible = "mediatek,mt8192-i2c", .data = &mt8192_compat },
{}
};
--
2.25.1
On Tue, 2022-01-25 at 19:04 +0800, Kewei Xu wrote: > Add i2c compatible for MT8186. Compare to MT8192 i2c controller, > MT8186 doesn't need handshake signal witch apdma. > > Signed-off-by: Kewei Xu <kewei.xu@mediatek.com> Reviewed-by: Qii Wang <qii.wang@mediatek.com> > --- > 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 9ea427f53083..aa4d21838e14 100644 > --- a/drivers/i2c/busses/i2c-mt65xx.c > +++ b/drivers/i2c/busses/i2c-mt65xx.c > @@ -397,6 +397,19 @@ static const struct mtk_i2c_compatible > mt8183_compat = { > .max_dma_support = 33, > }; > > +static const struct mtk_i2c_compatible mt8186_compat = { > + .regs = mt_i2c_regs_v2, > + .pmic_i2c = 0, > + .dcm = 0, > + .auto_restart = 1, > + .aux_len_reg = 1, > + .timing_adjust = 1, > + .dma_sync = 0, > + .ltiming_adjust = 1, > + .apdma_sync = 0, > + .max_dma_support = 36, > +}; > + > static const struct mtk_i2c_compatible mt8192_compat = { > .quirks = &mt8183_i2c_quirks, > .regs = mt_i2c_regs_v2, > @@ -418,6 +431,7 @@ static const struct of_device_id > mtk_i2c_of_match[] = { > { .compatible = "mediatek,mt7622-i2c", .data = &mt7622_compat > }, > { .compatible = "mediatek,mt8173-i2c", .data = &mt8173_compat > }, > { .compatible = "mediatek,mt8183-i2c", .data = &mt8183_compat > }, > + { .compatible = "mediatek,mt8186-i2c", .data = &mt8186_compat > }, > { .compatible = "mediatek,mt8192-i2c", .data = &mt8192_compat > }, > {} > };
On Tue, Jan 25, 2022 at 07:04:13PM +0800, Kewei Xu wrote: > Add i2c compatible for MT8186. Compare to MT8192 i2c controller, > MT8186 doesn't need handshake signal witch apdma. > > Signed-off-by: Kewei Xu <kewei.xu@mediatek.com> Applied to for-next, thanks!
© 2016 - 2024 Red Hat, Inc.