From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 A72BD19E968 for ; Mon, 13 Jul 2026 12:16:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783945007; cv=none; b=WNvqhi4FAP5do/e52a8vTMyA+NA5O9QnBU+THC7jweWebisJn3edOeEL9yUE2l1APcSSfLAr8sOoj/VKMpEpfKsFN0OGW+k1d1J1H8x9T/t+6kA1JXinTQm5ECyhM3JjJ+Jzy7IIXCz7VHsI4cZkHce3YgqFENu5/gGLip7RmRc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783945007; c=relaxed/simple; bh=9DwY0EWtvrVt1E3O4Huj4v9hsG6tbLqt3e/DEGmfUW4=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gIcESkw/ALNC2fl1weMQ/kdmGekPJXFZZRN3ZhTeVPTX48zTkGx5Nx7QR/IsFRUJPEE3WIfABcsVWiUxNqIO6ImggwQb7n0aezOP8jfqJ7IAKUr8MxdG/OF4KK665CjOvfzS05T4OH5G6NXj86gSoUpBjVZ+92ysA+WrdFIwDDc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=D7IJIvnj; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="D7IJIvnj" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-493f75f7172so18796765e9.1 for ; Mon, 13 Jul 2026 05:16:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783945004; x=1784549804; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=iqqJJ9FyIGtHtJDiES6lZUsG9C5zMY/mppk79Od2qqo=; b=D7IJIvnjyy1cahE85bOdMunnOlUq5dtD8Z83kJZ1seWHbjBzHSYcUWSPC4mEzRyqA/ +ADYlZwGZibQWZ5w3njQPnbe8DAwuxP7GmABb8nE7qP0ejmQDzSw+Q+DTypU7o+fvIKM /86d+WlSqwlQWDcq59IDr0hqKAlT0mP/NP8yKb1huUJa2Fze75umcHuGOW/IF9oU40t9 YPyWYRskMBAc/471DOwDUZ0wILcdGgZr6A9vteq5pC9I8SXOwW0FyXIv+hfthA+lRq5/ Hya/GP5sKFmGBha9E450nuw6OSLbmTX+dl41u5WdnDb5GSmirbzxIE1fiQG5UzzYbJEE uzLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783945004; x=1784549804; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=iqqJJ9FyIGtHtJDiES6lZUsG9C5zMY/mppk79Od2qqo=; b=KMPC9yy03vUmfx+v0nMQiSFMJ/CvoLyMfaaKscPL8DrsHrhE/ouch2aZIXeCL0eLQ3 Qenrk4vbHvQVJG5sSOfWUY/5AhfzZX28P/ScYlMQgGEboDs4tprcO/52sXatMbpjYFIj ziiSnR3kQ55fYoaWmYr7xe1k2QHfMU+tMl8J3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OD/wL34tXz +ANnGF5fW+Z/B2ylpuOc8J7I= X-Received: by 2002:a05:600c:4746:b0:493:e034:a3b5 with SMTP id 5b1f17b1804b1-493f8818cb0mr99609145e9.24.1783945004024; Mon, 13 Jul 2026 05:16:44 -0700 (PDT) Received: from localhost (90-182-112-124.rcp.o2.cz. [90.182.112.124]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-493eb73b161sm323603485e9.9.2026.07.13.05.16.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2026 05:16:43 -0700 (PDT) Date: Mon, 13 Jul 2026 14:16:41 +0200 From: Joshua Crofts To: Stefan Popa Cc: Jonathan Cameron , , Andy Shevchenko , David Lechner , Nuno Sa , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Siratul Islam , Uwe =?ISO-8859-1?Q?Kleine-K=F6nig?= , Ciprian Hegbeli , , Subject: Re: [PATCH v2 0/2] iio: adc: add MAX40080 current-sense amplifier driver Message-ID: <20260713141641.0000027d@gmail.com> In-Reply-To: <20260713120226.90303-1-stefan.popa@analog.com> References: <20260703102941.1141341-1-stefan.popa@analog.com> <20260713120226.90303-1-stefan.popa@analog.com> X-Mailer: Claws Mail 4.4.0 (GTK 3.24.51; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 13 Jul 2026 15:02:24 +0300 Stefan Popa wrote: > This series adds support for the Maxim MAX40080, a 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. > > Why a new driver (Andy): No existing IIO driver covers this device or a > register-compatible part. The closest relatives (max9611, max34408) target > different silicon with incompatible register maps. The MAX40080 has a > unique combination of bidirectional 13-bit current, 64-entry FIFO, mandatory > PEC, single-measurement mode triggered by SMBus Quick Command, and two > selectable input ranges. See the driver commit message for the full > rationale. > > The datasheet link is in the binding YAML description. > > The driver operates in direct (INDIO_DIRECT_MODE) mode. Each raw read > triggers a single on-demand conversion (SMBus Quick Command) and reads > back the matched current/voltage pair, so results are always fresh. It > exposes the current and voltage channels with raw and scale attributes, > a configurable oversampling (digital averaging) ratio, and PEC-protected > register access. The two selectable current-sense ranges are exposed > through scale/scale_available (the range is chosen by writing the > desired scale); the current scale is derived from the > shunt-resistor-micro-ohms device-tree property. > > Continuous FIFO buffering, threshold events and the alert interrupt are > intentionally left out of this initial submission and may be added > later. > > Tested on hardware with four MAX40080 devices on an I2C bus. > > Changes in v2: Please don't send a new version as a reply to the previous version, it breaks people's workflow and tooling! (tools like b4 may get confused by this). -- Kind regards CJD