···11+Bindings for ADC envelope detector using a DAC and a comparator22+33+The DAC is used to find the peak level of an alternating voltage input44+signal by a binary search using the output of a comparator wired to55+an interrupt pin. Like so:66+ _77+ | \88+ input +------>-------|+ \99+ | \1010+ .-------. | }---.1111+ | | | / |1212+ | dac|-->--|- / |1313+ | | |_/ |1414+ | | |1515+ | | |1616+ | irq|------<-------'1717+ | |1818+ '-------'1919+2020+Required properties:2121+- compatible: Should be "axentia,tse850-envelope-detector"2222+- io-channels: Channel node of the dac to be used for comparator input.2323+- io-channel-names: Should be "dac".2424+- interrupt specification for one client interrupt,2525+ see ../../interrupt-controller/interrupts.txt for details.2626+- interrupt-names: Should be "comp".2727+2828+Example:2929+3030+ &i2c {3131+ dpot: mcp4651-104@28 {3232+ compatible = "microchip,mcp4651-104";3333+ reg = <0x28>;3434+ #io-channel-cells = <1>;3535+ };3636+ };3737+3838+ dac: dac {3939+ compatible = "dpot-dac";4040+ vref-supply = <®_3v3>;4141+ io-channels = <&dpot 0>;4242+ io-channel-names = "dpot";4343+ #io-channel-cells = <1>;4444+ };4545+4646+ envelope-detector {4747+ compatible = "axentia,tse850-envelope-detector";4848+ io-channels = <&dac 0>;4949+ io-channel-names = "dac";5050+5151+ interrupt-parent = <&gpio>;5252+ interrupts = <3 IRQ_TYPE_EDGE_FALLING>;5353+ interrupt-names = "comp";5454+ };
+6
MAINTAINERS
···61276127F: Documentation/devicetree/bindings/iio/dac/dpot-dac.txt61286128F: drivers/iio/dac/dpot-dac.c6129612961306130+IIO ENVELOPE DETECTOR61316131+M: Peter Rosin <peda@axentia.se>61326132+L: linux-iio@vger.kernel.org61336133+S: Maintained61346134+F: Documentation/devicetree/bindings/iio/adc/envelope-detector.txt61356135+61306136IIO SUBSYSTEM AND DRIVERS61316137M: Jonathan Cameron <jic23@kernel.org>61326138R: Hartmut Knaack <knaack.h@gmx.de>