From patchwork Mon Jun 17 19:53:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 13701333 Received: from mail-oi1-f174.google.com (mail-oi1-f174.google.com [209.85.167.174]) (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 7C15AD53E for ; Mon, 17 Jun 2024 19:57:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718654227; cv=none; b=eHuPETkuNoydr1vqw8nwY20RgnnRpbEwgdtikaCtV2VGmDy1le1qjchd/eCUQNUYpjavFQxzzaQvhIqPWxcnO+oNp51k1y1IkUnvVNwxxw2i5qr6WEmzKO8h0fDBebCqKMlBoTiDUjmkwus/l9v61iUgfy4iKZINGLxWQtKAvsY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718654227; c=relaxed/simple; bh=ScBjloLOcmR/1nZUDV65s6oEOBC76uEbi9Qmw0FwB4k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=AmsNwQERMtPQleuh8V6qNNRZUe+M/jC8+4bGWOdoFchKv8vv7NKRl7CgmNIV3u/PEA4/MqQLItiGZTYTxbMJUR4rnYoQ81tBviN72MzQIgNb7Sczn04nKfYx1BWhBk4nCUUY6Sdq7MIIEpFS0ySknzB7XxGadRcx/5UGeCrec5c= 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=ckQhqkVE; arc=none smtp.client-ip=209.85.167.174 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="ckQhqkVE" Received: by mail-oi1-f174.google.com with SMTP id 5614622812f47-3cabac56b38so2798096b6e.3 for ; Mon, 17 Jun 2024 12:57:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1718654223; x=1719259023; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JmeUj+Mt469bmKZm8v2IWEIIRLOnDTCxs7wy1b/+0yY=; b=ckQhqkVEXZ42sPxIFKHQZ2T99mFG7lT9fNht1P+elPQEYY6Yj/nG7poqvNHozkbSjh O2j9dGyN9Yg+m29OmlB3e9LPk3j8MDl4OEmfDEmO3yirx6fInVp7zpPITyg9AQ4sAmms vFMO81myWZEZzoVjPFgOF9ttmTxAnBFEzoBjdf0tdeGMEyPoEGAzpVMcf+MpDA3JpLPC r0WXWAqLqO1tj/2vOU7PvAwX/eYxoqlFuYDdVI1x6nXVKMilsyMSW+zwql6zR2IMJhG9 4DIgZx1pl/YRSoBkuujzKwixKK0ltMt0LMQmgNYWed8u8tfKxqSlM6dTKmyeSBGCTWZK TDhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718654223; x=1719259023; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JmeUj+Mt469bmKZm8v2IWEIIRLOnDTCxs7wy1b/+0yY=; b=KMCeB4AaAz6aRxtYy3y4Td2sKa7S/8sve2B7dHgwbMb+i2Ejb/roDytduQnQrONrnK DoGqV2el+Q3rux3HoifpnwPtlm2yjVcNLxptDse+4GPLaXpi54ZFC7b2Xqy8K7qP3JFY nxK5MWNvQ1mTcppEocab+BaOQeduf++CrY9w88haIsau4MFEnnuqSRcheaCPQcAlizNy Yq1bDBN2kbVpXH6g6LjPWkto3Qg6t4JJX4uug/MKjTO6MiRuTZlBG70vrS5CVdN853M3 U9wQZg7+aNlItkrLty7aKbQs4Ff5iPetdxnFZ42KuTABSOb+oDTbBy0EvzofG8A88A8l 9oew== X-Forwarded-Encrypted: i=1; AJvYcCXkBin6tBRO9Nuw6SE2z7o+Fj+FGarMTZWv2/bA+27fqHnw3mY4cElutHXQnSR4yrEYK4x2fRKTfTmbcBNZ2pOmByjNVEwbbjfc X-Gm-Message-State: AOJu0YyGhmLJ/ouhBdd26GdNFAXeYu7nEI2wvb+Vsbkp9xn/TBexbety rrCXqTz1Q5B9h9M6s3GaNJEbVFMWckgtD2t1OVkGqogrnvMn6t0Dv9EoNBb5+i0= X-Google-Smtp-Source: AGHT+IH9/4+dyYRgEcg2XW0YZsCPFHofUrrtcRaTh4A/vWs1fUnHrGG4bfgHOAJVsjYkvqQ0ZI3+tg== X-Received: by 2002:a05:6808:1b29:b0:3d2:2577:89b7 with SMTP id 5614622812f47-3d24e8b9416mr13595425b6e.5.1718654223480; Mon, 17 Jun 2024 12:57:03 -0700 (PDT) Received: from freyr.lechnology.com (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3d2476e2fa4sm1579492b6e.52.2024.06.17.12.57.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jun 2024 12:57:02 -0700 (PDT) From: David Lechner To: Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: David Lechner , 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 Subject: [PATCH v2 1/4] dt-bindings: iio: adc: add common-mode-channel dependency Date: Mon, 17 Jun 2024 14:53:12 -0500 Message-ID: <20240617-iio-adc-ad4695-v2-1-63ef6583f25d@baylibre.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240617-iio-adc-ad4695-v2-0-63ef6583f25d@baylibre.com> References: <20240617-iio-adc-ad4695-v2-0-63ef6583f25d@baylibre.com> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Mailer: b4 0.12.4 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. 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