xref: /linux/Documentation/devicetree/bindings/iio/adc/ti,lmp92064.yaml (revision 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e)
1*51f3e969SLeonard Göhrs# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*51f3e969SLeonard Göhrs%YAML 1.2
3*51f3e969SLeonard Göhrs---
4*51f3e969SLeonard Göhrs$id: http://devicetree.org/schemas/iio/adc/ti,lmp92064.yaml#
5*51f3e969SLeonard Göhrs$schema: http://devicetree.org/meta-schemas/core.yaml#
6*51f3e969SLeonard Göhrs
7*51f3e969SLeonard Göhrstitle: Texas Instruments LMP92064 Precision Current and Voltage Sensor.
8*51f3e969SLeonard Göhrs
9*51f3e969SLeonard Göhrsmaintainers:
10*51f3e969SLeonard Göhrs  - Leonard Göhrs <l.goehrs@pengutronix.de>
11*51f3e969SLeonard Göhrs
12*51f3e969SLeonard Göhrsdescription: |
13*51f3e969SLeonard Göhrs  The LMP92064 is a two channel ADC intended for combined voltage and current
14*51f3e969SLeonard Göhrs  measurements.
15*51f3e969SLeonard Göhrs
16*51f3e969SLeonard Göhrs  The device contains two ADCs to allow simultaneous sampling of voltage and
17*51f3e969SLeonard Göhrs  current and thus of instantaneous power consumption.
18*51f3e969SLeonard Göhrs
19*51f3e969SLeonard Göhrsproperties:
20*51f3e969SLeonard Göhrs  compatible:
21*51f3e969SLeonard Göhrs    enum:
22*51f3e969SLeonard Göhrs      - ti,lmp92064
23*51f3e969SLeonard Göhrs
24*51f3e969SLeonard Göhrs  reg:
25*51f3e969SLeonard Göhrs    maxItems: 1
26*51f3e969SLeonard Göhrs
27*51f3e969SLeonard Göhrs  vdd-supply:
28*51f3e969SLeonard Göhrs    description: Regulator that provides power to the main part of the chip
29*51f3e969SLeonard Göhrs
30*51f3e969SLeonard Göhrs  vdig-supply:
31*51f3e969SLeonard Göhrs    description: |
32*51f3e969SLeonard Göhrs      Regulator that provides power to the digital I/O part of the chip
33*51f3e969SLeonard Göhrs
34*51f3e969SLeonard Göhrs  shunt-resistor-micro-ohms:
35*51f3e969SLeonard Göhrs    description: |
36*51f3e969SLeonard Göhrs      Value of the shunt resistor (in µΩ) connected between INCP and INCN,
37*51f3e969SLeonard Göhrs      across which current is measured. Used to provide correct scaling of the
38*51f3e969SLeonard Göhrs      raw ADC measurement.
39*51f3e969SLeonard Göhrs
40*51f3e969SLeonard Göhrs  reset-gpios:
41*51f3e969SLeonard Göhrs    maxItems: 1
42*51f3e969SLeonard Göhrs
43*51f3e969SLeonard Göhrsrequired:
44*51f3e969SLeonard Göhrs  - compatible
45*51f3e969SLeonard Göhrs  - reg
46*51f3e969SLeonard Göhrs  - shunt-resistor-micro-ohms
47*51f3e969SLeonard Göhrs
48*51f3e969SLeonard GöhrsallOf:
49*51f3e969SLeonard Göhrs  - $ref: /schemas/spi/spi-peripheral-props.yaml#
50*51f3e969SLeonard Göhrs
51*51f3e969SLeonard GöhrsunevaluatedProperties: false
52*51f3e969SLeonard Göhrs
53*51f3e969SLeonard Göhrsexamples:
54*51f3e969SLeonard Göhrs  - |
55*51f3e969SLeonard Göhrs    #include <dt-bindings/gpio/gpio.h>
56*51f3e969SLeonard Göhrs    spi {
57*51f3e969SLeonard Göhrs        #address-cells = <1>;
58*51f3e969SLeonard Göhrs        #size-cells = <0>;
59*51f3e969SLeonard Göhrs
60*51f3e969SLeonard Göhrs        adc@0 {
61*51f3e969SLeonard Göhrs            compatible = "ti,lmp92064";
62*51f3e969SLeonard Göhrs            reg = <0>;
63*51f3e969SLeonard Göhrs            vdd-supply = <&vdd>;
64*51f3e969SLeonard Göhrs            vdig-supply = <&vdd>;
65*51f3e969SLeonard Göhrs            spi-max-frequency = <20000000>;
66*51f3e969SLeonard Göhrs            shunt-resistor-micro-ohms = <15000>;
67*51f3e969SLeonard Göhrs            reset-gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
68*51f3e969SLeonard Göhrs        };
69*51f3e969SLeonard Göhrs    };
70*51f3e969SLeonard Göhrs...
71