]> asedeno.scripts.mit.edu Git - linux.git/commit
iio: envelope-detector: ADC driver based on a DAC and a comparator
authorPeter Rosin <peda@axentia.se>
Tue, 8 Nov 2016 11:58:58 +0000 (12:58 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 13 Nov 2016 13:07:17 +0000 (13:07 +0000)
commitb475f80b354a1915fda1b34070d712b825b60543
tree02777a8c1349ace429f1dfa3e58e15661fed1eb5
parente778aa142ab0666fa8af789a3bbabfb3334e6ff5
iio: envelope-detector: ADC driver based on a DAC and a comparator

The DAC is used to find the peak level of an alternating voltage input
signal by a binary search using the output of a comparator wired to
an interrupt pin. Like so:
                          _
                         | \
    input +------>-------|+ \
                         |   \
           .-------.     |    }---.
           |       |     |   /    |
           |    dac|-->--|- /     |
           |       |     |_/      |
           |       |              |
           |       |              |
           |    irq|------<-------'
           |       |
           '-------'

Signed-off-by: Peter Rosin <peda@axentia.se>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/ABI/testing/sysfs-bus-iio-adc-envelope-detector [new file with mode: 0644]
MAINTAINERS
drivers/iio/adc/Kconfig
drivers/iio/adc/Makefile
drivers/iio/adc/envelope-detector.c [new file with mode: 0644]