Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp666392ybe; Mon, 2 Sep 2019 07:24:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyhDn7bhzXpcpYh1wJKK3Z0CrZbKmnWdg3Dt4N03gofeuuCleOejkyA9hD2zWBnvNUzt5ii X-Received: by 2002:a17:902:326:: with SMTP id 35mr2936118pld.128.1567434287913; Mon, 02 Sep 2019 07:24:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567434287; cv=none; d=google.com; s=arc-20160816; b=apN/LJXDOJo3qbXklWTgtHI4eMnBaO+we/7hcLVxBGQRZRJzpmUYfuJh2ei3NTirGx ID45D269qvfbyo+/V1rQydwKdruImH8DR4OZTglpsAyFIW4eRsj/cqQqUH5DWPgnXKMI g4h7/nc9fmhrbM/zf45b8z+QD4tUjSC3LKtdKhm4RV54Aac1pIdhaKvP6LqrTbIfUsR8 OODI9d3R1qXO9tM1lwJFKlb3cr1MbVmUx3FlPT+Up/Tu4NLJFcI92NLaCnCx6YeMOxTt Mtwc7MUVx5+yuN1vU0W9E7f+VAya1jEHkra7qyt2rpT1SUgwmk8xT68Z3Z8Ihvg64eyO mEmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=4Ff8roop/OTcUSr43+lVnkNCB0H3toygH4O8futU2Yc=; b=D7qX6JCkTPdBaV8hVCIUTGjGbPugXsXFgXuf/TOt+nhzC8ncyBAnurXSvIOMVe+5ej r4IC0DUGZ2zd5wmn0zOZGNXyk0v6Q3NSKymVP1YDKZbUHJgKq5/Uixnb72xkQodj0R2J blUTB6CmGfR8HRPta7AAkBcnZy4tfnJgOdLC2dnQoQn78NBNwkiXpLqHbC2avtLclAZP zrpag3z+S7WOirsrJLUHhZYg3VRYl5m9RccJtEzykQuxzgXU5vFWm1hEettsr/B2DuIi qJEhF1ByFR2TSx5WqoCNlPD9oe7pMCEL4i7B3fRCEfNgloUAau9mVxm817h4Vb0DjkME T17A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si11848525pgu.504.2019.09.02.07.24.31; Mon, 02 Sep 2019 07:24:47 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731468AbfIBOW6 (ORCPT + 99 others); Mon, 2 Sep 2019 10:22:58 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:49011 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726436AbfIBOW6 (ORCPT ); Mon, 2 Sep 2019 10:22:58 -0400 X-Originating-IP: 86.207.98.53 Received: from localhost (aclermont-ferrand-651-1-259-53.w86-207.abo.wanadoo.fr [86.207.98.53]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 92B5A6000A; Mon, 2 Sep 2019 14:22:54 +0000 (UTC) Date: Mon, 2 Sep 2019 16:22:51 +0200 From: Alexandre Belloni To: Eugen.Hristev@microchip.com Cc: peda@axentia.se, wsa@the-dreams.de, mark.rutland@arm.com, Ludovic.Desroches@microchip.com, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, pierre-yves.mordret@st.com, robh+dt@kernel.org Subject: Re: [PATCH v4 2/9] dt-bindings: i2c: add bindings for i2c analog and digital filter Message-ID: <20190902142251.GC21922@piout.net> References: <1567418773-2427-1-git-send-email-eugen.hristev@microchip.com> <1567418773-2427-3-git-send-email-eugen.hristev@microchip.com> <9a9c209c-2fb8-0a4c-4e0a-b04fefda3360@axentia.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Eugen, On 02/09/2019 14:15:14+0000, Eugen.Hristev@microchip.com wrote: > On 02.09.2019 13:49, Peter Rosin wrote: > > > On 2019-09-02 12:12, Eugen.Hristev@microchip.com wrote: > >> From: Eugen Hristev > >> > >> Some i2c controllers have a built-in digital or analog filter. > >> This is specifically required depending on the hardware PCB/board. > >> Some controllers also allow specifying the maximum width of the > >> spikes that can be filtered. The width length can be specified in nanoseconds. > >> > >> Signed-off-by: Eugen Hristev > >> --- > >> Documentation/devicetree/bindings/i2c/i2c.txt | 11 +++++++++++ > >> 1 file changed, 11 insertions(+) > >> > >> diff --git a/Documentation/devicetree/bindings/i2c/i2c.txt b/Documentation/devicetree/bindings/i2c/i2c.txt > >> index 44efafd..8dbff67 100644 > >> --- a/Documentation/devicetree/bindings/i2c/i2c.txt > >> +++ b/Documentation/devicetree/bindings/i2c/i2c.txt > >> @@ -55,6 +55,17 @@ wants to support one of the below features, it should adapt the bindings below. > >> Number of nanoseconds the SDA signal takes to fall; t(f) in the I2C > >> specification. > >> > >> +- i2c-analog-filter > >> + Enable analog filter for i2c lines. > >> + > >> +- i2c-digital-filter > >> + Enable digital filter for i2c lines. > >> + > >> +- i2c-filter-width-ns > >> + Width of spikes which can be filtered by either digital or analog > >> + filters (i2c-analog-filtr or i2c-digital-filtr). This width is specified > > > > filtr -> filter (two instances) > > > > What if you want/need to have different bandwidth for the digital and analog > > filters? After all, this is a generic binding... > > For our needs, this is enough: the purpose of the filters is to avoid > noise on the lines, the noise is as big as it is for the digital and for > the analog filters, since we use an absolute measurement for them. So I > do not know how useful it would be to make a difference. > You are adding generic properties so they have to be generic and not tied to your particular use case. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com