From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-vk1-f180.google.com (mail-vk1-f180.google.com [209.85.221.180]) (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 D88972F2910 for ; Fri, 19 Jun 2026 16:44:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781887497; cv=none; b=fc1QHG97coq4G4Xfe81quDMbE9wcDirVXg6ASa0C2bQHsg7iBJ2VPDpmfkIE8r9K6n8TEGCMYpdrQZj1E8PYSefjoZeOZNv9bs+5RZJNAOjcpIHW7j2bQcpfij+Ul/GpYNu1ED98YaOaMHJKYAsF20JS+CQ/JT+ouzqam+Z0POk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781887497; c=relaxed/simple; bh=53nrFR+5P147jRMcGHp6GiQfoQU1K9VkWGdViL91Arg=; h=Mime-Version:Content-Type:Date:Message-Id:To:Cc:Subject:From: References:In-Reply-To; b=UUOEy9/bEBCtFOV9Y9YT89QLuRKG9YvHxVS7FUX7uEaUUMWFi6emPNqDJ4ZyeaVlODU7eNPxTYOGnvomxgwSx/4hXF0Ru0m+GXRSN12W17UpCCKEqUqWER7M+HOdMOSGFbae1DqbAC7GkFBhhOIccFjthz6XVJCi8XLtNcWWOP0= 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=JlNdfxJK; arc=none smtp.client-ip=209.85.221.180 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="JlNdfxJK" Received: by mail-vk1-f180.google.com with SMTP id 71dfb90a1353d-59cd803792aso1452493e0c.3 for ; Fri, 19 Jun 2026 09:44:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781887495; x=1782492295; darn=vger.kernel.org; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=lL55HpULYFYjPZKBpHgRb83VpApz0ytowSZF8pFlahE=; b=JlNdfxJK+kgquLHHhr1PrZExom24RvvjqdpKpF3M1gt1oUnspm3rTF17EkzTE2oOw+ 3w95wiwiHKwjlwUqf3UruE5fdF8rgxv0HGgFDu4xEan/qHtKf1ScnLPaAD3PK0DuWjUw i8ljcKxAPcm4mBSfNj18+W1WPtY7A10KnzC14Gs+zLsjEDcwU0CoKN2uoP3mHDd5hlaY Jiy1oQusq2KzfYHOs5k6486L2F5K/I1SVWaOq5fPCrl2WLRsxY/JdoW2qEJKVu1dbudi MI4sxuy7Kjh6gnCldLXB17C7OK7CpkzZG5M8M7vw6UpACVAoZoYOW4ONYUNqsldudD/I JL5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781887495; x=1782492295; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-transfer-encoding:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=lL55HpULYFYjPZKBpHgRb83VpApz0ytowSZF8pFlahE=; b=g+/D3YbRszaMgV7nGpZR73gSli6tAArLhMJ4piQzGvlLwuqYfk1gCKMGn2P3wIpNDi dFE7xvxMgm8pVPJC/nXCRyucg8TpSvVDIpr2i0c8o1l+UHhiM/LIYtLwt4ey/l+ZpXVc HkahpMsrqGi+RyQxtSpVlR49p3M9192thkknPWizJjU2XXf9mtCl8xPJS3U/ZPDjphiH iznvd5Ky6bjgHydtcTeduXBHJXr3azGmgcqXcLpZVulOz1DzTWrR4FY3W04/goQmDjIF pdbu4DfEpPkhPPrn0/VcKOr0Z5RrTNuuF5N18ffhYv1+dKhzp5WEo0Gr1coznSZLipUu /q8Q== X-Forwarded-Encrypted: i=1; AFNElJ9E/thixBRTetU1dwjxfnlxSR6zN89mN/EV6gAgDqc/4s9WQ9EoFnYWfY92J4yAJSIbw5nCLQccC5o+@vger.kernel.org X-Gm-Message-State: AOJu0Yy7zR2xdJ3YM1QJUdqAsF1SOqsHdFS/VobiL+UH/vL44dXhzadm 7C/0n8vScAE4y4iQASQGCLL5N0phyi5V4pYmIp4XYzrktTLvIe1Q9XKI X-Gm-Gg: AfdE7ckpr4tmn5WXnILdA92XuxQqOmzvV2s8C26kwn36EJ2EoPqAtxCzREbqADi/IK/ s5zGMtTRRPIfcyW6PpAoexIw1j7/mQ+mCJQr+6NJXovSTxMZGVsgp7EUZ6Q+E7ljhR9cFdtBIIa QCugYP0J3P5Z3C8rLHKAgaNQLDfDxYzC3xEgvwp/s5mryEVHAehuE8O/ppvGkW9eeD1ew1LL2up eDrFxD6sZNc71LFr3XY+EUfkWt0sKkwJUOc9DUr1StUAcYdBiwA72bTB2xIFLyzgp2YqDsdR4/F VNegFwBF2osSikh0F1y6dkWBwJYRDNgH1x5ikCeMGoszqqCYbaDEfKbG4m7Izf40NlGlBUPHJD7 A1CCkXmSYHZBOwzwZoyqq7Kpe/wgCL1YG1ZFPe+Ld8fo7hBcsr3hT6y+NH/2VtXNYWhONhZ53ZT cLeTA= X-Received: by 2002:a05:6122:341c:b0:5bb:dc6a:249d with SMTP id 71dfb90a1353d-5bbee6efcbbmr1938741e0c.11.1781887494797; Fri, 19 Jun 2026 09:44:54 -0700 (PDT) Received: from localhost ([2800:bf0:82:11a2:7ac4:1f2:947b:2b6]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-5bbfbab451bsm119607e0c.18.2026.06.19.09.44.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Jun 2026 09:44:54 -0700 (PDT) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 19 Jun 2026 11:44:47 -0500 Message-Id: To: "David Lechner" , "Kurt Borja" , "Jonathan Cameron" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" Cc: =?utf-8?q?Nuno_S=C3=A1?= , "Andy Shevchenko" , , , Subject: Re: [PATCH RFC 2/3] dt-bindings: iio: adc: Add excitation current sources properties From: "Kurt Borja" X-Mailer: aerc 0.21.0-0-g5549850facc2 References: <20260618-new-channel-props-v1-0-963c1b5cf40a@gmail.com> <20260618-new-channel-props-v1-2-963c1b5cf40a@gmail.com> <073b0a89-65af-4a21-837d-851d35e3e294@baylibre.com> In-Reply-To: <073b0a89-65af-4a21-837d-851d35e3e294@baylibre.com> On Fri Jun 19, 2026 at 9:27 AM -05, David Lechner wrote: > On 6/18/26 7:33 PM, Kurt Borja wrote: >> Some ADCs incorporate current sources that provide excitation current to >> resistive temperature devices (RTDs), thermistors diodes and other >> resistive sensors that require constant current biasing. >>=20 >> The maxItems constraint of 16 is arbitrary but should be big enough for >> most devices. > > I wouldn't put an arbitrary limit here. The bindings that include it > can extend it to add a limit that makes sense instead. I agree. This was partly a misunderstanding. I thought -microamp properties fall back to uint32 not uint32-array but it's the other way around right? > >>=20 >> Signed-off-by: Kurt Borja >> --- >> Documentation/devicetree/bindings/iio/adc/adc.yaml | 23 +++++++++++++++= +++++++ >> 1 file changed, 23 insertions(+) >>=20 >> diff --git a/Documentation/devicetree/bindings/iio/adc/adc.yaml b/Docume= ntation/devicetree/bindings/iio/adc/adc.yaml >> index c74c2084fdb68c..106b1e317411d5 100644 >> --- a/Documentation/devicetree/bindings/iio/adc/adc.yaml >> +++ b/Documentation/devicetree/bindings/iio/adc/adc.yaml >> @@ -83,6 +83,29 @@ properties: >> This array describes either a single reference source or a positi= ve and >> negative reference sources. >> =20 >> + excitation-channels: >> + $ref: /schemas/types.yaml#/definitions/uint32-array >> + maxItems: 16 >> + minItems: 1 >> + description: >> + Excitation current sources provide current to resistive temperatu= re >> + devices (RTDs), thermistors diodes and other resistive sensors th= at >> + require constant current biasing. >> + >> + This array describes the mux configuration of the excitation curr= ent >> + sources. >> + >> + excitation-current-microamp: >> + maxItems: 16 >> + minItems: 1 >> + description: >> + Excitation current sources provide current to resistive temperatu= re >> + devices (RTDs), thermistors diodes and other resistive sensors th= at >> + require constant current biasing. >> + >> + This array describes the current configuration of the excitation = current >> + sources or the single matched current for all sources. >> + >> anyOf: >> - oneOf: >> - required: >>=20 --=20 Thanks, ~ Kurt