From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.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 5B009349CFD for ; Mon, 22 Jun 2026 19:40:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782157213; cv=none; b=V0h7c6L/shZxCt4CDBULLtCNeTQP+imU8u5afG9WJ7JwhmhRxvF2hLI2aYhsVG9a1sKS69ZDGFUCkiwdjO5m/x8AtSTin8pwzy/ccavZiKl+2Kgt5DhPcrbGH3+BUfHRa7xbF3kHAtWMagzP8sH8TRcjAICrC1srgHBB4rv5uN8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782157213; c=relaxed/simple; bh=lCkdrhm38AlWxxdieCJkxVeyiOyAVhbQ510MuHlfVr0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=WFU7U/6q/TlIs4mj5RR6Cd9Mr5DS8jVoRfL5XKLTALRLGPisRnmNwcAAIbr4+m6vb6+tm2v0NvbMAh+klYzJmWF7h5lEiYLhjS8pjYbvL2ccP4oswpq7XED6Q8rrcG1v6jGq5YIZ3lQbq8FCFLcKdK+mUwxnyT7vGcVxJNbXOV0= 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=j706uKmQ; arc=none smtp.client-ip=209.85.210.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="j706uKmQ" Received: by mail-ot1-f46.google.com with SMTP id 46e09a7af769-7e6e9408e30so4226104a34.2 for ; Mon, 22 Jun 2026 12:40:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1782157211; x=1782762011; darn=vger.kernel.org; h=content-transfer-encoding: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; bh=g8IT7I/yGTO1KOxNCxG0G9O3RLwfq9sFvBwNPgZ+U5Y=; b=j706uKmQjNTUZso9DcLWu85403YxD3TYTTKchESqsr/Fht8LNcf1pgoum47hNa36Xn soerpQFeJGtPC+maqgUJ9B6PSb9s8ALDob2bVPTTJD9fqLfp1ZHKQrDGVq6PGBQMQmZw AFZrPbvt2mQt+N0bkcuozWRO1MHpsDA8DQTfGcfh9X0+Q34dhE2aYQ9TkH1zTYf49Xt0 yU8oakRMz9wbG4LHpQIJw3i7JZFesBKszCwQu8IKfksd23R9AOf1NPnPLx8k91x0nFln rOvBq3ok/czk6/54O1agcm/BxnXewSvtBhe8+yVrvNto4/X4hvxjKGZYu3lYCakyeCai cfzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782157211; x=1782762011; h=content-transfer-encoding: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; bh=g8IT7I/yGTO1KOxNCxG0G9O3RLwfq9sFvBwNPgZ+U5Y=; b=Qn+vrI4VTeVzRfTlENGwgfPNUKMT+idbNfgrPWDukTRgFDLhlv90zUnly72WnWd20E lsRNozR6a0Ag/+/iZJGXAKm+f1gbsFP61/500CLumM0qHLwJ5cXajPypwGl5P19bkozp yRMCj0+JFZoCFk5a9kEEqQuzybwCbHtIHObPsJ1Ii9km5W4gRxtj9ZimMwmmoWspn5IA m1bvXNhQKU3dzqnGs9oFG+01mE/78RQ2MQK+X8Mf6Ui0QEcZxnm2eOZoNfDN+Hm2iZC9 vAa+OaJ7EUSHjBhlIm7N9hyo/VF+Lo9b4cf13yQjuMyLVG798yCrw+IqaGvBBc663K4V GE6Q== X-Forwarded-Encrypted: i=1; AFNElJ92YasDMiEV+sueTNgHYR0PnxKJFG2IGWWf7ssUaT6+WrWKLzPZjcdjk8939hY/p7zW+OMcgmSq/3+E9/A=@vger.kernel.org X-Gm-Message-State: AOJu0Yw7LTTFGCJWWP4MFeKbPsABjImJO+wOzqUD72ZU9iSGnt4BgU8Y sMDNWuogjgjD00kyFpugG3CCcTetvKcymp8lxC2Hi1pUlUeShS8/BeOiOqHZwO7+54s= X-Gm-Gg: AfdE7cllZqJY2Szpr17ElFyyWM1zvKqmJ92JfP9f5w7apsq6PEVv3Sa9M09b2d66p+E K57Fzqg/e23/B5SmaPsYl1Eztv7+zIpEmegirUGGHC0PqBDFpWBQYFsAyZ6JcVNRHAHvcB12o5I vHtUZ0rzH4/vd3rX5G68r+6aasXtZ+o98gVMS9ry6xHHpj52LRQV4Xy95CkToHh7MjP+CGb/b8G BqGkBRLNB6Y1ROrIyEmkQE35La2iQ5K7xgLeUWwJ07mLGoWiJ8aMYwfzcBg+UaLD/l81Efm3uIb EAhh/oeEKJzPceXy3Ps5L0FcCGR6pbi3tePCCjzROdD5MXX9n9NKQeuWmVIP2qIwDd5VLcTtD0T 1tZuLHE4HV1Zp8c15yROkPG051M0i4aXkI+IQ4htrakPmDATl6qotIuKJG95VbWhNu8Ot0FTAZN GJakKktkd07RvJKIydZ7zq7FbioHjzCTtxZtYdOE5nDpRW34UlDESP0gASVeZp1Uw= X-Received: by 2002:a05:6808:4f2a:b0:48a:a85b:ba53 with SMTP id 5614622812f47-48aa85bc13fmr13627807b6e.35.1782157211349; Mon, 22 Jun 2026 12:40:11 -0700 (PDT) Received: from ?IPV6:2600:8803:e7e4:500:6526:8577:6be9:cb7b? ([2600:8803:e7e4:500:6526:8577:6be9:cb7b]) by smtp.gmail.com with ESMTPSA id 5614622812f47-48aec0ddd7bsm5103906b6e.7.2026.06.22.12.40.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Jun 2026 12:40:11 -0700 (PDT) Message-ID: Date: Mon, 22 Jun 2026 14:40:10 -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 RFC v2 1/3] dt-bindings: iio: adc: Add reference-source property To: Kurt Borja , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: =?UTF-8?Q?Nuno_S=C3=A1?= , Andy Shevchenko , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260622-new-channel-props-v2-0-aafd5369f253@gmail.com> <20260622-new-channel-props-v2-1-aafd5369f253@gmail.com> Content-Language: en-US From: David Lechner In-Reply-To: <20260622-new-channel-props-v2-1-aafd5369f253@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 6/22/26 2:30 PM, Kurt Borja wrote: > Some ADCs have configurable voltage reference sources for each channel. > > Signed-off-by: Kurt Borja > --- > Documentation/devicetree/bindings/iio/adc/adc.yaml | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iio/adc/adc.yaml b/Documentation/devicetree/bindings/iio/adc/adc.yaml > index b9bc02b5b07a4c7..fdad6b8276c934c 100644 > --- a/Documentation/devicetree/bindings/iio/adc/adc.yaml > +++ b/Documentation/devicetree/bindings/iio/adc/adc.yaml > @@ -73,6 +73,19 @@ properties: > device design and can interact with other characteristics such as > settling time. > > + reference-source: Since this is an array, the name should be `reference-sources`. > + $ref: /schemas/types.yaml#/definitions/string-array > + maxItems: 2 > + minItems: 1 Maybe minItems here is OK, but I don't think we should put maxItems here. This way, it stays more flexible for other use cases. > + description: > + Indicates the voltage reference source or sources for this channel. Some > + ADCs usually allow choosing between internal reference sources or a pair > + of external pins. > + > + If a single value is provided, it represents a single voltage reference > + source. If two values are provided, the first one corresponds to the > + positive source and the second to the negative source. > + > anyOf: > - oneOf: > - required: >