add i2c support for mt8186
Subsystems (4)
cover add i2c support for mt8186
Kewei Xu (2):
dt-bindings: i2c: update bindings for MT8186 SoC
i2c: mediatek: Add i2c compatible for Mediatek MT8186
.../devicetree/bindings/i2c/i2c-mt65xx.txt | 1 + drivers/i2c/busses/i2c-mt65xx.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+)
--
2.18.0
PATCH 1/2 dt-bindings: i2c: update bindings for MT8186 SoC
Add a DT binding documentation for the MT8186 soc.
Signed-off-by Kewei Xu <[email protected]>
--- Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt +1 -0
@@ -14,6 +14,7 @@ Required properties: "mediatek,mt7629-i2c", "mediatek,mt2712-i2c": for MediaTek MT7629 "mediatek,mt8173-i2c": for MediaTek MT8173 "mediatek,mt8183-i2c": for MediaTek MT8183 + "mediatek,mt8186-i2c": for MediaTek MT8186 "mediatek,mt8192-i2c": for MediaTek MT8192 "mediatek,mt8195-i2c", "mediatek,mt8192-i2c": for MediaTek MT8195 "mediatek,mt8516-i2c", "mediatek,mt2712-i2c": for MediaTek MT8516
Signature · 1 line
2.25.1
PATCH 2/2 i2c: mediatek: Add i2c compatible for Mediatek MT8186
In reply to Kewei XuAdd i2c compatible for MT8186. Compare to MT8192 i2c controller, MT8186 doesn't need handshake signal witch apdma.
Signed-off-by Kewei Xu <[email protected]>
--- drivers/i2c/busses/i2c-mt65xx.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
drivers/i2c/busses/i2c-mt65xx.c +14 -0
@@ -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 }, {} };
Signature · 1 line
2.25.1
Re: [PATCH 1/2] dt-bindings: i2c: update bindings for MT8186 SoC
In reply to Kewei XuQuoted 7 lines · Kewei Xu
Add a DT binding documentation for the MT8186 soc.
Signed-off-by Kewei Xu <[email protected]>--- Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt | 1 + 1 file changed, 1 insertion(+)
Acked-by Rob Herring <[email protected]>