From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (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 7EC5A34A78B for ; Mon, 15 Dec 2025 14:49:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765810176; cv=none; b=hFfkZcazfWLensStEi54vaGL2hlI2uDQp3ZWflmBvGgg6I++ksqXE6XGVsYgdUrpUTE2tyRa+dEP+ZESQ1yLiA8C+s9DttXdPe9qaNlAy+xWIG/BEjve31q5MCR8nejD14JUysQmmDvL4mGAkFtiCVyCv2RfgB+ntsz8QyMoeMs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765810176; c=relaxed/simple; bh=/m+knTh0E1M2rZ0Z8fiBqCyqvapY0NF86oC76d3XA1s=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=bYlCjlL/tjs5xQuYac6hzX4O29cfM47ccGHTPGWfkwq8+45yP53+WES8i0k767jbyQA4Of2Lu4ZCC0dPbPvm/OYcb5wWsWuxrq6CFBMRhvtYIbgcZVUoV3eHMNfWPRQOUtjR4JsDxndgVXMmifu4Y1pgo8uwpcf8Yzl+dvsWZqI= 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=aBfgKRJ/; arc=none smtp.client-ip=209.85.210.172 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="aBfgKRJ/" Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-7f651586be1so1533014b3a.1 for ; Mon, 15 Dec 2025 06:49:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1765810175; x=1766414975; 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=5wMsSg+3EyGIctnEV/0UUxXYttTh9TK1dkuUNFrw/h0=; b=aBfgKRJ/nDzY+4Oh5cv6gGFBY6XvgpwLMwzSqG2Bgzz8ecyPts8nVbwcytfpc0IeSd 0P5+dQW5Sgrbt9wKPrt4j4g5Wpfognhgkzy0Xlsa6iK+lmBwA7eKWo6MRs+qPUaYZy4f Fr6yf3KdaeeL5TDX51uHlePoYJyHzuhtcWtO1JcvaJEAtKPJWZO1Sng2qsdRlL7gnCZ7 iEU29voX4FAxkuaSanF+3ZqsNB/t5ePa1nzwDkVUALcRmLuNL1pDUuZtf/eE/6cCtm6y d+ga1ZP8RmDvPWzt38Q1aYr0mdbWahZ9hZEGq2+ht+zVrHCrolZf2ScsBBwsPrZIRcxq 049Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765810175; x=1766414975; 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=5wMsSg+3EyGIctnEV/0UUxXYttTh9TK1dkuUNFrw/h0=; b=lvHuRZUQ2KReUgqUvHXDKQgmbCbKD8lAABwAJebSj4W4BxZbUw6W5eC3tNAA0ZGXVX 4ET/dHe0xb4xOMHyAEGtNwjvU//T23dYFf+l8aq7EhgBn2V5+eyFFfG1oVnmbFYj414M zWUfBUHGYs31psxm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:a05:6a20:12c2:b0:35f:5fc4:d892 with SMTP id adf61e73a8af0-369aa15fb58mr10832984637.19.1765810174507; Mon, 15 Dec 2025 06:49:34 -0800 (PST) Received: from ?IPV6:2402:e280:21d3:2:50bc:8636:2ee8:5158? ([2402:e280:21d3:2:50bc:8636:2ee8:5158]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c0c2ad5663dsm13293460a12.17.2025.12.15.06.49.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 Dec 2025 06:49:34 -0800 (PST) Message-ID: Date: Mon, 15 Dec 2025 20:19:27 +0530 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 v2 1/2] dt-bindings: iio: adc: Add TI ADS1120 binding To: David Lechner , Jonathan Cameron Cc: nuno.sa@analog.com, andy@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20251109141119.561756-1-ajithanandhan0406@gmail.com> <20251109141119.561756-2-ajithanandhan0406@gmail.com> <20251115183144.15b3e236@jic23-huawei> <5cb6243e-f47b-48dc-9f43-299cde632e08@baylibre.com> Content-Language: en-US From: Ajith Anandhan In-Reply-To: <5cb6243e-f47b-48dc-9f43-299cde632e08@baylibre.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 11/18/25 5:49 AM, David Lechner wrote: > On 11/15/25 12:31 PM, Jonathan Cameron wrote: >> On Sun, 9 Nov 2025 19:41:18 +0530 >> Ajith Anandhan wrote: >> >>> Add device tree binding documentation for the Texas Instruments >>> ADS1120. >>> >>> The binding defines required properties like compatible, reg, and >>> SPI configuration parameters. >>> >>> Signed-off-by: Ajith Anandhan >>> --- >>> .../bindings/iio/adc/ti,ads1120.yaml | 109 ++++++++++++++++++ >>> 1 file changed, 109 insertions(+) >>> create mode 100644 Documentation/devicetree/bindings/iio/adc/ti,ads1120.yaml >>> >>> diff --git a/Documentation/devicetree/bindings/iio/adc/ti,ads1120.yaml b/Documentation/devicetree/bindings/iio/adc/ti,ads1120.yaml >>> new file mode 100644 >>> index 000000000..2449094af >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/iio/adc/ti,ads1120.yaml >>> >>> + >>> + vref-supply: >>> + description: | >>> + Optional external voltage reference. Can be connected to either >>> + REFP0/REFN0 or REFP1/REFN1 pins. If not supplied, the internal >>> + 2.048V reference is used. >> How do you know which set of inputs is used? Looks like a register >> needs to be programmed to pick between them. > I would just make two supply properties for this, ref0-supply and ref1-supply Hi Jonathan and David Thanks for the review, That makes sense! I'll change the binding to use two separate properties:        - ref0-supply: for REFP0/REFN0 pins        - ref1-supply: for REFP1/REFN1 pins >>> + >>> + ti,avdd-is-ref: >>> + type: boolean >>> + description: | >>> + If present, indicates that the AVDD supply voltage is of sufficient >>> + quality and stability to be used as the voltage reference instead of >>> + the internal reference. This allows the driver to select AVDD as the >>> + reference source for potentially better performance. >> This one is interesting as I don't recall anyone arguing this made >> sense before. In what way better performance? Are their boards out >> there where this definitely makes sense to do? >> > Seems harmless to have the property even if no one ever uses it. But I would > be curious to know the answers to those questions too. I included this property based on the datasheet mentioning AVDD as a possible reference source, butit doesn't claim this provides better performance, and I don't currently have a specific use case or hardware design that requires it. How to proceed ? Need your valuable suggestions. BR, Ajith. >