Path: blob/master/Documentation/devicetree/bindings/iio/afe/current-sense-amplifier.yaml
29539 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.2526"#io-channel-cells":27const: 02829sense-resistor-micro-ohms:30description: The sense resistance.3132sense-gain-mult:33$ref: /schemas/types.yaml#/definitions/uint3234description: Amplifier gain multiplier. The default is <1>.3536sense-gain-div:37$ref: /schemas/types.yaml#/definitions/uint3238description: Amplifier gain divider. The default is <1>.3940required:41- compatible42- io-channels43- sense-resistor-micro-ohms4445additionalProperties: false4647examples:48- |49sysi {50compatible = "current-sense-amplifier";51#io-channel-cells = <0>;52io-channels = <&tiadc 0>;5354sense-resistor-micro-ohms = <20000>;55sense-gain-mult = <50>;56};57...585960