Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp851745ybi; Wed, 17 Jul 2019 05:57:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwuQzl19MxJJ+2+aVS/Dq/PxBWWxf+5PjM7IHsqsG67qDHXk7LUhVprs41wlLoXf8hJvKzw X-Received: by 2002:a17:90a:1b4a:: with SMTP id q68mr43658259pjq.61.1563368268412; Wed, 17 Jul 2019 05:57:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563368268; cv=none; d=google.com; s=arc-20160816; b=o3+y99NKsvFtZNvbvIQng9fHwOfGkdE3ZgYr/L6N1hs3fV9kPI/TxbLMlHNJV45mzF cD+hURDTuT5CRbtUHqj/SkWIn8s0hRkevXBbriEzBgmkTyCv6rhtMsPRfFA4gvAUFDG0 s6tNjtGIdMtISkcyNdvBCFoBi1Ukrg9MQbIIphMZqWf1bR/UFo6sLqq+oW9EtsWnF6a4 +ka37mLlUAbI6UZO/wFLvxvb8BgBgijDVRZFj3kuuj3OkhN41UbhzV9oRmAkaXEsNLfx RW1vz3wv0i0MdIToRy0djxiDZnTjUkJHGxVvvNLrVADVBGF+Z41/EohSbyyLvMyr5QWh ssdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=fzFpG5BonImIFCTFNmlQc/nv78mAz6quOmQgOaexe78=; b=L6eLsZaFMpgHtTLTaj/ML2bo4bJN07YwmzOtZJc62ucOv1o7oseXWBLa+9wxwA/Qw+ 4bY+R5QRC2yhVuC/DhOa+QAscEEIk+I6vsndoTaCYT8LQOd/uuKowdiG+9Lvlyt6yme2 9vP6Nu+lw7VBYabQhMr/hy5xLIe79pr9oA7kkmEsPCsYAI3bh41D1U/rr+ivxwrNvP1t U2wpNX4cV1l8obkAe4lauoE/iWVpN4vqswYTLiLx6DltTxBKLuvesp0Bn5GfIZn4ttP4 aBFe7+y/RH8fI3K/aemLqvYyCLvjTNkk2+h2pqXUMfH1fBh/+QbUrv10QPv4yLCoy0/G 6XcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id m186si9933277pgm.423.2019.07.17.05.57.31; Wed, 17 Jul 2019 05:57:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727025AbfGQMzk (ORCPT + 99 others); Wed, 17 Jul 2019 08:55:40 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:64509 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725873AbfGQMzk (ORCPT ); Wed, 17 Jul 2019 08:55:40 -0400 X-UUID: e22df362dd87439ba66bb9b9ee25cbcf-20190717 X-UUID: e22df362dd87439ba66bb9b9ee25cbcf-20190717 Received: from mtkcas36.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1220891826; Wed, 17 Jul 2019 20:55:23 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS31N2.mediatek.inc (172.27.4.87) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 17 Jul 2019 20:55:21 +0800 Received: from [10.17.3.153] (172.27.4.253) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 17 Jul 2019 20:55:21 +0800 Message-ID: <1563368121.16970.7.camel@mhfsdcap03> Subject: Re: [PATCH 1/2] dt-bindings: i2c: Add MediaTek i2c AC timing binding From: Qii Wang To: Wolfram Sang CC: , , , , , , , , Date: Wed, 17 Jul 2019 20:55:21 +0800 In-Reply-To: <20190626133941.GL801@ninjato> References: <1560240715-22595-1-git-send-email-qii.wang@mediatek.com> <1560240715-22595-2-git-send-email-qii.wang@mediatek.com> <20190626133941.GL801@ninjato> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-SNTS-SMTP: B257EECAC12F9671783A098BEBB779091CBD86B878109E3D551FAA2FD10A1FD32000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-06-26 at 15:39 +0200, Wolfram Sang wrote: > Hi, > > On Tue, Jun 11, 2019 at 04:11:54PM +0800, Qii Wang wrote: > > Add i2c AC timing binding to binding file. It can give the AC > > timing parameters to meet I2C specification at different speed. > > > > Signed-off-by: Qii Wang > > I think this is a too specific 1:1 mapping of your register set into DT > world. We already have these generic parameters: > > - clock-frequency > frequency of bus clock in Hz. > > - i2c-scl-falling-time-ns > Number of nanoseconds the SCL signal takes to fall; t(f) in the I2C > specification. > > - i2c-scl-internal-delay-ns > Number of nanoseconds the IP core additionally needs to setup SCL. > > - i2c-scl-rising-time-ns > Number of nanoseconds the SCL signal takes to rise; t(r) in the I2C > specification. > > - i2c-sda-falling-time-ns > Number of nanoseconds the SDA signal takes to fall; t(f) in the I2C > specification. > > (check Documentation/devicetree/bindings/i2c/i2c.txt) > > Can't you use those to derive your values from that? Which ones are you missing > if not? > > Regards, > > Wolfram I have take a little time to develop a new patch which based on your suggestions, and it tested OK. Thanks for your suggestions, I will update the patch after I test it fully.