xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/adc/maxim,max9611.yaml (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*4882a593Smuzhiyun%YAML 1.2
3*4882a593Smuzhiyun---
4*4882a593Smuzhiyun$id: http://devicetree.org/schemas/iio/adc/maxim,max9611.yaml#
5*4882a593Smuzhiyun$schema: http://devicetree.org/meta-schemas/core.yaml#
6*4882a593Smuzhiyun
7*4882a593Smuzhiyuntitle: Maxim MAX9611 and similar current sense amplifiers with integrated ADCs
8*4882a593Smuzhiyun
9*4882a593Smuzhiyunmaintainers:
10*4882a593Smuzhiyun  - Jacopo Mondi <jacopo@jmondi.org>
11*4882a593Smuzhiyun
12*4882a593Smuzhiyundescription: |
13*4882a593Smuzhiyun   These devices combine a high-side current sense amplifier with a 12 bit ADC.
14*4882a593Smuzhiyun   They have an i2c interface.
15*4882a593Smuzhiyun
16*4882a593Smuzhiyunproperties:
17*4882a593Smuzhiyun  compatible:
18*4882a593Smuzhiyun    enum:
19*4882a593Smuzhiyun      - maxim,max9611
20*4882a593Smuzhiyun      - maxim,max9612
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun  reg:
23*4882a593Smuzhiyun    maxItems: 1
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun  shunt-resistor-micro-ohms:
26*4882a593Smuzhiyun    $ref: /schemas/types.yaml#/definitions/uint32
27*4882a593Smuzhiyun    description: |
28*4882a593Smuzhiyun      Value in micro Ohms of the shunt resistor connected between the RS+ and
29*4882a593Smuzhiyun      RS- inputs, across which the current is measured.  Value needed to compute
30*4882a593Smuzhiyun      the scaling of the measured current.
31*4882a593Smuzhiyun
32*4882a593SmuzhiyunadditionalProperties: false
33*4882a593Smuzhiyun
34*4882a593Smuzhiyunrequired:
35*4882a593Smuzhiyun  - compatible
36*4882a593Smuzhiyun  - reg
37*4882a593Smuzhiyun  - shunt-resistor-micro-ohms
38*4882a593Smuzhiyun
39*4882a593Smuzhiyunexamples:
40*4882a593Smuzhiyun  - |
41*4882a593Smuzhiyun    i2c {
42*4882a593Smuzhiyun        #address-cells = <1>;
43*4882a593Smuzhiyun        #size-cells = <0>;
44*4882a593Smuzhiyun
45*4882a593Smuzhiyun        adc@7c {
46*4882a593Smuzhiyun            compatible = "maxim,max9611";
47*4882a593Smuzhiyun            reg = <0x7c>;
48*4882a593Smuzhiyun            shunt-resistor-micro-ohms = <5000>;
49*4882a593Smuzhiyun        };
50*4882a593Smuzhiyun    };
51*4882a593Smuzhiyun...
52