From nobody Sat Sep 21 03:08:41 2024 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1248FC7618B for ; Tue, 14 Mar 2023 01:21:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230156AbjCNBUG (ORCPT ); Mon, 13 Mar 2023 21:20:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230139AbjCNBUD (ORCPT ); Mon, 13 Mar 2023 21:20:03 -0400 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D8F05B5C3; Mon, 13 Mar 2023 18:20:02 -0700 (PDT) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1pbtKa-0005iW-2f; Tue, 14 Mar 2023 02:20:01 +0100 Date: Tue, 14 Mar 2023 01:18:24 +0000 From: Daniel Golle To: linux-i2c@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Qii Wang , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno Subject: [PATCH 1/2] i2c: mediatek: add support for MT7981 SoC Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Signed-off-by: Daniel Golle --- drivers/i2c/busses/i2c-mt65xx.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/i2c/busses/i2c-mt65xx.c b/drivers/i2c/busses/i2c-mt65x= x.c index 43dd966d5ef5..54cabd366403 100644 --- a/drivers/i2c/busses/i2c-mt65xx.c +++ b/drivers/i2c/busses/i2c-mt65xx.c @@ -431,6 +431,18 @@ static const struct mtk_i2c_compatible mt8168_compat = =3D { .max_dma_support =3D 33, }; =20 +static const struct mtk_i2c_compatible mt7981_compat =3D { + .regs =3D mt_i2c_regs_v3, + .pmic_i2c =3D 0, + .dcm =3D 0, + .auto_restart =3D 1, + .aux_len_reg =3D 1, + .timing_adjust =3D 1, + .dma_sync =3D 1, + .ltiming_adjust =3D 1, + .max_dma_support =3D 33 +}; + static const struct mtk_i2c_compatible mt7986_compat =3D { .quirks =3D &mt7622_i2c_quirks, .regs =3D mt_i2c_regs_v1, @@ -516,6 +528,7 @@ static const struct of_device_id mtk_i2c_of_match[] =3D= { { .compatible =3D "mediatek,mt6577-i2c", .data =3D &mt6577_compat }, { .compatible =3D "mediatek,mt6589-i2c", .data =3D &mt6589_compat }, { .compatible =3D "mediatek,mt7622-i2c", .data =3D &mt7622_compat }, + { .compatible =3D "mediatek,mt7981-i2c", .data =3D &mt7981_compat }, { .compatible =3D "mediatek,mt7986-i2c", .data =3D &mt7986_compat }, { .compatible =3D "mediatek,mt8168-i2c", .data =3D &mt8168_compat }, { .compatible =3D "mediatek,mt8173-i2c", .data =3D &mt8173_compat }, --=20 2.39.2