Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4274961pxb; Tue, 25 Jan 2022 07:09:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJzJsz3GVlNqUdQlnRFJaheLKYSEatpbLBMRKxH2DkEQVy8dN0wCi5Sue2l/52lxuK2OeTqY X-Received: by 2002:a17:907:6e18:: with SMTP id sd24mr16833507ejc.649.1643123377401; Tue, 25 Jan 2022 07:09:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643123377; cv=none; d=google.com; s=arc-20160816; b=VuuTbIRQSAP8iioVnoFo6M5vO4uq7y2LQsfJsPMZkrsXisTi1311nD9KpdMVFEU3ZJ lLXYCzfaf00CKYxfdALvTgDMGb1DVkhrGM6vJrlKvIXqgseWdX7nFHM4QQONBDHo7yd5 Y5/Fiq/jZO/tIfO2gb9EsaoxG1ErYNC7XccUnJrQSRMg2DMadgkspzvHrdpTJfR+R1Pf vhiw66XInF1Qu/YdWyMwjwz/22hPJw9qPPYbRd14ESOMKRPqgVZ7EVpgr2j7Cr/Z/TYu f1pg+5Wr4aZ1w7L3+O7BH40B72DpQ8LcxbV2Lk0ZrtFQLAPzZjpY+cdr63yycEhmiIK1 9ueA== 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:date:cc:to:from:subject:message-id; bh=4GxkiUGYp40+B0Yagkz3Kn+tgqdSg5lxyeXbM0yLZAY=; b=JYmDtiCxos8L2yBzs3RPZiWaA7nMqEJkYzpNERFvxXZqiVzH9dUSExEgQJHqxoJAOU wsuJ9tsTn61l0+XM+aK4wCq6encLUlYeJKMMGWrYWAxJotzuSNBvU7XZSzH4ar5fXSpC lunW4sAmLHtNjPHrVqJBE/pCWL+8LGN2UAL5uaYBndVRgApm49VvCnbKEz/DFsPnGCYB m1ZC3KJaFzNUWpyhv3eaweEaqRPR2jDUb/GxWMS8EBp7O7OhJzIl0JZtYvpM8r3ZNeZy 4R8sy6RDWg+1fyrrODJ+3PNwgtgMwFFFEI9luUQ71Tyxor6RGtkT/4P3aUB47z/K22a0 Vp6A== 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 dd21si2948572ejc.444.2022.01.25.07.09.12; Tue, 25 Jan 2022 07:09:37 -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 S244811AbiAYLab (ORCPT + 99 others); Tue, 25 Jan 2022 06:30:31 -0500 Received: from mailgw01.mediatek.com ([60.244.123.138]:43820 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1350038AbiAYL1x (ORCPT ); Tue, 25 Jan 2022 06:27:53 -0500 X-UUID: edf386d34c224deeb3ea1836fa8b3444-20220125 X-UUID: edf386d34c224deeb3ea1836fa8b3444-20220125 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 2079363947; Tue, 25 Jan 2022 19:27:47 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) 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:27:45 +0800 Received: from mhfsdcap04 (10.17.3.154) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 25 Jan 2022 19:27:44 +0800 Message-ID: <1d9b53a22e307ca90cafbd6fe08fbae3c4c58531.camel@mediatek.com> Subject: Re: [v2 2/2] i2c: mediatek: Add i2c compatible for Mediatek MT8186 From: Qii Wang To: Kewei Xu , CC: , , , , , , , , , , , , , Date: Tue, 25 Jan 2022 19:27:44 +0800 In-Reply-To: <20220125110413.18988-3-kewei.xu@mediatek.com> References: <20220125110413.18988-1-kewei.xu@mediatek.com> <20220125110413.18988-3-kewei.xu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2022-01-25 at 19:04 +0800, Kewei Xu wrote: > Add i2c compatible for MT8186. Compare to MT8192 i2c controller, > MT8186 doesn't need handshake signal witch apdma. > > Signed-off-by: Kewei Xu Reviewed-by: Qii Wang > --- > 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 > }, > {} > };