Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2076360ybd; Thu, 27 Jun 2019 06:24:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqzt73dIOFS8UwTJCe8OBoMyFYtX5r/sAgWrIANFD7QEILJ/aYESeU4MEfluxjFxoEZVAQxO X-Received: by 2002:a17:902:778d:: with SMTP id o13mr4773464pll.82.1561641841881; Thu, 27 Jun 2019 06:24:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561641841; cv=none; d=google.com; s=arc-20160816; b=QfxQNpUA8Yttr24zy80o8GAEU6LmgfBGktQQ6YxtliD0jTUqWX5KTgca3OZSxMmXfR mCGO2peHrxnTngOOHB02+mod5EursPMEgCRxhIWg0r3yZwmUF1eTNWoAXTBvnID2uhOp Euf6pZqmEhyI2nz7C52iRzu04vXGiOYUKLU1Iesw4ifs/Kt+yM8BCNNVFjoCgWHUywBI lV9Nw4uYuO9t6bl4yyCZ4ap5DlhtECLoK1F/78hmKrIwkfapOEJb2YnnHAsh7bvFQeju JIN1q5sMtcdqk4I9Hi35pqRIeznDXBK3U4Y3ABI5gY16+3pwqnPGyf0cuBmzcK9ySD/V myug== 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=NgnQXRR6/fXQH7Qz7Cs+Zm9+QOrt+KvplMfZNarFrzQ=; b=dXaItKD8bOS/buq1Nhhhjpbhte7k9UCHI7WSuvke+7tpgQTikmS12TI1gxeqq+1+m5 f2NyObNky4FAaLD90gpOmH9R2Z1EKyB+WgxCZCRIVFjIw3a6hbH60RIuXONgf6E9aFpz 2lMvJoh0O02izPHJLwcFmKR/vxb8tCHsUq9FwhneOpGUsI4ADoIlPKAi6pKrv+LJtqeI PtOssJI/cwreBjzJLkitWyFJrgQ9SfotS97lxP5vP04zaRA29DTS6P+hvYeI+WF/abnn RhP3nEet4YXNNs7iKUkcvcq5yIwOWx8mgtI8AtYk6tYZ0aM9T750rUhI7SGpFLJH85Ac 4nXA== 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 j3si5046547pjt.79.2019.06.27.06.23.45; Thu, 27 Jun 2019 06:24:01 -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 S1726785AbfF0NWO (ORCPT + 99 others); Thu, 27 Jun 2019 09:22:14 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:51571 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726059AbfF0NWO (ORCPT ); Thu, 27 Jun 2019 09:22:14 -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 relay5-d.mail.gandi.net (Postfix) with ESMTPSA id BD3BD1C0011; Thu, 27 Jun 2019 13:22:00 +0000 (UTC) Date: Thu, 27 Jun 2019 15:22:00 +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 Subject: Re: I2C filtering (was Re: [PATCH v2 6/9] dt-bindings: i2c: at91: add binding for enable-ana-filt) Message-ID: <20190627132200.GK3692@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190625095533.GC1688@kunai> 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 25/06/2019 11:55:33+0200, Wolfram Sang wrote: > On Tue, Jun 25, 2019 at 11:31:56AM +0200, Alexandre Belloni wrote: > > On 25/06/2019 09:14:13+0000, Eugen.Hristev@microchip.com wrote: > > > > Perhaps > > > > > > > > microchip,digital-filter; > > > > microchip,analog-filter; > > > > > > > > ? > > > > > > Hi Peter, > > > > > > Thanks for reviewing. The name of the property does not matter much to > > > me, and we have properties prefixed with vendor, and some are not. > > > > > > @Alexandre Belloni: which name you think it's best ? > > > > > > > I'm not sure, it depends on whether Wolfram thinks it is generic enough > > to be used without a vendor prefix. > > I could imagine that we design a generic property for filters. The ones > above make me wonder, though, because they are bool. I'd think you can > configure the filters in some way, too? > Apart from enabling the filter there is indeed one configuration setting, the maximum pulse width of spikes to be suppressed by the input filter. > I never used such filtering, so I am unaware of the parameters needed / > suitable. Quick grepping through I2C master drivers reveals that > i2c-stm32f7.c also handles filters, but only with default values. Maybe > DT configuration would be benefitial to that driver, too? > > Adding some people to CC. > -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com