The latest development version of this page may be more current than this released 4.0.0 version.

current-sense-amplifier

Vendor: Generic or vendor-independent

Note

An implementation of a driver matching this compatible is available in drivers/sensor/current_amp/current_amp.c.

Description

When an io-channel measures the voltage over a current sense amplifier,
the interesting measurement is almost always the current through the
sense resistor, not the voltage over it. This binding describes such a current
sense circuit.

This is based on Linux, documentation:
  https://www.kernel.org/doc/Documentation/devicetree/bindings/iio/afe/current-sense-amplifier.yaml

Properties

Properties not inherited from the base binding file.

Name

Type

Details

sense-resistor-milli-ohms

int

Resistance of the shunt resistor in milli-ohms.

This property is required.

sense-gain-mult

int

Amplifier gain multiplier. The default is <1>. The maximum value is <65535>.

Default value: 1

sense-gain-div

int

Amplifier gain divider. The default is <1>. The maximum value is <65535>.

Default value: 1

power-gpios

phandle-array

Control power to the current amplifier.

If present the corresponding GPIO must be set to an active level
to enable the current amplifier.