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