From patchwork Tue Jul 23 23:09:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 1964076 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=OPd6GJlZ; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:4601:e00::3; helo=am.mirrors.kernel.org; envelope-from=devicetree+bounces-87700-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org [IPv6:2604:1380:4601:e00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WTCXF0zsqz1yXp for ; Wed, 24 Jul 2024 09:09:33 +1000 (AEST) 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 am.mirrors.kernel.org (Postfix) with ESMTPS id A5C431F213A4 for ; Tue, 23 Jul 2024 23:09:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7AFB7148FF2; Tue, 23 Jul 2024 23:09:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OPd6GJlZ" X-Original-To: devicetree@vger.kernel.org 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 30D7E148FE3; Tue, 23 Jul 2024 23:09:22 +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=1721776163; cv=none; b=MmsxMYQVbvdfzJTIw2P1utwrYBkh9WYJV4h8BEnpHARpNUP+n0tiDcug1fPm8rgXqsDMGslJmOsqAsfoV2QwvMdhNaTM+CpIC5T3jHtqfSU++Bnaa0SBamEamTJ0Ps0CaDyVl1u8ygFprzLbG2v8DEnbMPQKNKneuh/+MszqriY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721776163; c=relaxed/simple; bh=j2EVut8i0tCcYSWzo0DB380672dQ74PXM4Z5BJKw5Q8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gGZaiy0MwxFV8r+vB4H8zdoWuQFZSz4ogskNuWMyteavdZ6p/K7AjKVyhoV+rjDPiXoXJ9DVUqVxarhsRoBxiJHdGLOE8n4pnDzYJR6pd9pINQ6ZXGLf1zi3XuT2glVR+m8XBw6BYc/YYq8sPsM0t9iy5Nr/GETzIdsOpYkckUU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OPd6GJlZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DAF9C4AF09; Tue, 23 Jul 2024 23:09:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721776162; bh=j2EVut8i0tCcYSWzo0DB380672dQ74PXM4Z5BJKw5Q8=; h=From:To:Cc:Subject:Date:From; b=OPd6GJlZ+8k0ARgi0N1puIpEMBIiUG+Q0DxEXuVAVcMml0KikUYKtkcC8jnJrt4Jt aq+p4xwEI7KyRWLM0+OFaV6301LEHRJObpM+Q473+jRc17E8Pc+blsjf74WrZ5UhRD Sgo4yM+DLoWeV4o8Mqu/yOGGOaE+GlvjBr9oAz51x/C3UUekDg1CcdeqUafK7wm21A LXyAVQCbUL14dHIa5zDQjqit1n8omxUmD7mYDSBFOn9kK46tcuns7uhgDeLo9kzRQ/ hfY0kcPV4FHBwABKdChtNOnMQhcBF9ihklJ/VZ0dPS//tCN1fPXsFFN9HZkjuX9IDp 6LZQ7ilKUlTug== From: "Rob Herring (Arm)" To: Lars-Peter Clausen , Michael Hennerich , Alisa-Dariana Roman , Jonathan Cameron , Krzysztof Kozlowski , Conor Dooley Cc: Michael Hennerich , Alisa-Dariana Roman , Conor Dooley , Jonathan Cameron , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: iio: adc: ad7192: Fix 'single-channel' constraints Date: Tue, 23 Jul 2024 18:09:03 -0500 Message-ID: <20240723230904.1299744-1-robh@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The 'single-channel' property is an uint32, not an array, so 'items' is an incorrect constraint. This didn't matter until dtschema recently changed how properties are decoded. This results in this warning: Documentation/devicetree/bindings/iio/adc/adi,ad7192.example.dtb: adc@0: \ channel@1:single-channel: 1 is not of type 'array' Fixes: caf7b7632b8d ("dt-bindings: iio: adc: ad7192: Add AD7194 support") Signed-off-by: Rob Herring (Arm) Reviewed-by: Conor Dooley Acked-by: Jonathan Cameron --- Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml index a03da9489ed9..190889c7b62a 100644 --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml @@ -120,9 +120,8 @@ patternProperties: description: Positive input can be connected to pins AIN1 to AIN16 by choosing the appropriate value from 1 to 16. Negative input is connected to AINCOM. - items: - minimum: 1 - maximum: 16 + minimum: 1 + maximum: 16 oneOf: - required: