Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
71 lines
1.7 KiB
YAML
71 lines
1.7 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/iio/adc/ti,lmp92064.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Texas Instruments LMP92064 Precision Current and Voltage Sensor.
|
|
|
|
maintainers:
|
|
- Leonard Göhrs <l.goehrs@pengutronix.de>
|
|
|
|
description: |
|
|
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:
|
|
compatible:
|
|
enum:
|
|
- ti,lmp92064
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
vdd-supply:
|
|
description: Regulator that provides power to the main part of the chip
|
|
|
|
vdig-supply:
|
|
description: |
|
|
Regulator that provides power to the digital I/O part of the chip
|
|
|
|
shunt-resistor-micro-ohms:
|
|
description: |
|
|
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:
|
|
maxItems: 1
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- shunt-resistor-micro-ohms
|
|
|
|
allOf:
|
|
- $ref: /schemas/spi/spi-peripheral-props.yaml#
|
|
|
|
unevaluatedProperties: false
|
|
|
|
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>;
|
|
};
|
|
};
|
|
...
|