]> asedeno.scripts.mit.edu Git - linux.git/commit
i2c: add support for filters optional properties
authorEugen Hristev <eugen.hristev@microchip.com>
Wed, 23 Oct 2019 12:40:14 +0000 (12:40 +0000)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 24 Oct 2019 18:23:48 +0000 (20:23 +0200)
commitb84dfe1af54053e0aedb14cd26307859aa1df35f
treecdbdd867df919878d216efa1155e3f130f461fd2
parentb644257f0ec210a668f6cb24b675cb010a4ab542
i2c: add support for filters optional properties

i2c-digital-filter-width-ns:
This optional timing property specifies the width of the spikes on the i2c
lines (in ns) that can be filtered out by built-in digital filters which are
embedded in some i2c controllers.
i2c-analog-filter-cutoff-frequency:
This optional timing property specifies the cutoff frequency of a low-pass
analog filter built-in i2c controllers. This low pass filter is used to filter
out high frequency noise on the i2c lines. Specified in Hz.
Include these properties in the timings structure and read them as integers.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Reviewed-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core-base.c
include/linux/i2c.h