From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f176.google.com (mail-dy1-f176.google.com [74.125.82.176]) (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 B74AA40B0FA for ; Sat, 10 Oct 2026 06:53:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791615214; cv=none; b=sAWemnE1wJyLOMekytRXQEmOmv6MwCum+gX45w3sLeNvOA7oDu+ZcplLGfMb0FpWOkRUbOOjBaewdQ1OqUnPoR0NWE8Pnxw8y+mp7WTFSk5CckoQf15tSFbcHjJYYuHIHeNQCxXovm8kJbMbgZwHbC6ufklFtSF7UtRkYM7wWdA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791615214; c=relaxed/simple; bh=BJbdZ1qjwzTIJ8gWfsXQMP60H9ANekoYJIQma6jacu8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DtBPNlKaQFJAbMqJ4eMhd0eotUxXlBGQB1nzJo8pBgA0pOOAtZWfAc3z7Jg/xT7QHFf2cfomBPE5jELUciFaC8XyehYWE/mNYO6rzVaMUKjl0HZQYdwOzb6MQxh8bmpfDFar1tX9Ixs/04XtFAxoY3SmYh/7vzXAxVGnFcBG0G8= 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=GcEB9/ty; arc=none smtp.client-ip=74.125.82.176 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="GcEB9/ty" Received: by mail-dy1-f176.google.com with SMTP id 5a478bee46e88-353804b591eso717447eec.0 for ; Fri, 09 Oct 2026 23:53:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791615213; x=1792220013; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=nfRbfRDY9eIlz5MV6EtJbnJLniP1KYHIxxFADZtz7ZM=; b=GcEB9/tyjEcjKvZmynesAVKPu9gZZisaNeXUyV2VmZUb3bfcP25JzxQ5zHZHPSv8HE qPo2GoURn9hgwULYaj8XVj4nj5rZqYmkY/hjXvzZKSQ6uc2grJ4MNrCuKarmETGA5gkL hlxOWaC7B8DcWjOP50INEMHy39jAAVOUk7BeFc/dRfuRjBc3j1kyY6Cus+oXv2tmELpJ fF/aEuKGE9+Qnx9sVnrO8e1vOuepRIpJz0BzQsmc8fKwTKmUr4NM99BJ48i4EQdcRegN sHZxxu0fDC/qvDAHnJIcbORiukLnrdYJmxmJhBsAUHLfytT4kbtBfCTEm2eG302n9mat LYgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791615213; x=1792220013; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=nfRbfRDY9eIlz5MV6EtJbnJLniP1KYHIxxFADZtz7ZM=; b=1VFI1/JZsOlNLf1+YwqY2NaI/8AZJuh8Jl7Xbs5wtUJwK5tDKPH+729WO1IfRI2zh1 2cyzGG9cV4dTFrHmU2VmhMc2IhFJbFM6nRITag7IAvKFQ6JrcE3abltuZqktpXHQlbCy vMV/maA/finGM5xm7mOcZutv8BlU8BeXXlHoccNW00jPvOcP4VGQ8gHbVHJMlDluWuv9 qkediM5pD9sbmvnS1tpfh1VO+VL2usNlX90iu215Vf0sKJkKSiO/FXA67LD7vHQHTmD/ xUwJy0P270UZBt0xow8q+I8oPNoXIkrWfLyhzU+SBIGzyzfLo3G0497QCLddmT3ENqg2 Wgcw== X-Forwarded-Encrypted: i=1; AKwUvBxDSjuLkEKrbI9wu3MMt38MHKkETs+HMOT+WNjE28YqgWXtKRaNpj5PI4BCXbBG8yRGNrFhAYEdouE=@vger.kernel.org X-Gm-Message-State: AFq9FYKpRKhoO5IvB0E4U6YWLcQV5TdIohiHoeHYfD7Nbtk3p0PJcxTt 17FR0cIIjsj8zOt7Ce0Fo9VMX0Ksm8ur6T41eDMuspjMtUXeU8Mijmqq X-Gm-Gg: AYBFou36UVnnl8Z7ueWdOOMumUAyjM8FpwBfCKXYI1H0K5U6S7y88jUDZImleJ4ej8s sEhu0DYyMBOTa/NTSNGczj8kg2KYD5XxgxjMtM0byeyzDtzV9kLlUKWKTnn5h6o4w/z9B29mqne BAXFdE1bkN5eIreYtU62h9kUP6K7zfYgb1GzfImQnVq7qVxeZ29+k6C4HXBABUzPI42EnM91fyM sJZj1o5u+6+KvygtFH+vvBlTeK9DdulZydA4Bqye1e3k089uOi40zP6dYn/E+ufDLYK8x7j/X6A 3zsCEkYjZWYw/k5s+5e/1ZtOsK2X8O9TzqtIy+MtbDQ28ra26EQd6MSm4ONMKbc1XCNCTUaud0H RdEMSqsot5XBzfo7prRgFnV32YTZENb61PcQh4VfwlkVC2OIABgc7di22WlMaPaXdD+k2ln4Po3 uuGU/DdnlRa/17s3TQf7SwvYTa62wD+4Q2ILczTa12LQjJgcJ99W5Bus2ZJ4vQyng1NHxXobKv/ KuaAJL1M+5mMLNYJjdw7lC+QUd5UcGnZPXQ6Ss= X-Received: by 2002:a05:7300:8819:b0:351:657e:a426 with SMTP id 5a478bee46e88-3537dc8b4a4mr5992720eec.0.1791615212719; Fri, 09 Oct 2026 23:53:32 -0700 (PDT) Received: from [192.168.100.70] (host-200-61-172-117.iplanisp.com.ar. [200.61.172.117]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3537cacb5e9sm13009650eec.20.2026.10.09.23.53.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Oct 2026 23:53:32 -0700 (PDT) From: Kurt Borja Date: Sat, 10 Oct 2026 03:52:40 -0300 Subject: [PATCH v5 01/10] dt-bindings: adc: add excitation-current-chopping property Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261010-ads126x-v5-1-49e331cb2fed@gmail.com> References: <20261010-ads126x-v5-0-49e331cb2fed@gmail.com> In-Reply-To: <20261010-ads126x-v5-0-49e331cb2fed@gmail.com> To: Kurt Borja , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , David Lechner Cc: =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Conor Dooley X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1781; i=kuurtb@gmail.com; h=from:subject:message-id; bh=BJbdZ1qjwzTIJ8gWfsXQMP60H9ANekoYJIQma6jacu8=; b=owGbwMvMwCUmluBs8WX+lTTG02pJDFknHzzdczzM3LlX+XhiUO3R7p/mlaxPPHuO9m5jaH1nf Pll+NaNHaUsDGJcDLJiiiztCYu+PYrKe+t3IPQ+zBxWJpAhDFycAjCRXn5Ghvcvtz5yuOl9cvI3 Lekz+27/vpa6peoMbxdr5NL7k45++beD4X9awheD4nth8/3tr8cc5DqtwDNfMjpudh/jb70NxeH pjqwA X-Developer-Key: i=kuurtb@gmail.com; a=openpgp; fpr=54D3BE170AEF777983C3C63B57E3B6585920A69A Add a generic excitation-current-chopping property. This is a feature seen frequently in ADCs that are designed to ratiometrically measure resistive loads, such as RTDs and strain gauges. Enabling this can reduce any error due to excitation current mismatch by swapping excitation sources of alternate conversions. This can have side-effects in timing and filter response, so it is not always desirable to enable this feature in some applications. Therefore, it is best to make this a property that can be enabled or disabled in the device tree. Suggested-by: David Lechner Acked-by: Conor Dooley Signed-off-by: Kurt Borja --- Documentation/devicetree/bindings/iio/adc/adc.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/adc.yaml b/Documentation/devicetree/bindings/iio/adc/adc.yaml index b673eaa5d072..fe20aa8f1bfc 100644 --- a/Documentation/devicetree/bindings/iio/adc/adc.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adc.yaml @@ -109,6 +109,14 @@ properties: sources. The index in the array corresponds to the same index in the excitation-channels array. + excitation-current-chopping: + type: boolean + description: + If set, the excitation current sources are swapped and averaged on every + other conversion to reduce current mismatch. This generally comes at the + expense of added settling time between conversions, so should be omitted + on systems with high-frequency signals or high data rate requirements. + burn-out-current-nanoamp: description: Burn-out current sources provide current to the channel's input pins for -- 2.55.0