Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2092656ybd; Thu, 27 Jun 2019 06:40:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYb9ntlWPR33KgVQs4ErlOG/CHS9gyilbMmFeSJuSrHTns40sCiQBEzb+40Ru8pugmJfaJ X-Received: by 2002:a17:902:2aa9:: with SMTP id j38mr4619226plb.206.1561642803909; Thu, 27 Jun 2019 06:40:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561642803; cv=none; d=google.com; s=arc-20160816; b=JvViwCYNN/yMTLG6W8sb32j8LzjkoGFuh3MOsU9x1qbkl7JGHs4O4CPCsPvpxCZwdg FK35yVLjCNH+pj9H0E8P+bbdcUdz8nWTssNdDqab5LRN5GE0K+7nQNEpqZIVKIYUS06l NyLWHN8rojxHJlOAxSUaR7CB0w/0RGfPBH/8vvrc+1Aw/248CC66tykGLOulCFatLWsz xiWXz147HRzgM7CCi3Qz4Wid7AoyT+GL1LZfWV/jcIIpDTVvxIghMGKdTtuKheE6yuvH PUfej9HQwObO8f+ky/9BdYHaORvGxHA9PraBj6+Pya9crHmTqK5woOjh70+3bXZxH3HI L4OA== 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=i0ADlbVRgpsTpRJvko2A77bZHHjYebF1425PkuTmFEk=; b=xfYIohDoPKf6PHSZQPH/EGxpygD4Bzkn2scJqXcinoOI9oeBsi9q/hswT9kyYy1Fmg KDkLhh7SrRhEaMt2CFCp8sTWuon9aRWfKuzfNeyOQpm8OtPS/4s4ygOJFQg3JqWzabYX LNLmJ4klJrYld/oJpLq17+BXukboCwhcP9JPmHNrjtkaZE19H9vpHwjVUmR0BXK2rnG8 GPzai9k0/HmrPZQjXRB3MuRlX4IhMUat5Kf4wBZCKseKYpwJRWeTit7gnG9/U6Ewyte4 fKwQ1aRPWUtSKKiTj4akdw18Ao61QAgkt/I0v8+d2iu9GWs+UKxFWTxBDGf6mnbMgDu9 dufA== 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 n9si5213461pjo.65.2019.06.27.06.39.47; Thu, 27 Jun 2019 06:40:03 -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 S1726589AbfF0Njm (ORCPT + 99 others); Thu, 27 Jun 2019 09:39:42 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:56719 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726370AbfF0Njm (ORCPT ); Thu, 27 Jun 2019 09:39:42 -0400 X-Originating-IP: 92.137.69.152 Received: from localhost (alyon-656-1-672-152.w92-137.abo.wanadoo.fr [92.137.69.152]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id AAFAF60018; Thu, 27 Jun 2019 13:39:33 +0000 (UTC) Date: Thu, 27 Jun 2019 15:39:32 +0200 From: Alexandre Belloni To: Wolfram Sang Cc: Eugen.Hristev@microchip.com, peda@axentia.se, robh+dt@kernel.org, mark.rutland@arm.com, Nicolas.Ferre@microchip.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, linux-stm32@st-md-mailman.stormreply.com, pierre-yves.mordret@st.com Subject: Re: I2C filtering (was Re: [PATCH v2 6/9] dt-bindings: i2c: at91: add binding for enable-ana-filt) Message-ID: <20190627133932.GL3692@piout.net> References: <1561449642-26956-1-git-send-email-eugen.hristev@microchip.com> <1561449642-26956-7-git-send-email-eugen.hristev@microchip.com> <4e81d3c9-25f3-ca6e-f2d5-17fad5905bb8@axentia.se> <84628b5e-bea7-7d91-f790-f3a2650040fa@microchip.com> <20190625093156.GF5690@piout.net> <20190625095533.GC1688@kunai> <20190627132200.GK3692@piout.net> <20190627133440.GA7158@ninjato> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190627133440.GA7158@ninjato> User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/06/2019 15:34:40+0200, Wolfram Sang wrote: > > > > Apart from enabling the filter there is indeed one configuration > > > setting, the maximum pulse width of spikes to be suppressed by the input > > > filter. > > Yup, this is what I anticipated. > > > This is a number 0 to 7 (3 bits) that represents the width of the spike > > in periph clock cycles. > > For a generic binding, we would need some time-value as a parameter and > convert it to clock cycles in the driver then, I'd think. > Yes, that is what I was going to suggest. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com