Re: [PATCH v6 1/2] dt-bindings: iio: adc: add adi,max40080

From: David Lechner

Date: Sat Aug 01 2026 - 11:38:25 EST


On 7/30/26 8:17 AM, Stefan Popa wrote:
> Add device tree bindings for the Analog Devices MAX40080 bidirectional
> current-sense amplifier with a 12-bit ADC and an I2C/SMBus interface.
>

...

> +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.

More precisely, it is `ALERT_`.

> +
> + shunt-resistor-micro-ohms:
> + description:
> + Value of the current-sense shunt resistor connected between the IN+ and
> + IN- inputs. Used to scale the reported current.

Datasheet says nothing about IN+/IN- pins. They are RS+/RS-.

> +
> +required:
> + - compatible
> + - reg
> + - shunt-resistor-micro-ohms
> +
> +additionalProperties: false
> +