From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ua1-f50.google.com (mail-ua1-f50.google.com [209.85.222.50]) (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 E8B6F3A451D for ; Mon, 29 Jun 2026 06:47:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782715666; cv=none; b=seYFSeYIDx4Pb1zrKN4honjWGSFtbolmSmnltO0RpJEe6YK7DI2MzwJnQp27FW9Dyl23okVhMzY2W1wH/hALmWItB3CSGpAuMLMy9ylNzh+YaAQBIfYL0k44A70FSA+kNc4KX7Xqq/nQoXj7XMmFL5W4X4QccYaJOasU5DfLR6U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782715666; c=relaxed/simple; bh=v+qWVRauUjpTMkiJIe9BuToSx5p+cD4V9llEvD9oJl4=; h=Mime-Version:Content-Type:Date:Message-Id:From:To:Cc:Subject: References:In-Reply-To; b=YokWy4hV0qs3TYwo4rvY1nBgLtzNzN5X5N546ATg7JLR+wwNpEpTveYhmAXWvd44nvJM08t9zhVQV2RnPeNwIPkWSqYMDTVjbCql4EPhmnzWe2rVQWBE1wEdDnn+HMxr+lwb2jzNCOaEPApGFKX49/Euycf+ly0PwLq6b/TB+kY= 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=H1R0e2+t; arc=none smtp.client-ip=209.85.222.50 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="H1R0e2+t" Received: by mail-ua1-f50.google.com with SMTP id a1e0cc1a2514c-969524c1a63so239724241.0 for ; Sun, 28 Jun 2026 23:47:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782715664; x=1783320464; darn=vger.kernel.org; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5+oe0ICWRfN20FKF1msz77hWxvDcYi0f/X+trcO5BX8=; b=H1R0e2+tnbR8pO8OI1J7c1IJknieQWaHHRkkeIWgjOPW00ncsQUQZs0e3jpG+plmpV C0m3GHV/JhxGzZ4mnWAN8lYpXxj9koSB3uFg0eJzSPXgR1RwTD4Fwb5dPYywQ71aXq1o GhlUHr8lF5A9CMno1chirc0KcrLBE17f77aEMA0svfxfzJBbeyNClZeYNCU7ZqITXFvw ZJ/kUp23HljTfKw3xI0IuPT+uPSw3DGTg1s+hp7fb6zRVkYU77/lVXit36IiEHmSxU2C kah2052a4gL7gAaLfRpBfAZEldstTzXHgQUkJUm8Iaotlkd3RAwKyk+QEXg0wTR2cfrz i4AA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782715664; x=1783320464; h=in-reply-to:references:subject:cc:to:from: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=5+oe0ICWRfN20FKF1msz77hWxvDcYi0f/X+trcO5BX8=; b=i5yV+o3cRp0IhJ7uDX9Mij2M5JbAi/vbozGkNE7fDOgQRhYIk22fmikXLl5TMdbhFv wqw7/t9LA/mDpPAi4tSbpZAeYxMWaCf2VAF481KC1Dx1/4ysieaP/q727o+SEBnN0PVn 0QB9ezO9V01LfsvnRyAFzhAytTT6cflvpCtshEAaLcW8YVxJ9YFZFmLeVVrb3HpswAvS 2d5ASBwBZNKOPEE3cIox2wO3Kym5SLoUmZsPX2GJq0Mz8L7aHrJ0SdFb9YcNjo9asBxF m+IdPtxY40wRRVHDXwVepp5PjrJSlJvdKbOlMq+4neWaoTitvJ/fv9Q/EXP9nwZSNJHz 1FYA== X-Forwarded-Encrypted: i=1; AHgh+Rr5Lh3KWSIO7+0+DMZ1hEexKOua+SeY8n3kTveex/3uo13HYZg8IthLD7/6grPQCXVOXtTot5/nA/C50M4=@vger.kernel.org X-Gm-Message-State: AOJu0YxyVX6DHApsbliKa21vR+1KBhpABfjzbb35tq0xtW/hqrUYO5zu XRmAs49FS6HkYM9bFiUANAbpZwdtojWj5Gjj/7UbBUPOpYdFW+2BZVeL X-Gm-Gg: AfdE7cn5fk4eXJPAH4sqI6Pc2jgelvyfFuNf4cVkbkcYWmqcLSC9zBXMVOfSRFV0jZ8 16I9YFCMEt98vskYkxHM21jnw+IS5C/XeqbU39R9srca1/qPjaLkkwt9kYbwZbKIM5c4RxX6mPi ulh/F6gkRVOz8CvcQxcrbtmQgOIwqqMNHznk9LAZiIsA6gD1idaPfs0XOGadx410aVlEWpRc+av /eK+2DTzi+GcsRzPg61Qc/mxt5NIpawLz0cUtHiMB/4flH4Ttil2DVffxJDWZcc+4T1cy2JZ4Dv t4gV6HIDnJ12RXKxWmtDxWzCuSuhLANNAZbNiwUQ28Wlmfcmwu/0nc/Qr1RyOZkQgBpkqdF0LYl inBcCR+h6bQuqgHUQQs+Lllc04l0zAvmvK1YoErcK3Gm+dyacH/Gqnb77y3cG1Oyoy7DfTZvFNe 8bV4w= X-Received: by 2002:a05:6102:80aa:b0:650:94b2:b209 with SMTP id ada2fe7eead31-73433e36b9amr7521498137.4.1782715663900; Sun, 28 Jun 2026 23:47:43 -0700 (PDT) Received: from localhost ([2800:bf0:82:11a2:7ac4:1f2:947b:2b6]) by smtp.gmail.com with ESMTPSA id ada2fe7eead31-73566da9b45sm5178561137.5.2026.06.28.23.47.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 28 Jun 2026 23:47:43 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@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: Mon, 29 Jun 2026 01:47:35 -0500 Message-Id: From: "Kurt Borja" To: "David Lechner" , "Jonathan Cameron" , =?utf-8?q?Nuno_S=C3=A1?= , "Andy Shevchenko" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" Cc: "Chris Hall" , "Patrick Edwards" , "Kurt Borja" , "Nguyen Minh Tien" , , , Subject: Re: [PATCH v2 1/8] dt-bindings: iio: adc: Add reference-sources property X-Mailer: aerc 0.21.0-0-g5549850facc2 References: <20260625-iio-adc-ti-ads122c14-v2-0-ceb9b0b561cb@baylibre.com> <20260625-iio-adc-ti-ads122c14-v2-1-ceb9b0b561cb@baylibre.com> In-Reply-To: <20260625-iio-adc-ti-ads122c14-v2-1-ceb9b0b561cb@baylibre.com> On Thu Jun 25, 2026 at 4:55 PM -05, David Lechner wrote: > From: Kurt Borja > > Some ADCs have configurable voltage reference sources for each channel. > > Signed-off-by: Kurt Borja > Signed-off-by: David Lechner (TI) > --- > v2 changes (compared to Kurt's RFC v2): > * Drop maxItems. > * Drop 2nd paragraph of description. > * Make reference-sources plural since it is an array. > --- > Documentation/devicetree/bindings/iio/adc/adc.yaml | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iio/adc/adc.yaml b/Documen= tation/devicetree/bindings/iio/adc/adc.yaml > index b9bc02b5b07a..12800737d4fb 100644 > --- a/Documentation/devicetree/bindings/iio/adc/adc.yaml > +++ b/Documentation/devicetree/bindings/iio/adc/adc.yaml > @@ -73,6 +73,14 @@ properties: > device design and can interact with other characteristics such as > settling time. > =20 > + reference-sources: > + $ref: /schemas/types.yaml#/definitions/string-array > + minItems: 1 Is minItems necessary here? Its causing dt_binding_check to fail: ti,ads1262.example.dtb: adc@0 (ti,ads1263): channel@0:reference-sources: [= 'ain2', 'ain3', 'ain2-ain3'] is too long I don't really know why, but removing it fixes it and allows various array lengths. > + 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. > + > anyOf: > - oneOf: > - required: --=20 Thanks, ~ Kurt