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/dac/dpot-dac.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 DAC emulation using a digital potentiometer
    2 
    3 It is assumed that the dpot is used as a voltage divider between the
    4 current dpot wiper setting and the maximum resistance of the dpot. The
    5 divided voltage is provided by a vref regulator.
    6 
    7                   .------.
    8    .-----------.  |      |
    9    | vref      |--'    .---.
   10    | regulator |--.    |   |
   11    '-----------'  |    | d |
   12                   |    | p |
   13                   |    | o |  wiper
   14                   |    | t |<---------+
   15                   |    |   |
   16                   |    '---'       dac output voltage
   17                   |      |
   18                   '------+------------+
   19 
   20 Required properties:
   21 - compatible: Should be "dpot-dac"
   22 - vref-supply: The regulator supplying the voltage divider.
   23 - io-channels: Channel node of the dpot to be used for the voltage division.
   24 - io-channel-names: Should be "dpot".
   25 
   26 Example:
   27 
   28         &i2c {
   29                 dpot: mcp4651-503@28 {
   30                         compatible = "microchip,mcp4651-503";
   31                         reg = <0x28>;
   32                         #io-channel-cells = <1>;
   33                 };
   34         };
   35 
   36         dac {
   37                 compatible = "dpot-dac";
   38                 vref-supply = <&reg_3v3>;
   39                 io-channels = <&dpot 0>;
   40                 io-channel-names = "dpot";
   41         };

Cache object: 6bd057b8c8cb0ee27afec7a40eeffe64


[ 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.