Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4271483pxb; Tue, 25 Jan 2022 07:06:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJyEE8OTlLC9m+ybCA4E2S7WA92mVHW17Qxg2J3abacI+tWcJ+CgaVQGwibpWN0tsDxvBbBm X-Received: by 2002:a17:907:161f:: with SMTP id hb31mr1178683ejc.269.1643123184707; Tue, 25 Jan 2022 07:06:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643123184; cv=none; d=google.com; s=arc-20160816; b=c9cX6eiArRcwyG8+rADII2UvaOXlEIJPXG+gtz92BZTcc+a4g11mwqc/qzAd90Cdfk xDiLQZTiBtDw8baJPQ6fGmqR2p/zP8NdXJ3G+6WnnmLpjBBzb4xhQWmq9oZokYZGR836 bg19Sr6qk3RVaaOm7AUjHib61mYI4GQ9SDnMrRncEwHz0T2gMaYAsZdzMUDuGI6+6qHm btQCGBhhXZGDU5FysqIuIj1au3j9ZNd1e4MfYv0eZPuHjuJLX54qdKtsiDWVWI+NTxJc YN4DaHtfOkRV2zPMpq17+Tm6KKkBOu6yaZvB04ZfEoGfco+FyAx0oaFpxHCF+Et3y468 0VAA== 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; bh=UQjWS3D/9kTJEaJ6zIstWtxypCp0mzdEyJ4aC8go9h0=; b=Mu+CU0q5llkUJUqF0ChPQJIV8a9Y+npa7bOSvTXhS07W8FbK5yX+QLqnjsPQbUTm/d UwJM938Hp5Qxu6tZssS0SY8px326s/oACtyqZJ0rXniXJHU0wXl+vyDoVy9bHtcn+1EQ QnBJyggJP51pN0tvwDj0HTJMrTJ8tSTpUiWmDPiwu75GSiCwYGey85BYUonAkGSqTLwM tH36hT2P0cS9TShPOspMeWvJNDqBvjL/V3azb9eYFIrXtY9n/g468+y72VWoVlUxOFqN 8xbaKigjhSi4C4Ka3NJRB/wkmopo5BTFq45PkGonnSfLOrzcPK1oThUNhqlo0n7DWJ4V +IyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n7si10272201ejl.74.2022.01.25.07.05.59; Tue, 25 Jan 2022 07:06:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380377AbiAYLG7 (ORCPT + 99 others); Tue, 25 Jan 2022 06:06:59 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:57442 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1380213AbiAYLEa (ORCPT ); Tue, 25 Jan 2022 06:04:30 -0500 X-UUID: 44c4e2cd965545c9a9e4981e87aa50ee-20220125 X-UUID: 44c4e2cd965545c9a9e4981e87aa50ee-20220125 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1130697169; Tue, 25 Jan 2022 19:04:24 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Tue, 25 Jan 2022 19:04:22 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 25 Jan 2022 19:04:21 +0800 From: Kewei Xu To: CC: , , , , , , , , , , , , , , , Subject: [v2 2/2] i2c: mediatek: Add i2c compatible for Mediatek MT8186 Date: Tue, 25 Jan 2022 19:04:13 +0800 Message-ID: <20220125110413.18988-3-kewei.xu@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220125110413.18988-1-kewei.xu@mediatek.com> References: <20220125110413.18988-1-kewei.xu@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add i2c compatible for MT8186. Compare to MT8192 i2c controller, MT8186 doesn't need handshake signal witch apdma. Signed-off-by: Kewei Xu --- 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 9ea427f53083..aa4d21838e14 100644 --- a/drivers/i2c/busses/i2c-mt65xx.c +++ b/drivers/i2c/busses/i2c-mt65xx.c @@ -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 }, {} }; -- 2.25.1