From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f178.google.com (mail-oi1-f178.google.com [209.85.167.178]) (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 672971741FC for ; Tue, 18 Jun 2024 19:47:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718740060; cv=none; b=Sm8YcF3quPlFjMG7hi19e8GAD5gzSCbCRmetFA9nWa1HGmuF1Oml+tfihRq+18dn52YzEjtRh85aEvQeL71zXyg0LVTlA82mQ+u/8xhCDL2sxRsBB1ySEJlD9kxVGvmyFF6PVup8E6x1UzxFCHfLwKf0NP+O/2kY0Mh0gGJ/+lA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718740060; c=relaxed/simple; bh=80bOpDur7f/VLqFOdk85Pc7ZTNvF+5oggXMjPZy+ow8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hG8YWDz6Ggz7gOqjz8MJ19VN05azJ2E5RSEzkXOytd/cZrYmYy5x92ytBtscCBr9C9FgFBdP/7wOm6hz77TgYmJw9xwZG4YzxTsLuM+ryLf8rk+Il2JN4uXOQh0jdZ1KHq7AIsl/SWEAY1lm2Y3SyjsqhcNGZOPRa1xucKipqtU= 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.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=C0hE81uU; arc=none smtp.client-ip=209.85.167.178 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.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="C0hE81uU" Received: by mail-oi1-f178.google.com with SMTP id 5614622812f47-3c9cc681ee0so2779562b6e.0 for ; Tue, 18 Jun 2024 12:47:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1718740056; x=1719344856; 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=8HJKNnvc8aggx0Ee52gIMjiePYGprFwsF/CuXFArkqE=; b=C0hE81uUdTeffw5oSge7mNrryhFeGmsy9ITK9gvX+9vrWpbr6St80ancopEYtsRQv9 aZ6U9mrc6wRD43Py+NRrto2+0nJXxmuXfeWKU2KOaSTrq3CTLPZs7mKMGES7TB1+K4eh aDqxdZ2hz0U7ohZ5EY1YGBkeE3AT8JUXeV9wUA3ArzRELAGOjibmEb7cxw5Mh5PY6e+Q WfkiBaSa+952KaqPVb7fIieJXa11hMJpSLHNeNoIdddOfnPEHpf9uE4dHaLLxwTEhGqg 5Qw59ida3/oHcpLaaqfga0++nC7TwViwUf04aT4D4FKypLmxBaXxKMvKt/X3FDtnq+y2 JTHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718740056; x=1719344856; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8HJKNnvc8aggx0Ee52gIMjiePYGprFwsF/CuXFArkqE=; b=KGLYy8ed9b67yWrQEerJamjtv7CliJZ/R2Ly0Q39Q5rtogmAq4aqZIuXqfoeqyz11a 8Y4F1M0j17/YDycwVovU5M0/IwUeLdqIQ0SAbRmzQfcsIS+eYB9dqYImRQhBhnF3goNS wbgWyU/QRb3voNQYsfUenGUUaHL2unqwUawK4+nEk5R5U9AGxUTpNV47Q4aG2IK8RPvR kyrTW4ukGNxyG19hZCByPrPdvlfIPzljET09Y29GWrYCGTnilU5UffAshLUhZNZ3wvsJ JqGRxamPa39BQsWPHBQXSS0mrvwDTTxO7+ZNVpSe//Qu5gIU3fBxa6I+DIqGE4EG2dVq qHRw== X-Forwarded-Encrypted: i=1; AJvYcCW24aEmMaSNrpb1dJZmbI7p6oWSEwh04fUEeZ95q4kjS0XRAsFCXTvHGbYeItHYzpwrrA+NZu7iHDwDWzYMYV5qh12zdDDwRHlf X-Gm-Message-State: AOJu0YwwxRvPp69m7BDC76wMpaTriPQ9V4DvqSRmyNQH5jMzy2jERvsP LMsecFL5q2JLw/0C9yISF+1DPJIm0zg7689E9THOLK1cXgiqxXhc2/ABuYyyEZE= X-Google-Smtp-Source: AGHT+IFoPn43lF+j3aRcMTC4F1x8qcmNWprQM/JcNVkz3sSPT6L3Dvzuqi3I5g9gcSivGrFlNsc0kw== X-Received: by 2002:a05:6808:1705:b0:3d4:41b6:6c4e with SMTP id 5614622812f47-3d51b9b86a6mr867052b6e.16.1718740056313; Tue, 18 Jun 2024 12:47:36 -0700 (PDT) Received: from [192.168.0.142] (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3d24762b9a2sm1881135b6e.24.2024.06.18.12.47.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Jun 2024 12:47:35 -0700 (PDT) Message-ID: <78dd5a21-911f-445f-95a0-4ece55b0721f@baylibre.com> Date: Tue, 18 Jun 2024 14:47:35 -0500 Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/4] dt-bindings: iio: adc: add common-mode-channel dependency To: Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Michael Hennerich , =?UTF-8?Q?Nuno_S=C3=A1?= , Jonathan Corbet , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org References: <20240617-iio-adc-ad4695-v2-0-63ef6583f25d@baylibre.com> <20240617-iio-adc-ad4695-v2-1-63ef6583f25d@baylibre.com> Content-Language: en-US From: David Lechner In-Reply-To: <20240617-iio-adc-ad4695-v2-1-63ef6583f25d@baylibre.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 6/17/24 2:53 PM, David Lechner wrote: > The common-mode-channel property is only used in conjunction with the > single-channel property. This patch adds a dependency so that we will > get a validation error if common-mode-channel is used without also > specifying single-channel. It turns out, this might not be a valid assumption. See https://lore.kernel.org/linux-iio/20240617-iio-adc-ad4695-v2-1-63ef6583f25d@baylibre.com/T/#m7b921cf9a7deb4a4f02dd2f05668a3dd99232ee9 > > Signed-off-by: David Lechner > --- > > v2 changes: > * New patch > * Depends on recently applied patch [1] > > [1]: https://lore.kernel.org/linux-iio/20240607-ad4111-v7-1-97e3855900a0@analog.com/ > --- > Documentation/devicetree/bindings/iio/adc/adc.yaml | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iio/adc/adc.yaml b/Documentation/devicetree/bindings/iio/adc/adc.yaml > index 8e7835cf36fd..5baef30104dd 100644 > --- a/Documentation/devicetree/bindings/iio/adc/adc.yaml > +++ b/Documentation/devicetree/bindings/iio/adc/adc.yaml > @@ -80,4 +80,7 @@ anyOf: > - required: > - reg > > +dependencies: > + common-mode-channel: [single-channel] > + > additionalProperties: true >