Re: I2C filtering (was Re: [PATCH v2 6/9] dt-bindings: i2c: at91: add binding for enable-ana-filt)
From: Alexandre Belloni
Date: Thu Jun 27 2019 - 09:39:44 EST
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