Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3360355rwb; Sun, 9 Oct 2022 03:54:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM77z5O8aDz4srdNNfKB68BS1O+S7895GHMZClN3HCAj1xS0teL6J2EkNAkJQx2JSbe/l9Dv X-Received: by 2002:a17:906:c153:b0:787:abca:d9fa with SMTP id dp19-20020a170906c15300b00787abcad9famr10600712ejc.768.1665312860957; Sun, 09 Oct 2022 03:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665312860; cv=none; d=google.com; s=arc-20160816; b=d4Vfqz12pLWZO8VmcKNROQj/JGZ8LdXkN9mlg6v4aK1I4rrv7fFcdzwTxuhUr5dE8B gySXVzC5wv2KF9soTd2+hcKvLMXFjalCINgdBTqHKdxNc2MSkb6bc0vJ7F/ZyQyAXDGx 4NKUSbiyd6LWxI9XuWK8+qcm3WI0iPbAwnQt2wrzaknm1A3NN1GgOCOM8uCx7mk3are9 Fc0Y3yPpz/Srkrnuy2mFts5K3fBhrE1MT/thsECkOYoPJ0Tg5JO5xuS9ZjQHcQMbu/G/ vlLEkY2hB1q00r9IaXwdJc1qhetYQG4rCNS0hqSh7zuMo+qtq8OoOUsSGjUszifiqISB 4+nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UvX5JZ3bRps1L5sLKCfsTQTlmDO/mXO5YN2RtdaxIBM=; b=X0FrbRIbqhIX0TAp8FT1b6ohTr5uoFEidWYm6pRIfy/Tk/VFoB+yZLdBgCwKa7Srby OBQFgFZ4Dpw8nUwZ1g1GMsLZk4bd1+GrDA0g4GznOzp+lsgD+TxnYF6DASBsyDPcoKdQ 3W9SDcgJgDXtUM0C3fZ3DuzrYziCAK1Up3nKbHBUUzWSzmPhfd2/YeVhr4xcKjS1N0M8 td4vJI86nOmcZQK9KjV3rMbxeR3LKF3BBDsrFyPchb3KoY3mMe8qzqLJmqTYhR5rCJiN 1jHOAJJdGGoxIKebH2G0umEnHd8qUCQX62Oi3tZYMWXRYXWl9epxtM0KAW7m50e5YOOS 283A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=MOdHhfKX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hg4-20020a1709072cc400b007808a356cb9si7130422ejc.627.2022.10.09.03.53.54; Sun, 09 Oct 2022 03:54:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=MOdHhfKX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229965AbiJIKQt (ORCPT + 99 others); Sun, 9 Oct 2022 06:16:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbiJIKQo (ORCPT ); Sun, 9 Oct 2022 06:16:44 -0400 Received: from mxout2.routing.net (mxout2.routing.net [IPv6:2a03:2900:1:a::b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A029514029; Sun, 9 Oct 2022 03:16:42 -0700 (PDT) Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout2.routing.net (Postfix) with ESMTP id 0F4C25FF91; Sun, 9 Oct 2022 10:16:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1665310601; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UvX5JZ3bRps1L5sLKCfsTQTlmDO/mXO5YN2RtdaxIBM=; b=MOdHhfKXcvq4XKXfTBYUtQIVY8JT5DNuGCzThIZ4oxr311CtMPUbYozvXeGiWbpVX/01dF iYHVXAWanNasveWEuBgthHPS5D73E2LQJgKaGA+mT+7a9bQv50gBET3+8A9/yaAHYJiQAb QsePUUY3LBmUHTm2krLE2XgpbhzA41Q= Received: from frank-G5.. (fttx-pool-217.61.145.235.bambit.de [217.61.145.235]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id 646791005FA; Sun, 9 Oct 2022 10:16:40 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Qii Wang , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] i2c: mediatek: add mt7986 support Date: Sun, 9 Oct 2022 12:16:31 +0200 Message-Id: <20221009101631.82380-3-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221009101631.82380-1-linux@fw-web.de> References: <20221009101631.82380-1-linux@fw-web.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: a3c6661a-5cf1-4138-9773-e2eb642628db X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Frank Wunderlich Add i2c support for MT7986 SoC. Signed-off-by: Frank Wunderlich --- 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 fc7bfd98156b..d80e59340d97 100644 --- a/drivers/i2c/busses/i2c-mt65xx.c +++ b/drivers/i2c/busses/i2c-mt65xx.c @@ -431,6 +431,19 @@ static const struct mtk_i2c_compatible mt8168_compat = { .max_dma_support = 33, }; +static const struct mtk_i2c_compatible mt7986_compat = { + .quirks = &mt7622_i2c_quirks, + .regs = mt_i2c_regs_v1, + .pmic_i2c = 0, + .dcm = 1, + .auto_restart = 1, + .aux_len_reg = 1, + .timing_adjust = 0, + .dma_sync = 1, + .ltiming_adjust = 0, + .max_dma_support = 32, +}; + static const struct mtk_i2c_compatible mt8173_compat = { .regs = mt_i2c_regs_v1, .pmic_i2c = 0, @@ -503,6 +516,7 @@ static const struct of_device_id mtk_i2c_of_match[] = { { .compatible = "mediatek,mt6577-i2c", .data = &mt6577_compat }, { .compatible = "mediatek,mt6589-i2c", .data = &mt6589_compat }, { .compatible = "mediatek,mt7622-i2c", .data = &mt7622_compat }, + { .compatible = "mediatek,mt7986-i2c", .data = &mt7986_compat }, { .compatible = "mediatek,mt8168-i2c", .data = &mt8168_compat }, { .compatible = "mediatek,mt8173-i2c", .data = &mt8173_compat }, { .compatible = "mediatek,mt8183-i2c", .data = &mt8183_compat }, -- 2.34.1