From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oa1-f46.google.com (mail-oa1-f46.google.com [209.85.160.46]) (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 74FD434B662 for ; Fri, 3 Jul 2026 20:42:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783111357; cv=none; b=EbDgziaMcvZyjXElVSYoBXS7aE+1vwkdsaqJnb0fh7zQtZitqWLsK6wT5FoDGyGAgP3Rj8sphHY/Eoj+gria1S7frw5DUQ0lSIJxcnJ6InPRVZbxPIYC1UryvputP1xyHoli+WodMdg3FB8JpyQ6fHqTVdn+QPc5LKKiuAcXLDU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783111357; 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=obbROBLltnjKcfMSEl9LeysECe+ULGZ1QcBh4g06yt+v5f304ir99+WgvCruxq9aTfBGKSKNeCA8M4NHv822r4RTks6pTy/uqRya+u7mzt53o2hqHVF6E0kHu8DFIHzk/naKIWz/ZcJJay3tO4nLPJiodNZ3Q7rUnpJqvjGvlz4= 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.46 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-f46.google.com with SMTP id 586e51a60fabf-44cd237446cso487296fac.1 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=fHThAL5HMAsDfFUoECYUPE4Um/z5FFYqGwYA6PLtL17k6xC6NZAmlCJTh1WOEpg1oh 69RxhFkhWR4d2qDD25PZ6TohMH4v6V/25adBuyXBtyWud3F1/jrWxPJCcn8NCZBMHJdH LYp4WrOeI/lG692XBC96BFJRlzfNQ2cFmEmw/YHW+aeQl8o0DvGbprxZSS+/hwkNF7jb zxfm6S3elW6NPK/GUNtrJtxrSUU3STwMYGVVMM4kKJAzcDIm3W5zQJQanQ2u1H0BNuOF 9PvMQ4xxNfOtskX4DqHT2BkEMJi0dTE9qTupF1gwffFLFRecfPuj3gq6udzUoxLnCSY5 YJiQ== X-Forwarded-Encrypted: i=1; AHgh+RpzoQHvSakW1qKIEVr7ZtEIcSuUaj459xVSA+sZEhO3wRiNwYILGAw0Cmiqne2K8YhSiVE47wVNHozDnYs=@vger.kernel.org X-Gm-Message-State: AOJu0YwUPf1EsRMrGQFZgqA3tESb7mx4CcSmcG7Kud4qEeeRm2kACZYH uBDLmj7vKPipBwJG+wvNUEJrcxy1T/H4725WNE2ogIljCfIcShTIDHeLNMV+kth6eGg= X-Gm-Gg: AfdE7ckvbf9oPXgaVmVy4lNIU6SwamiBYGTQncudrLKLC78YDmefSnUKE5xGl/oY403 Ix0QBqB5v7icR7CxN0nLaPASuwfIqlcJecMfjKuqb2rzlBgPURMM9lGO52pVRGTQmnfRL9atwqh k9xxHXgt1JY3arTPjdvfQTUnlLDEbw9kO2B0o97Z0bUABmbaW9+GW9RclozasS1oPij0kz5acId svv1rio/gw+MfhnEywZIwFtLDL7JqiMO1FzYglQpS4ruecdfjXeYPOYlySuufEUeRP+vAm5VPkd D0rbod4jnO5vjSrfWET9y6qUBvSEWzh5YfboQpLKG+L4CgFu8R/XA6pZUCkkuxgROUn5e7ftMgZ +CHiY1KiLt94ypuGcFifh3XoefPWQeoYcl69NBwWLd/uUwQ5s/42fCc5/mD2xcALHKQC6GPwey/ dfUqKnrewUjHfXPG9lS/dZIXTaSCIbM2EZ0khhAvNDTzNTGz7p9txDPzY0siDZO9I= 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: linux-kernel@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>; > + }; > + };