# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) %YAML 1.2 --- $id: http://devicetree.org/schemas/iio/adc/adi,max40080.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: Analog Devices MAX40080 bidirectional current-sense amplifier maintainers: - Ciprian Hegbeli - Stefan Popa description: | The MAX40080 is a high-precision, bidirectional current-sense amplifier with an integrated 12-bit ADC and an I2C/SMBus interface. It measures the voltage across an external shunt resistor and the input bus voltage, and stores the results in an internal FIFO. Datasheet: https://www.analog.com/max40080 properties: compatible: const: adi,max40080 reg: maxItems: 1 "#io-channel-cells": const: 1 vdd-supply: description: Power supply for the device. interrupts: maxItems: 1 description: ALERT_ output for overcurrent/undervoltage threshold events. shunt-resistor-micro-ohms: description: Value of the current-sense shunt resistor connected between the RS+ and RS- inputs. Used to scale the reported current. required: - compatible - reg - shunt-resistor-micro-ohms - vdd-supply additionalProperties: false examples: - | i2c { #address-cells = <1>; #size-cells = <0>; adc@20 { compatible = "adi,max40080"; reg = <0x20>; #io-channel-cells = <1>; vdd-supply = <&vdd>; shunt-resistor-micro-ohms = <100000>; }; };