Path: blob/master/Documentation/devicetree/bindings/iio/afe/current-sense-amplifier.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/afe/current-sense-amplifier.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Current Sense Amplifier78maintainers:9- Peter Rosin <peda@axentia.se>1011description: |12When an io-channel measures the output voltage from a current sense13amplifier, the interesting measurement is almost always the current14through the sense resistor, not the voltage output. This binding15describes such a current sense circuit.1617properties:18compatible:19const: current-sense-amplifier2021io-channels:22maxItems: 123description: |24Channel node of a voltage io-channel.2526sense-resistor-micro-ohms:27description: The sense resistance.2829sense-gain-mult:30$ref: /schemas/types.yaml#/definitions/uint3231description: Amplifier gain multiplier. The default is <1>.3233sense-gain-div:34$ref: /schemas/types.yaml#/definitions/uint3235description: Amplifier gain divider. The default is <1>.3637required:38- compatible39- io-channels40- sense-resistor-micro-ohms4142additionalProperties: false4344examples:45- |46sysi {47compatible = "current-sense-amplifier";48io-channels = <&tiadc 0>;4950sense-resistor-micro-ohms = <20000>;51sense-gain-mult = <50>;52};53...545556