[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210518145522.2420135-3-fparent@baylibre.com>
Date: Tue, 18 May 2021 16:55:22 +0200
From: Fabien Parent <fparent@...libre.com>
To: Qii Wang <qii.wang@...iatek.com>,
Matthias Brugger <matthias.bgg@...il.com>
Cc: mkorpershoek@...libre.com, Fabien Parent <fparent@...libre.com>,
linux-i2c@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: [PATCH 3/3] i2c: i2c-mt65xx: add MT8365 SoC support
Add support for I2C on MT8365 SoCs.
Signed-off-by: Fabien Parent <fparent@...libre.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 5ddfa4e56ee2..0e6ad84e0e47 100644
--- a/drivers/i2c/busses/i2c-mt65xx.c
+++ b/drivers/i2c/busses/i2c-mt65xx.c
@@ -404,6 +404,19 @@ static const struct mtk_i2c_compatible mt8192_compat = {
.max_dma_support = 36,
};
+static const struct mtk_i2c_compatible mt8365_compat = {
+ .regs = mt_i2c_regs_v1,
+ .pmic_i2c = 0,
+ .dcm = 1,
+ .auto_restart = 1,
+ .aux_len_reg = 1,
+ .timing_adjust = 1,
+ .dma_sync = 1,
+ .ltiming_adjust = 0,
+ .apdma_sync = 0,
+ .max_dma_support = 33,
+};
+
static const struct of_device_id mtk_i2c_of_match[] = {
{ .compatible = "mediatek,mt2712-i2c", .data = &mt2712_compat },
{ .compatible = "mediatek,mt6577-i2c", .data = &mt6577_compat },
@@ -412,6 +425,7 @@ static const struct of_device_id mtk_i2c_of_match[] = {
{ .compatible = "mediatek,mt8173-i2c", .data = &mt8173_compat },
{ .compatible = "mediatek,mt8183-i2c", .data = &mt8183_compat },
{ .compatible = "mediatek,mt8192-i2c", .data = &mt8192_compat },
+ { .compatible = "mediatek,mt8365-i2c", .data = &mt8365_compat },
{}
};
MODULE_DEVICE_TABLE(of, mtk_i2c_of_match);
--
2.31.1
Powered by blists - more mailing lists