Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1762566rdd; Thu, 11 Jan 2024 08:32:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IG09wdAMYO5L8oBjl/E3k9a9daLrfPo+4XCO2R9JwEbBAWtqUFcVejsNMoWZMeGkOmwIEkM X-Received: by 2002:a05:6214:5092:b0:680:6133:9bb with SMTP id kk18-20020a056214509200b00680613309bbmr1551332qvb.107.1704990725427; Thu, 11 Jan 2024 08:32:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704990725; cv=none; d=google.com; s=arc-20160816; b=BQss+ajTeAmC7iLUr1b7kfYOwXC0YsVmqTxAPELE1EfzB/G0Zec8VwesBYfGmsexjx NhjegvJ5mF1c7rxhmeeNrcH3GzIpPTy5ajK0y4VWqt1hAu6JUdrQMk5HZddbc4Ncd+IB TOyhOPT031gpOGeJJ0I9FYoPPCdizjWgHZVFTSnqPrD3Vw4XcSJ82u+XBAcNXWREBy2K sreYyUj9Rikp7fpxMgge/kNycgGWHzjW9NTo0rLJZKfb1kV1KS5BE7SRIyR8pZzFPggd v3992yLoEfJOVoFR240d4RucaHv9E64X9bvhDyaGeZ4czp7B0qG0X3HXrs7hpnLitPGK gKfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qfT2+tkliFzmZjrOVb9+gs5bLu0YvUkD6fm8DsX+jBI=; fh=JU1nBXX/In880U254NjaWmOdH1AQZIiYAiDEgPGPb5s=; b=RKqcUX6jPbG+fErC8BRIyA97fkvPpL3RTnfvDRAx+AhGQkqTJiHsQr3FPY3x5lIUr/ gyiMZn7ntpZX7dQ2/BBO18UYlKJO1ktBYcZrz5KEBoL1QswgA2ncWXsiKFWZPeGdQwL/ BiXDqKsfzdU0yNOM0NZVV8DrgUJUOyJJ/qb68LFgvLens73wx4WllhFCMZyh6txzz2L7 65f19k1RyzIPmIOOQnYZnH+SEUX9ACYv4hChbLuyiN6VmUhIXSyIdkuX6t4WTmJC/rZf m83M2jSMG5E8hEsqBh85ihut9EJRrkDwRPIl8ztcdM93vOCGMBiyWv684JyUsEs883Al 8qUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qVCo7t3H; spf=pass (google.com: domain of linux-kernel+bounces-23870-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23870-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q13-20020a0ce20d000000b0067ee84abca1si1127772qvl.105.2024.01.11.08.32.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 08:32:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23870-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qVCo7t3H; spf=pass (google.com: domain of linux-kernel+bounces-23870-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23870-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 009F21C24255 for ; Thu, 11 Jan 2024 16:31:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F4C150255; Thu, 11 Jan 2024 16:31:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qVCo7t3H" 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 C44B14F8A0; Thu, 11 Jan 2024 16:31:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4CE11C433C7; Thu, 11 Jan 2024 16:31:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704990705; bh=U1X2QWSXEg//IKtKtRyY+42Ctp17xlrN2XZx68DSDoQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qVCo7t3H64sRsursu9ArdrG/SaPfjjLJiEYI6egm5VvdcdoSPKfPCg5d+rbuqSQbR NIyBExP9bXGwS1tTubW0NUCAaPHjUxNvC67ZHZCsQvxQs870NuIdCJK0sguAu/HODp bLQLeniaLjn6yg2Vph7JNq/vvbBD+TqpYfFdcYev7J6l0xByTJ5nmKwFw+nYExT+aB 5wWbVfQb+C5rcTmdxm2OxXNjOJy/kc/EIUGlIdfFHMiaiFUoPKRDu+v0mKQHpq9/w6 66D+4aBle1VlvFsCdFgdbBrsElbybxBzIbEDvCrpWyREdnnAwyD21K151NLa6YatCi r1MbK4TBzqGyg== Date: Thu, 11 Jan 2024 16:31:40 +0000 From: Conor Dooley To: Ceclan Dumitru Cc: Lars-Peter Clausen , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ceclan Dumitru Subject: Re: [PATCH v2 1/4] dt-bindings: iio: hmc425a: add conditional GPIO array size constraints Message-ID: <20240111-suitcase-collage-889fa8404ab2@spud> References: <20240110153757.5754-1-mitrutzceclan@gmail.com> <20240110153757.5754-2-mitrutzceclan@gmail.com> <20240110-unfitting-squander-b1d71c185bb7@spud> <478d9445-96aa-44b3-b598-8f7d7716dbba@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="T/gFBDvK/h08vZL+" Content-Disposition: inline In-Reply-To: <478d9445-96aa-44b3-b598-8f7d7716dbba@gmail.com> --T/gFBDvK/h08vZL+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 11, 2024 at 10:17:58AM +0200, Ceclan Dumitru wrote: >=20 >=20 > On 1/10/24 18:17, Conor Dooley wrote: > > On Wed, Jan 10, 2024 at 05:37:09PM +0200, Dumitru Ceclan wrote:... > >> ctrl-gpios: > >> description: > >> - Must contain an array of 6 GPIO specifiers, referring to the GP= IO pins > >> - connected to the control pins V1-V6. > >> - minItems: 6 > >> + Must contain an array of GPIO specifiers, referring to the GPIO= pins > >> + connected to the control pins. > >> + ADRF5740 - 4 GPIO connected to D2-D5 > >> + HMC540S - 4 GPIO connected to V1-V4 > >> + HMC425A - 6 GPIO connected to V1-V6 > >> + minItems: 1 > >> maxItems: 6 > >> =20 > >> +allOf: > >> + - if: > >> + properties: > >> + compatible: > >> + contains: > >> + const: adi,hmc425a > >> + then: > >> + properties: > >> + ctrl-gpios: > >> + minItems: 6 > >=20 > >> + maxItems: 6 > >=20 > > This one should not be needed, it's already set by constraints on the > > property above. > >=20 >=20 > No, not needed, just inspired from: > /bindings/clock/samsung,exynos7-clock.yaml >=20 > Specifically, the top constraints: > clocks: >=20 > minItems: 1 >=20 > maxItems: 13 >=20 > One of the conditional constraints: > clocks: >=20 > minItems: 13 >=20 > maxItems: 13 >=20 >=20 > I would only have two arguments for this staying here: > - It stays consistent with other cases > - In the case a new device with more than 6 GPIOs is added, this would > need to be put back in Okay. --T/gFBDvK/h08vZL+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZaAX7AAKCRB4tDGHoIJi 0ru8AQCdBU5wVGAEWO/zsKHdUGmfoPuB9Zz97glaVc3CR4U+UgEApoGcVfC+1Ta7 DEGHEfg/LLqoQLprkP33lsaWkNIUTwQ= =xcFx -----END PGP SIGNATURE----- --T/gFBDvK/h08vZL+--