[PATCH v5 2/2] i2c: mediatek: add i2c compatible for MT8188

Qii Wang qii.wang at mediatek.com
Sun Aug 7 18:44:24 PDT 2022


On Sat, 2022-08-06 at 18:02 +0800, kewei.xu at mediatek.com wrote:
> From: Kewei Xu <kewei.xu at mediatek.com>
> 
> Add i2c compatible for MT8188 and added mt_i2c_regs_v3[], since
> MT8188 i2c OFFSET_SLAVE_ADDR register changed from 0x04 to 0x94.
> 
> Signed-off-by: Kewei Xu <kewei.xu at mediatek.com>
> Reviewed-by: AngeloGioacchino Del Regno <
> angelogioacchino.delregno at collabora.com>

Reviewed-by: Qii Wang <qii.wang at mediatek.com>

> ---
> v5: modify the order of mt_i2c_regs_v3[] members and add Reviewed-by
> owner.
> v4: no changes
> V3: no changes
> V2: added mt_i2c_regs_v3[] to replace slave_addr_version.
> ---
>  drivers/i2c/busses/i2c-mt65xx.c | 43
> +++++++++++++++++++++++++++++++++
>  1 file changed, 43 insertions(+)
> 
> diff --git a/drivers/i2c/busses/i2c-mt65xx.c
> b/drivers/i2c/busses/i2c-mt65xx.c
> index 8e6985354fd5..bd8abba3d1c9 100644
> --- a/drivers/i2c/busses/i2c-mt65xx.c
> +++ b/drivers/i2c/busses/i2c-mt65xx.c
> @@ -229,6 +229,35 @@ static const u16 mt_i2c_regs_v2[] = {
>  	[OFFSET_DCM_EN] = 0xf88,
>  };
>  




More information about the Linux-mediatek mailing list