Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: iio: document envelope-detector bindings

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

authored by

Peter Rosin and committed by
Jonathan Cameron
e778aa14 7fde1484

+60
+54
Documentation/devicetree/bindings/iio/adc/envelope-detector.txt
··· 1 + Bindings for ADC envelope detector using a DAC and a comparator 2 + 3 + The DAC is used to find the peak level of an alternating voltage input 4 + signal by a binary search using the output of a comparator wired to 5 + an interrupt pin. Like so: 6 + _ 7 + | \ 8 + input +------>-------|+ \ 9 + | \ 10 + .-------. | }---. 11 + | | | / | 12 + | dac|-->--|- / | 13 + | | |_/ | 14 + | | | 15 + | | | 16 + | irq|------<-------' 17 + | | 18 + '-------' 19 + 20 + Required properties: 21 + - compatible: Should be "axentia,tse850-envelope-detector" 22 + - io-channels: Channel node of the dac to be used for comparator input. 23 + - io-channel-names: Should be "dac". 24 + - interrupt specification for one client interrupt, 25 + see ../../interrupt-controller/interrupts.txt for details. 26 + - interrupt-names: Should be "comp". 27 + 28 + Example: 29 + 30 + &i2c { 31 + dpot: mcp4651-104@28 { 32 + compatible = "microchip,mcp4651-104"; 33 + reg = <0x28>; 34 + #io-channel-cells = <1>; 35 + }; 36 + }; 37 + 38 + dac: dac { 39 + compatible = "dpot-dac"; 40 + vref-supply = <&reg_3v3>; 41 + io-channels = <&dpot 0>; 42 + io-channel-names = "dpot"; 43 + #io-channel-cells = <1>; 44 + }; 45 + 46 + envelope-detector { 47 + compatible = "axentia,tse850-envelope-detector"; 48 + io-channels = <&dac 0>; 49 + io-channel-names = "dac"; 50 + 51 + interrupt-parent = <&gpio>; 52 + interrupts = <3 IRQ_TYPE_EDGE_FALLING>; 53 + interrupt-names = "comp"; 54 + };
+6
MAINTAINERS
··· 6127 6127 F: Documentation/devicetree/bindings/iio/dac/dpot-dac.txt 6128 6128 F: drivers/iio/dac/dpot-dac.c 6129 6129 6130 + IIO ENVELOPE DETECTOR 6131 + M: Peter Rosin <peda@axentia.se> 6132 + L: linux-iio@vger.kernel.org 6133 + S: Maintained 6134 + F: Documentation/devicetree/bindings/iio/adc/envelope-detector.txt 6135 + 6130 6136 IIO SUBSYSTEM AND DRIVERS 6131 6137 M: Jonathan Cameron <jic23@kernel.org> 6132 6138 R: Hartmut Knaack <knaack.h@gmx.de>