summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorDimitri Fedrau <dima.fedrau@gmail.com>2024-06-04 15:36:39 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-06-13 19:19:25 +0100
commitdea750f8015b514923e57c0a992e8d5db41efbb4 (patch)
tree4d90b7bb0087dd96616b785b6a52da9e62bbcc26 /tools/perf/scripts/python/export-to-postgresql.py
parent8af8d75e9f829fdd247c15145966e0a5c64668b6 (diff)
iio: temperature: mcp9600: add threshold events support
The device has four programmable temperature alert outputs which can be used to monitor hot or cold-junction temperatures and detect falling and rising temperatures. It supports up to 255 degree celsius programmable hysteresis. Each alert can be individually configured by setting following options in the associated alert configuration register: - monitor hot or cold junction temperature - monitor rising or falling temperature - set comparator or interrupt mode - set output polarity - enable alert This patch binds alert outputs to iio events: - alert1: hot junction, rising temperature - alert2: hot junction, falling temperature - alert3: cold junction, rising temperature - alert4: cold junction, falling temperature All outputs are set in comparator mode and polarity depends on interrupt configuration. Signed-off-by: Dimitri Fedrau <dima.fedrau@gmail.com> Link: https://lore.kernel.org/r/20240604133639.959682-1-dima.fedrau@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions