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