Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/afe/current-sense-amplifier.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Current Sense Amplifier
0008 
0009 maintainers:
0010   - Peter Rosin <peda@axentia.se>
0011 
0012 description: |
0013   When an io-channel measures the output voltage from a current sense
0014   amplifier, the interesting measurement is almost always the current
0015   through the sense resistor, not the voltage output. This binding
0016   describes such a current sense circuit.
0017 
0018 properties:
0019   compatible:
0020     const: current-sense-amplifier
0021 
0022   io-channels:
0023     maxItems: 1
0024     description: |
0025       Channel node of a voltage io-channel.
0026 
0027   sense-resistor-micro-ohms:
0028     description: The sense resistance.
0029 
0030   sense-gain-mult:
0031     $ref: /schemas/types.yaml#/definitions/uint32
0032     description: Amplifier gain multiplier. The default is <1>.
0033 
0034   sense-gain-div:
0035     $ref: /schemas/types.yaml#/definitions/uint32
0036     description: Amplifier gain divider. The default is <1>.
0037 
0038 required:
0039   - compatible
0040   - io-channels
0041   - sense-resistor-micro-ohms
0042 
0043 additionalProperties: false
0044 
0045 examples:
0046   - |
0047     sysi {
0048         compatible = "current-sense-amplifier";
0049         io-channels = <&tiadc 0>;
0050 
0051         sense-resistor-micro-ohms = <20000>;
0052         sense-gain-mult = <50>;
0053     };
0054 ...