The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/Bindings/iio/adc/envelope-detector.txt

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    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         };

Cache object: 2e0c74663e47fc8f1c1bc3c1906ca20a


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.