Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1075454lqj; Mon, 3 Jun 2024 09:23:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVosYdd6U/VdJ6QR2JiNR8mdirF2fMKSchn3lxLRyWjWcx/owYeCuvrsqZ1CwccHWqIIXXwMtCnuw27EALhLJCpLkTSiui+ReqZLVtdhQ== X-Google-Smtp-Source: AGHT+IH0IMacR2v2VT+5OXZBYXP++SQKsMbPvSoUHWWnBfQtOBSOk4/QePXi6UOzB0eC3bxX0byh X-Received: by 2002:a17:902:db08:b0:1f3:ccc:7cb5 with SMTP id d9443c01a7336-1f6370c151dmr119453725ad.68.1717431836133; Mon, 03 Jun 2024 09:23:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717431836; cv=pass; d=google.com; s=arc-20160816; b=QRB4HpYg1b7nteMilD5n7c9/mu5AjCEGmS1ivImFu5YzcVHnOVqwEa1/GvWoobMFnL O+MhVlOTp36sQ0c/W7LttCXo8VTCUKOf9ARt1uEOxDC36WfH49GktADnj07vsQ/KdvHr RcnMkSt61qlpTcjWCXl4NujMoZw76XA7Om5uCs63s1GkehbbnW/b0rjbziHHHHfeHWd0 WC1feGniXQ4AoWiAnZ/0nbthDs8bO1k0Bg7TyUDNAQiAW6XielSXEzGQoruOZnNFy15i 8nbofMwY1krlYSq8ulKQJQ03KuT/ihwODnTu2eolC+Cp8QjCsFeMqqb5N01CakVraeR6 YZhw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=g7Pc2hHesS54VVrcbRk3sJCEKmCm8hR3DU6H0qpIQiU=; fh=LhdatDguh+IuN1lDyS6rzhx9ubttSYYZpDCGFgekH1E=; b=I4TRpypfT3WObrQF3Bd54Q3G9EsJ9D8xnpa+PJalqap4OQfnkrizs17nVQQpQdEA+w /AEF1xtH8knqwzmF3JPup5sUXQ2cLOnfqxgPF2FLvhsM2QPlzYGM5GtxFXLiAu4CCebL LNDLeQYpGiNQUbXJjVps6UV2Z39Yd8XXcT+oz8sI7BpiS4UJv6OLo6UnmyFAA642qeD1 2M0ten2AQsaUu0fnq95iik2nkin2KhkX38JEJ0JwpwCNVkx6dpJueHnUx2db+veLrVx4 BjtwLccjdUTZv3b2yjHbBlDD8/bjeaHbFrstvd1OHELgAcZvWHlYOJoIBwFVJA1vOyGy oAaA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UACeeEkz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199434-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199434-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f6324187c4si69104855ad.573.2024.06.03.09.23.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 09:23:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199434-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UACeeEkz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199434-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199434-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id AA244284139 for ; Mon, 3 Jun 2024 16:23:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 53CF413792A; Mon, 3 Jun 2024 16:23:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UACeeEkz" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4FC97134409; Mon, 3 Jun 2024 16:23:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717431794; cv=none; b=TrI8Rh+s9kAZDFsI2FuQQnYS8LDLsdYu/xzmwJd5TFBxKurMgPJ5y73CUtC+6XxPU9aMnF9I6ypPD1FWrgkMOQXbUcgUUdegZpPKTTBfiFXiurqt/qlSRqZVLd8e3bAuMhmbkxx5N7MBQ6hgSlUnYOBP5jiTs9/t5FN6ZTOAG7M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717431794; c=relaxed/simple; bh=HfO/yuYx9sp/Ilgrbzk8A2s9uHxyK412PuzRVCvRPTI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=T8YchUTBKR2ENocgTfqiPQpk2tBg9UBXyiug62lSgfh6QWbvNoEnQFC7MbE9H4tPZDvUYSuNG8C+hN2q5Kcg/9Y9V6rG0NFe5cY6ihzIaAItMEbaq4zPKEXPyanfdoXnHD4mWn34QMParRGf3ThjfFqOiohuUIteEP1zgfLz7PU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UACeeEkz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id DF0B4C4AF0A; Mon, 3 Jun 2024 16:23:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717431793; bh=HfO/yuYx9sp/Ilgrbzk8A2s9uHxyK412PuzRVCvRPTI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=UACeeEkzYa50AY9lqhgIgAUcc+WWdaRaqM3//bEKhI08zDrhIyGca4go9QBVzWXoY N/HhNemrYbBFVKTI3j9SV6sbY7oXkLiDSS10DCx/oKPyadgeHTV3W4l1WAgOqLr2/2 qs8LBzJGW1ZUogfXoFpT3NB+N0KUV9Ov+gqjLsWMaaPEQVL4+fDzs6LWCuJ3b1A0Jp PGImNAYiqKNQbo2t2ZioWYx2p5qakOdgmGiOTrcE53eiKtoReeKkOIHwlI6AgO+a/S 7GpjOW67SJHW+iQMr3LRgVSF//4YaE7ek0qHooWZ/C7gJ73ymNu8S2Eiuvj0NCzV0L c+oomU+EBhesw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB2B3C27C50; Mon, 3 Jun 2024 16:23:13 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 03 Jun 2024 19:22:59 +0300 Subject: [PATCH v5 1/9] dt-bindings: iio: adc: Add common-mode-channel property Precedence: bulk X-Mailing-List: linux-kernel@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: <20240603-ad4111-v5-1-9a9c54d9ac78@analog.com> References: <20240603-ad4111-v5-0-9a9c54d9ac78@analog.com> In-Reply-To: <20240603-ad4111-v5-0-9a9c54d9ac78@analog.com> To: Ceclan Dumitru Cc: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , David Lechner , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dumitru Ceclan X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1717431792; l=1609; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=yba6tP7JS+6mHrdlyW824eKSL9BwktJrw/w3K4BKVMQ=; b=UMNtbTu2auA50gLwkPnJfIR725zXZRSZvm72Yngt4yYk58WXq+zrgy+iiwOmaQet+V06k34p7 X5iBXxgrvDrAPcAy+sPjeqDQwHT4CqvEZH+jhRhai4D0/Rk0pYTV4iH X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Dumitru Ceclan There are ADCs that are differential but support to measure single-ended signals on the same channels by connecting a constant voltage to the negative input pin. This property allows to properly define a single-ended channel that requires two inputs to be specified. Software can use the presence of this property to mark the channel as not differential. Signed-off-by: Dumitru Ceclan --- Documentation/devicetree/bindings/iio/adc/adc.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/adc.yaml b/Documentation/devicetree/bindings/iio/adc/adc.yaml index 0a77592f7388..8e7835cf36fd 100644 --- a/Documentation/devicetree/bindings/iio/adc/adc.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adc.yaml @@ -46,6 +46,17 @@ properties: differential channels). If this and diff-channels are not present reg shall be used instead. + common-mode-channel: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Some ADCs have differential input pins that can be used to measure + single-ended or pseudo-differential inputs. This property can be used + in addition to single-channel to signal software that this channel is + not differential but still specify two inputs. + + The input pair is specified by setting single-channel to the positive + input pin and common-mode-channel to the negative pin. + settling-time-us: description: Time between enabling the channel and first stable readings. -- 2.43.0