Received: from mail-ot1-f49.google.com (mail-ot1-f49.google.com [209.85.210.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 E4DD137DABC for ; Mon, 31 Aug 2026 19:44:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788205468; cv=none; b=kRP5LYlmKxx9ZUbFXOmmMXCVMJKx3l7isbF2ym/vh0SZghP9BxQ0UpCXEsTSMrinem5ZAcV9Sgsn58SgrT2UcF9HXp/UtD3rVaEWnSJl4LdqgMGmP4YmwwI3Ec8IEzn8j4Rs6/O9qKg1GHOJ3LZ28ycUunW2cdP+7O9sjH1U7Gs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788205468; c=relaxed/simple; bh=eWpXRhxHS2WF406Ert5+8cxUb29KHQLVMqQPlC+E5vA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=aaneaWvbpUljEbIhQwaxzuJXLp+dqPV4ZEiSwq684pDob6vNhWVFGlVkXCBqe4ebpX9hJfouNR2sDq4tDrURGkw68J1I2Odzz5OQlhm2NaCOSOiW0XcKkxnwxm8jBCfNQrhwt9Iyqe7ak7XC0glY7uNC3h9ZjM6r3+cW2rbTJWM= 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=d9fJEm2/; arc=none smtp.client-ip=209.85.210.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="d9fJEm2/" Received: by mail-ot1-f49.google.com with SMTP id 46e09a7af769-7f4df360cc9so309710a34.1 for ; Mon, 31 Aug 2026 12:44:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1788205465; x=1788810265; darn=vger.kernel.org; h=content-transfer-encoding:content-type: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 :content-type; bh=IGP7GGTvrEowNva1rbNoI+VHdtW9WuY11cAsUH1ZGFI=; b=d9fJEm2/EoHMYtc3tZWjdZcR21hq8CFqm1RLJkTqk3Y95VoFSTqW593IZ5r2FIYqK2 jzgP3BAqTfR5LfaUJaaW96Wknlie6LmkDuOKuYRH5VqJXqYGMwWd3GuLXAKuLj16jYIy ahywBIPSl/fFsnKUlEX+ahiwE17ijDmXVoUGdmTCgN2IhvthMIefzA3ewh6JIK/bjVar PglNOU8MkgfKqWwebFP5/6AguRNODrokx04Edib6BQGg+tR8YRf1vQDgx9Dkwhd70QnH 2JwyAPX+dJHjgVqv8jFcyuYCTTfXG4lmeRi0wh8JCGCjAVtFIoqG4YcsusG6I0ZZ+dFz DfaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788205465; x=1788810265; h=content-transfer-encoding:content-type: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:content-type; bh=IGP7GGTvrEowNva1rbNoI+VHdtW9WuY11cAsUH1ZGFI=; b=fFKfTCNDvjk13LsOc4RgYVo/6YF1zSQzd8ulj1v1tp/8xVvcjTDYk4iaJHD0dDDLTH f+E0vV3wb+JLzg6PfbobFcmXaVWwxKRBBlqSizhqwEJjQf3m/4ZUxJLiRtNLqhmdRGfe xdVKfzCwg0JqeQ/eW7vVwi6k8oiQHKIiPLJwN5PoqU0K7sewmtMSiBMkJuLezrK+2s3T c7/cV+x+XcW9pY995u8DdyqVhIx8lh2jX2oCCLMjT5OkZgIkqVAQg216AGMPP9bIHLtm AWwM9CGF+5RAejpNINtaNxm7sWpqduqRSJIRjgJIMUM3cG7Mb4+1stl2lTtZm66MbRSx odRA== X-Forwarded-Encrypted: i=1; AHgh+RoIKxmnis6MrFZ1iG3yFn9H6n6ZmyFKb/nimv2GhmiZqkcpq8idqf9k2oFuxmFUh3RZcayuEggQ2tc7@vger.kernel.org X-Gm-Message-State: AFuF++mMNvBlKsn6rfCp6j42PIs0MCfZsQhj1nTRaLQLtwe/+42m8zQk qixchAAZoHRWHQrl/hgLlkxp8BCEx6p8yr7z8qTLfLQjzlnC21frV/rTcKRsq9lKCM4= X-Gm-Gg: AR+sD10iUYpvKS9YT1ncnF7eqgT1a78lpb+HMmqszC8jPqggljvOWfmm97dDyapg1lU QKPOuHTqUSBjdLsL56vvahKJOhFB+8mGwzBQ0x2507iLMUSnuwzvs69YfLprVE10A6Egbp/DKox OcG1sngLEwtleQDK3mkKvGUXH9NEKv12FtNljFMdgSKDSG1N9SDNj9/wHHB7Qz1WvAUQbniSlVV v7R1TklxvAiTynkNUS6cbvL44QGkjdH69byvXrN7zxUhyNtRdhNkxwe7B86bRYzC0URdbVx9NRE uMT6rVNR6nqrtvmlAh1KDT2dv1hAF8pOePWeXNnKjzgUx3uFxdAuOgxJXGETb388tV7Wj45P7FI Z/g+o+x8Ai9kKXxMBdU3miHXIe6Fhe3MaRBHkrW9WpQuh0JlZyeTLJr2L6Eo+N7jkHtOAkcQKHa gP2g6pQvIR3EyNnz278dvG11zPIQ/8xVSPKerZtSurAfJtnFMhPWx8BfphRAscn8I59g2eOlN67 YMvVTo0gmJfZIt5xXqcjAKZsCC9y/M1N9I5 X-Received: by 2002:a05:6830:8545:20b0:7e9:ca12:37bf with SMTP id 46e09a7af769-7f68f5d5015mr470147a34.7.1788205464675; Mon, 31 Aug 2026 12:44:24 -0700 (PDT) Received: from ?IPV6:2600:8803:e7e4:500:778b:da9:a8a1:bc78? ([2600:8803:e7e4:500:778b:da9:a8a1:bc78]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7f4fa7e92c1sm8939784a34.8.2026.08.31.12.44.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 31 Aug 2026 12:44:24 -0700 (PDT) Message-ID: Date: Mon, 31 Aug 2026 14:44:23 -0500 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 02/10] dt-bindings: iio: adc: support the TI ADS126x ADC family 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: <20260828-ads126x-v4-0-1dc27e9c0260@gmail.com> <20260828-ads126x-v4-2-1dc27e9c0260@gmail.com> Content-Language: en-US From: David Lechner In-Reply-To: <20260828-ads126x-v4-2-1dc27e9c0260@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 8/28/26 1:38 AM, Kurt Borja wrote: > The ADS1262 and ADS1263 are 32-bit, 38.4-kSPS delta-sigma ADCs with an > integrated PGA, internal reference, excitation and burn-out current > sources for sensor biasing and diagnostics. The ADS1263 is compatible > with ADS1262, but includes a second auxiliary ADC (ADC2) to perform main > channel (ADC1) cross-checking measurements, system background > measurements, or temperature compensation of the primary sensor. > ... > + '#io-channel-cells': > + minimum: 1 > + maximum: 2 > + description: | > + The first cell selects the channel by its reg. The second cell selects > + between the main ADC (ADC1) and the auxiliary ADC (ADC2) as follows: > + 0: ADC1 > + 1: ADC2 > + I like the suggestion to make this always 2 cells. Makes it simpler. And to put ADC first. And maybe make the first cell take 1, 2 so we don't have to make the translation? > + "^channel@[0-9a-f]+$": > + $ref: /schemas/iio/adc/adc.yaml# > + unevaluatedProperties: false > + ... > +allOf: > + - $ref: /schemas/spi/spi-peripheral-props.yaml# > + - if: > + properties: > + compatible: > + contains: > + const: ti,ads1263 > + then: > + properties: > + '#io-channel-cells': > + minimum: 1 > + maximum: 2 > + patternProperties: > + "^channel@[0-9]+$": These don't match the pattern above (missing a-f). > + properties: > + reference-sources: > + minItems: 3 > + maxItems: 3 > + default: [internal-p, internal-n, internal] > + else: > + properties: > + '#io-channel-cells': > + const: 1 > + patternProperties: > + "^channel@[0-9]+$": > + properties: > + reference-sources: > + minItems: 2 > + maxItems: 2 > + default: [internal-p, internal-n] > + With those fixed... Reviewed-by: David Lechner