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/afe/current-sense-shunt.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 Current Sense Shunt
    2 ===================
    3 
    4 When an io-channel measures the voltage over a current sense shunt,
    5 the interesting measurement is almost always the current through the
    6 shunt, not the voltage over it. This binding describes such a current
    7 sense circuit.
    8 
    9 Required properties:
   10 - compatible : "current-sense-shunt"
   11 - io-channels : Channel node of a voltage io-channel.
   12 - shunt-resistor-micro-ohms : The shunt resistance in microohms.
   13 
   14 Example:
   15 The system current is measured by measuring the voltage over a
   16 3.3 ohms shunt resistor.
   17 
   18 sysi {
   19         compatible = "current-sense-shunt";
   20         io-channels = <&tiadc 0>;
   21 
   22         /* Divide the voltage by 3300000/1000000 (or 3.3) for the current. */
   23         shunt-resistor-micro-ohms = <3300000>;
   24 };
   25 
   26 &i2c {
   27         tiadc: adc@48 {
   28                 compatible = "ti,ads1015";
   29                 reg = <0x48>;
   30                 #io-channel-cells = <1>;
   31 
   32                 #address-cells = <1>;
   33                 #size-cells = <0>;
   34 
   35                 channel@0 { /* IN0,IN1 differential */
   36                         reg = <0>;
   37                         ti,gain = <1>;
   38                         ti,datarate = <4>;
   39                 };
   40         };
   41 };

Cache object: 054cbc9b21325182fa70626a1fb1ca2e


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