xref: /freebsd/sys/contrib/device-tree/Bindings/iio/afe/current-sense-amplifier.txt (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1Current Sense Amplifier
2=======================
3
4When an io-channel measures the output voltage from a current sense
5amplifier, the interesting measurement is almost always the current
6through 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};
27