blob: 821b61b8c542ff925e192b175efc5be0516de962 [file] [log] [blame]
Peter Rosin2e9a1282018-04-23 23:08:08 +02001Current Sense Amplifier
2=======================
3
4When an io-channel measures the output voltage from a current sense
Geert Uytterhoevenbed18952018-05-15 15:06:24 +02005amplifier, the interesting measurement is almost always the current
Peter Rosin2e9a1282018-04-23 23:08:08 +02006through the sense resistor, not the voltage output. This binding
7describes such a current sense circuit.
8
9Required properties:
10- compatible : "current-sense-amplifier"
11- io-channels : Channel node of a voltage io-channel.
12- sense-resistor-micro-ohms : The sense resistance in microohms.
13
14Optional properties:
15- sense-gain-mult: Amplifier gain multiplier. The default is <1>.
16- sense-gain-div: Amplifier gain divider. The default is <1>.
17
18Example:
19
20sysi {
21 compatible = "current-sense-amplifier";
22 io-channels = <&tiadc 0>;
23
24 sense-resistor-micro-ohms = <20000>;
25 sense-gain-mul = <50>;
26};