From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oa1-f47.google.com (mail-oa1-f47.google.com [209.85.160.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7659B35B653 for ; Fri, 3 Jul 2026 20:42:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783111358; cv=none; b=gvUWuhfUxtYE/Ea9DMSm4YM3bCEWefnN/jaKSWJ7ssMulb9cmvY/DnIx3nE5ZjdsPZBLjbwsE1uaICJ5s0tD+ltXwwNpmiL+WhQm+g8KHeHdKJ0zX24ysx8Ufhix65/PW13VPurcY7dr3TIdQidIXvwn2d/6HpTae6xdDIYWHHg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783111358; c=relaxed/simple; bh=Eqv7+V31VY/0AFwk6Of9l7MrPycwP1CheiV+bakSUis=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=JsQk7VRJlnzqqjaOLmIeqHhAydpJ/ZHDMynaX3RaAlVRzULfJJ7LMyVOaWxixXihCWxAHHa6bon+aV+iYRDBbkUq+OXVFiGgYJnGUCPSe2ENoGhg7Gub5ICQ0Pn2Gbumd0YxT35OJ9LcSDpS0outuDGrf4JCMan4RmAA7pKzLb8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b=EnlIRSCw; arc=none smtp.client-ip=209.85.160.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b="EnlIRSCw" Received: by mail-oa1-f47.google.com with SMTP id 586e51a60fabf-448b0ff4a57so618511fac.2 for ; Fri, 03 Jul 2026 13:42:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1783111354; x=1783716154; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=AJlO7KO6NzvLX9GqvLCqKw4zjECJWOBxuWDTUord5Kw=; b=EnlIRSCw8FPPcedvFuTf+xNu11mIcOCVqE0YpqYQxqh+xO9YpNMTRLcMThwi8eAdN3 anLvTqDwOYG+FRrLBwKeWIJHWHgAjU2d+maK/3wbAVEh9YGDzsz3yecRxbXXE1RQLBCQ FCKEmQ2p9ePAMt5TdfJSPPC+IFBcynIv1brXIQgR/jcto+qDMBGS1lXbcajBIZQW5+/d glNbUyw1WJmK9VSv089qJe9LFOufnNlMH/C1+kKQ2Jqxm0DTnP0Um2RtamYOXkG/Ao2/ 7J+dWwWWuAhP9HxQhGmydpidcHhEsZ9wBmYSCVALSDZKbFfW0d7AIvKNcHiNqpOHHJ5I wpMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783111354; x=1783716154; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=AJlO7KO6NzvLX9GqvLCqKw4zjECJWOBxuWDTUord5Kw=; b=OYuyhbzsFv27+zrfKdeSHfwCQrSejTa0Et0/Ksi7AVqH52mKlnoTaVepTMiVPIBI4E my+q2VRJU1oM2DionvNCTvj0s22wS+5JJ6jS+0h8Ko4waMqJIsk3ckjgV+fDlQJ9a/HX x3qgrAVf5azLiLFHS714T+TopF9qbHATQ7wjNC4bmzZ+nOqPuhBR8CmlGdnzngCUSPIz TZm+oR0xinG07K+BFLgWxz3GVy/F+9b1xyq9RziqxKPqQOOq3+8ZNXBaCd8GPSHvR14Z iWhjHB8TRqDNaWpqIFiOvJEG3YKIinV7WF5Bj5qspoOtBVl4HDEFaAWohTCCekZlUp0Z Z+ZA== X-Forwarded-Encrypted: i=1; AHgh+RojzuEP0+7O62Dxb2pTZM9Q98VCiELHKc7YUhdhWE28jvn988Wihw6uhDKe7Z0qj02V+umheGQPL19O@vger.kernel.org X-Gm-Message-State: AOJu0Yz7PcuPpkRpyXBgPhCRARYlAc4gOt9+ci0pOHHaXpsVDADrHTNJ Xq4MQihSD5hrWG+H9wt7TOZ6mF/9FZgrwvsnN4mjrTGduQQH6L3S+cvdxzxU/YEYVOQ= X-Gm-Gg: AfdE7cm/jSue1j6Lm8ec2AwdgY16gS7lRUujjJeGVbCEvEIOCa31o9kKDT6ZdfekIrp pGc8VOU5ZCQ/Foh1SB6oaXNMir35h/4Off+GObFkOL8NBeW2asbzpg8mEOtBx6XjxSosNc/y7o8 QkeQmGvzHbkmuzcwMVmsmAL5jheobLxT4r38Bzo+EHUnj6WGkHapgvZ7iuffxIE6j/Qf9YFOXkc fyXFWTW3/JY/r7NiO+l03GQ8wQkb8/SWD5wtoxxc+EoNM4D4/Q1vFykJaX6ppM6cyXAwRxiWza2 V7HaEA2yt/nSbpb76eTv55JmzR3DlHqtmvoalPqEEla+2d9gDyelx7Ali0O1cqaaqzxTESWfEX0 usPhAKrT9HfR75kc79u+fkwQDL00/APvUDC1FOJPjYN2dYQ4fFXxCKlAYJH0HGzkeoyZqt24PKj BuJf7Wv0Ms1uwWQxS0uePgIR3tWQ62lZZwMEaJCSgGGt2Ef4zuoYA0o8X5kcxlOwc= X-Received: by 2002:a05:6870:1584:b0:448:558c:d8c7 with SMTP id 586e51a60fabf-44d183e0de2mr539088fac.37.1783111354455; Fri, 03 Jul 2026 13:42:34 -0700 (PDT) Received: from ?IPV6:2600:8803:e7e4:500:6af9:a9d7:17b5:2644? ([2600:8803:e7e4:500:6af9:a9d7:17b5:2644]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-44cfb5db92dsm2878354fac.13.2026.07.03.13.42.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Jul 2026 13:42:33 -0700 (PDT) Message-ID: <9768e9af-4ceb-4c07-ad85-4b7a62e81b6e@baylibre.com> Date: Fri, 3 Jul 2026 15:42:33 -0500 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 1/2] dt-bindings: iio: adc: add maxim,max40080 To: Stefan Popa , Jonathan Cameron Cc: =?UTF-8?Q?Nuno_S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ciprian Hegbeli , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260703102941.1141341-1-stefan.popa@analog.com> <20260703102941.1141341-2-stefan.popa@analog.com> Content-Language: en-US From: David Lechner In-Reply-To: <20260703102941.1141341-2-stefan.popa@analog.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 7/3/26 5:29 AM, Stefan Popa wrote: > Add device tree bindings for the Maxim MAX40080 bidirectional > current-sense amplifier with a 12-bit ADC and an I2C/SMBus interface. > > Signed-off-by: Stefan Popa > --- > .../bindings/iio/adc/maxim,max40080.yaml | 55 +++++++++++++++++++ > 1 file changed, 55 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/adc/maxim,max40080.yaml > > diff --git a/Documentation/devicetree/bindings/iio/adc/maxim,max40080.yaml b/Documentation/devicetree/bindings/iio/adc/maxim,max40080.yaml > new file mode 100644 > index 0000000000000..4cda6cea6022e > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/adc/maxim,max40080.yaml > @@ -0,0 +1,55 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/adc/maxim,max40080.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Maxim 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/en/products/max40080.html > + > +properties: > + compatible: > + const: maxim,max40080 > + > + reg: > + maxItems: 1 Missing vdd-supply for power and interrupts for ALERT output. > + > + "#io-channel-cells": > + const: 1 > + > + 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. > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + adc@20 { > + compatible = "maxim,max40080"; > + reg = <0x20>; > + #io-channel-cells = <1>; > + shunt-resistor-micro-ohms = <100000>; > + }; > + };