Texas Instruments LMP92064 Precision Current and Voltage Sensor.

Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,lmp92064.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Leonard Göhrs <l.goehrs@pengutronix.de>"

The LMP92064 is a two channel ADC intended for combined voltage and current measurements.

The device contains two ADCs to allow simultaneous sampling of voltage and current and thus of instantaneous power consumption.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,lmp92064"

reg — required here #

Maximum number of items (maxItems): 1

vdd-supply — not listed as required here #

Regulator that provides power to the main part of the chip

vdig-supply — not listed as required here #

Regulator that provides power to the digital I/O part of the chip

shunt-resistor-micro-ohms — required here #

Value of the shunt resistor (in µΩ) connected between INCP and INCN, across which current is measured. Used to provide correct scaling of the raw ADC measurement.

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "shunt-resistor-micro-ohms"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
spi {
    #address-cells = <1>;
    #size-cells = <0>;

    adc@0 {
        compatible = "ti,lmp92064";
        reg = <0>;
        vdd-supply = <&vdd>;
        vdig-supply = <&vdd>;
        spi-max-frequency = <20000000>;
        shunt-resistor-micro-ohms = <15000>;
        reset-gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Edit this page