From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oa1-f49.google.com (mail-oa1-f49.google.com [209.85.160.49]) (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 9087B2D97B7 for ; Fri, 19 Jun 2026 14:24:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781879099; cv=none; b=SJ1fxHJ5C03FqjfuBkvVwO8BfkwMHfFvNxp8FJZd7CjkbU19vu2ayXjeFrzITdo+kq08wCrHHo5eLWETSKWAT/9W428iUIFFF/DddI59iT/VkjMxXVdrnZ/Pgd4hLUJ0rTcM8aAAk1/ZNOSB8U/CKb7A8LkYrtRZFghif7vwgbE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781879099; c=relaxed/simple; bh=pGCla/vvf3lJsUCV9oSk/dYHXQS9yOlxHQdvLssuW40=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jZMswEKSo95NCxJxdywPOXgQ/daLxKOpT8LVVsAQatmTGJGdbVz+HHdkFq2bVKRY/4+xN9O+EHNKLv3Y3UvIAGweXpjP6JoVNAHa/ZxOIzNv/QfRB8oJmR1+m96u+NgY4zSoy8TdSVZ2QyYbHm8iL/s/0tTk9gZopi+2casFaPc= 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=meW2LVjF; arc=none smtp.client-ip=209.85.160.49 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="meW2LVjF" Received: by mail-oa1-f49.google.com with SMTP id 586e51a60fabf-43b7e186a0cso981583fac.0 for ; Fri, 19 Jun 2026 07:24:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1781879097; x=1782483897; 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=26PmlAB+sYAYcUZ9jY2wJzqTIoNsm0ptg9G8UNT6ht8=; b=meW2LVjFmK3RVTIRdoU/KQlI369U2S8gd42Lrw5PZV6M0sL52OtjzYjNHN+DVN3Fsx 3pFTJJKAi+UQvZs2FEDJdpIIv7UKCWS5k6EVBbWZQX/K8F+j84xvs/k8zaqlUKuMOl5B P4Rjk1WTl7d57UgYYEJPUQmvqbYLa+7RJ6SG5TmxxrnOG9yA6qpbbvZGtfjpxOnjAXPB MjjyTShfVsHYqIuhLKd9p164sz6ilCrUU1BGBOZ3whlBpJYQ92iKo7FfBWx/Jkxl6eEl 40dfuWr8FJ5nxqOAqKT8ET9JYbSjz3T4++DP776xFj9OvTw6fW3+L21fHNx6JkYdtSkU v6dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781879097; x=1782483897; 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=26PmlAB+sYAYcUZ9jY2wJzqTIoNsm0ptg9G8UNT6ht8=; b=Y/7ZVkg5a/09PLhcXx5wkwFj8DG+sj8tXU0+8jbMQ7yPpKEORsgiSgpaOQi6lO11wO +dZ3fzkJm4ThEcX4NgUgsfSolIfIPWBYZvjs93W5NOVkrwUJ3Lug1ZA/ZmnVY8dbSD1M dH7man2fnBslqCFjMQMGgVAJ41cpVjVMt1c2hfiVSyo7A7mgm/dZHpKO1FUSX30GcLup v/vN+ehLVfbYMhnqY4zWgWSjifQgk6sVchHHNHwemNRR/XSeEVHT7DnXWQqLYDwMtSep WhGHc5DysGpxHceME0WyaQQdvcEf50Fl22oPEPsoUvtFN0/Yt7hDewi/xonu+JSPHra6 mT6w== X-Forwarded-Encrypted: i=1; AFNElJ/5aoAmhmA+7Fvw02yjqy41pRw3ukyv4ZFZpFYptyE8uh4pw6sOlrBjbkLZtTFi+s/P1SyShaIhklqZ4jY=@vger.kernel.org X-Gm-Message-State: AOJu0YwhE309JUZPceeHDW83VEd3WkZ9YsLL+4PT3Ogsw+uu5vMIYVWX GKk78vXC2O5Bo5BTPzvDhRHBHN6fcc4p6QB1yAAh+o+3oVPeSv21bJxteUPLYY4BlFY= X-Gm-Gg: AfdE7clbl4TCBVbtHc/nCpcQQPACh2yMyCY5vWfrxHza/tPLe2O3e38/F+GZnSm3VgH HBUC4CZQc3+eT+IXw4IssDwhRidC830WQJ9KBj/elgVYMM6eNe9dWDOG+p85RtJMzi6Y/yAX/1X E/SJKZbj9DwVOWOluF/jGSMHsYVKLv3ggMU868AMwyvzRD6T067KD9A7Mf6abgeaAYDIy4kFvq4 m88MxAWdkiDaFLPQDvcsCAjmvRJCrPBA7k+ehjCIXUGQxCG0Absxbgt5A4+DP4u2SoCrlbong8A EXpen7XFe8OwzwgKVDPlpXfrj7xzFZk0sq2ijC6wOns0bXKUdQpYkUVYTJy/3k77T3LB9Q1IAR0 zpKYheR95p0s04CmOYVRlQzrMJmU101a7/lZn99swVleH+5nWmxZS5FJ6jciT1kvq+xFj2fhkHv wO6jswT4FIUasA0cGg5nilTe32T1Y7NaE2J48gtI1GOpq3pWRCXlLDVnBuEg== X-Received: by 2002:a05:6870:21d4:b0:42f:d844:7d0b with SMTP id 586e51a60fabf-44706ef4944mr3031655fac.6.1781879097453; Fri, 19 Jun 2026 07:24:57 -0700 (PDT) Received: from ?IPV6:2600:8803:e7e4:500:dd8:d93b:3cde:c07? ([2600:8803:e7e4:500:dd8:d93b:3cde:c07]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-4470a3091e5sm2351865fac.11.2026.06.19.07.24.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Jun 2026 07:24:56 -0700 (PDT) Message-ID: <736962f9-50b9-4884-88b1-94bfd7cd8abf@baylibre.com> Date: Fri, 19 Jun 2026 09:24:56 -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 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: <20260618-new-channel-props-v1-0-963c1b5cf40a@gmail.com> <20260618-new-channel-props-v1-1-963c1b5cf40a@gmail.com> Content-Language: en-US From: David Lechner In-Reply-To: <20260618-new-channel-props-v1-1-963c1b5cf40a@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 6/18/26 7:33 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 | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iio/adc/adc.yaml b/Documentation/devicetree/bindings/iio/adc/adc.yaml > index b9bc02b5b07a4c..c74c2084fdb68c 100644 > --- a/Documentation/devicetree/bindings/iio/adc/adc.yaml > +++ b/Documentation/devicetree/bindings/iio/adc/adc.yaml > @@ -73,6 +73,16 @@ properties: > device design and can interact with other characteristics such as > settling time. > > + reference-source: > + $ref: /schemas/types.yaml#/definitions/uint32-array > + maxItems: 2 > + minItems: 1 > + description: > + Indicates the voltage reference source or sources for this channel. > + > + This array describes either a single reference source or a positive and > + negative reference sources. Do you actually know of any devices that allow independently selecting the positive and negative sources? I don't think I've ever seen anything like that. Also, this should be string, not uint32. > + > anyOf: > - oneOf: > - required: >