Current Sense Amplifier

Schema identifier ($id): "http://devicetree.org/schemas/iio/afe/current-sense-amplifier.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Peter Rosin <peda@axentia.se>"

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "current-sense-amplifier"

io-channels — required here #

Maximum number of items (maxItems): 1

Channel node of a voltage io-channel.

#io-channel-cells — not listed as required here #

Exact value (const): 0

sense-resistor-micro-ohms — required here #

The sense resistance.

sense-gain-mult — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Amplifier gain multiplier. The default is <1>.

sense-gain-div — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Amplifier gain divider. The default is <1>.

Required in this object (required): "compatible", "io-channels", "sense-resistor-micro-ohms"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

sysi {
    compatible = "current-sense-amplifier";
    #io-channel-cells = <0>;
    io-channels = <&tiadc 0>;

    sense-resistor-micro-ohms = <20000>;
    sense-gain-mult = <50>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Edit this page