Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1763422rdd; Thu, 11 Jan 2024 08:33:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IFqVbojqEauK3K9Coe3aHlJvWTLPBOuS4gk3QaEHGJ1F8ZURYScqXlRNkqXtFHn3jXqOdj7 X-Received: by 2002:a17:906:1cd4:b0:a28:1916:6cc9 with SMTP id i20-20020a1709061cd400b00a2819166cc9mr376149ejh.270.1704990800042; Thu, 11 Jan 2024 08:33:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704990800; cv=none; d=google.com; s=arc-20160816; b=eqjUpL/8n9rGl1IQvNZ/lVjs1dZPz3iEe7yPRIKlUvDaZcadu6YAfmxMQenJwKIKN+ 5W1f+81lhJe/ppwcX8i07tqM0DKBOqBggm6sGpsBlJqDZyTWZuILnWunC8+lUyQIvT9e 47jM/zCzUnzY7e/pmBm6aWgZbSF5ClDCC766Iol9yfRKbcBz8rE0DlYV6WxdEc3tn392 vrX2B3XweY2KsV7srMc9kLmDRJp1XVFX6RLsmVMPtHBWvxO5HBC+v2Xic1fgfUaq9QoJ UHOOTJIn11RWLXJnejeAiXIdR8asMQem1zLxwmNkTncr+mlfH9DhosHmFUVzQELyNs/m 2L6Q== 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=HCYQfsKIDEx1r4rsO3FJbcSUPbsdQpG8+/NgOzhtW/k=; fh=JU1nBXX/In880U254NjaWmOdH1AQZIiYAiDEgPGPb5s=; b=QiBUpTt44jiG8er+862Ua1KTJA/Jq5ofuwluQJFwBlT48QsG9MwNufEOSHd3A0d3gf RPD8pLXnQT9cHf2grB6bZjDdIlVIVeYZZqXL+Tye7wV7aRN0fpE+V5uu9yk8Nykc+/Uo xu404stQGYM6ng3k+XVKWGnvua30iREo9SXtGbMnT60buMFAN3/eRgn6SJByR79GFF8j pdCmx7bqrVD9bivsZT1n/eN4yAguaYvrdwpj4Y0z1RGzX8Fo8bEj8mmY1Ebh0ES5PR6j fpKCbJC12eRhqUoQX0W6BPL2yNWosPQL5E1vo+PIX4Gk/xbO3XD0OeAOg6vY/sgCG5/f l7Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HtX9kBJ2; spf=pass (google.com: domain of linux-kernel+bounces-23871-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23871-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c9-20020a17090603c900b00a2b2c1a1ba0si659885eja.931.2024.01.11.08.33.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 08:33:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23871-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HtX9kBJ2; spf=pass (google.com: domain of linux-kernel+bounces-23871-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23871-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 am.mirrors.kernel.org (Postfix) with ESMTPS id C88781F214CB for ; Thu, 11 Jan 2024 16:33:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B291850256; Thu, 11 Jan 2024 16:33:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HtX9kBJ2" 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 DF9AD51000; Thu, 11 Jan 2024 16:33:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55C6EC433F1; Thu, 11 Jan 2024 16:33:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704990787; bh=cBOEHJ4jz+911gd0H8RzE2SvkvqohyMtgT/JyoRoh4I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HtX9kBJ2RSIaZ5ApbfyL+BVDfVPnIICVdVWIvT3ELBc6rohF8c68fWZffaqmk1e21 m1f1XHU3TOoLQJUySrZ3+AiibNy3MiERrRcR5TJhzAhbGBqZJPRuS3sXjlMy6q7kMF Jeegz3p4QclI2UQecnwkIaumwMWFuNI3elKOqlaO0ubg/54TY7fjZonfFuEUsTHsd9 QYfX8U5MDLMa/gMxlJKM0wAsJ6LDnEisFZHSfGVPQdcpjLYXgGhRMGZU2gQ1UfoBQW acCJmwEWl5e3ltqrGilZXn7AKYIokzifF0+ZpaFZMX6j0UAED9buN1GUg9g2IEqcud DmYzMVcgBoJlQ== Date: Thu, 11 Jan 2024 16:33:03 +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-numerate-aqueduct-9eaaa4dfc572@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> <20240111-suitcase-collage-889fa8404ab2@spud> 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="SLcpOGUKLjHDM79r" Content-Disposition: inline In-Reply-To: <20240111-suitcase-collage-889fa8404ab2@spud> --SLcpOGUKLjHDM79r Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 11, 2024 at 04:31:40PM +0000, Conor Dooley wrote: > 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 = GPIO pins > > >> - connected to the control pins V1-V6. > > >> - minItems: 6 > > >> + Must contain an array of GPIO specifiers, referring to the GP= IO 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 >=20 > Okay. Sorry, that's probably super unclear. I meant it's okay to leave it. --SLcpOGUKLjHDM79r Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZaAYPgAKCRB4tDGHoIJi 0jalAQCPzckyn2TpzYdmBZKa/c3mDGk156cx45W8rNKZyQr3awD8Chazl9EKk0I2 8pWYm0pVfUobXV74ZFjqNmRG9pqKMQQ= =3NAy -----END PGP SIGNATURE----- --SLcpOGUKLjHDM79r--