Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp479743rdb; Thu, 1 Feb 2024 14:30:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IEtdRJDWT/sPDYmBeUdyEZZzFT1x68dbeHwX8qDna86zixlLTw3qlg1FRJd8j0tTF4qiW4l X-Received: by 2002:a05:6870:f690:b0:214:44cf:a824 with SMTP id el16-20020a056870f69000b0021444cfa824mr6273066oab.32.1706826632888; Thu, 01 Feb 2024 14:30:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706826632; cv=pass; d=google.com; s=arc-20160816; b=JsK8SzpWCS0+S1rbI9w1My3z8GXV2O6f5VRYHyAdVSOfb0GnG4v6J/1W++8eeEdexW nadpIdm+VJi6qL0PUM7ieJ+ss+9Mqnr/BYkT5oyrJdnSXGfHnLaw4AF0MfP6DjShTtli IqUTAZiU+R+5g4M0GWxCaN3OzMwttNdCXGoarUTyJdC3msxvJEZ+P2UP54YMGDQkKdnt d8DRdU/v4aluBjyzZDzqqRJnNh5GxJMObr1B5w8lMtyiMt4vtPUC/fH+EQQYlOWPAlUj bMxYdQnxRweju/Kf12zd0m/9d7T68ikrL571QqthlGAdjZkiLq0FlOxKH9j00u3Zq3Il Ez9Q== ARC-Message-Signature: i=2; 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=MXeIahBXg6Je1+ekxduQN7jsD48+sWhV8COd//9qdGI=; fh=6JQnDePT7TQZBJ5IYq6cVLMPO0SV3qI+DAQVj10ydc8=; b=OwzDvFObUaBkKoy2Sdktu56preETsYufA9eawN9/ley5ysan80VAsl00FHUS8G2PTS pkPf1EGvupFI7wJzJFcnXhI3YhoAXM6KkDw8wNXvrqt/WcZBcNrVSAcdAOuskzDkSSx7 TxIaDQPNZcLASGu7FGAXFIkvXxUdNfHvpsGMLQEEyLiZ1jL+W8ZJcAVyy9xSfnkpuPv8 S+Hzu28h6BewO7I0NucUTQECCuh5P65FuwreULWaZxInsz5r2XhDVhWBLXglKTfUn/ea wrmY3SxzNBvEpuAFnv8JFMdc4wKFTwsWr18kPaTwPow+uIpW4h15dKrwIb8ByIPWzxd0 dZMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YvdlH42R; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48927-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48927-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCUp9Zo5VjEnn9eX1BWYdS+5srBWr1n8sQv/OMDA4ELQ22ckBCzbw0mrkd9vleDVXc6W47z0/4uYXzJSpGSlOmonb9YoeQsozn9K0Ck4KA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id x5-20020a63aa45000000b005d8b991929bsi445909pgo.522.2024.02.01.14.30.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 14:30:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48927-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YvdlH42R; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48927-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48927-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E95BFB27470 for ; Thu, 1 Feb 2024 22:13:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F2EB4121B; Thu, 1 Feb 2024 22:11:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YvdlH42R" 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 AD1A647F66; Thu, 1 Feb 2024 22:11:54 +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=1706825514; cv=none; b=N3elQRHmnlr9HbCvKZ0+lsZ0lAVeTYHbCmhYIdW6aOLORgkbqJHX5IxJv/LnBE/WRg4QkwUzUGiUoEEt4mbGE40nGsbcG+N/Wz7ZRR5YEhD4b7UT8ASbvI06at7FkljFBJvuOC+v63nPGpQvdecunluo44ro86oJgBrusCZZv/c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706825514; c=relaxed/simple; bh=bfnUreV/nfXZCXmsG8UmyxaFFTMZMOyL4FzIFxDA/0I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bqr4Dhxo8FFpg+m+RyGV2HaYYFLErrdl+rmVwlrb6HkZBtQ0qGasGjGwVzf1r2gDrqD0KyU68lsPPyHbBXP1ibyZMkoP4FcAYQFA/RHvjZ5+1+2Wl6rXeIUwoTcBjUm31MuZRkqqXMco0QB+OqCpL9ettTFdQeJ7kpiaxZFi4S0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YvdlH42R; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F7F2C433F1; Thu, 1 Feb 2024 22:11:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706825514; bh=bfnUreV/nfXZCXmsG8UmyxaFFTMZMOyL4FzIFxDA/0I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YvdlH42R3T8o8N6i01fGZzSN2cfZ8W1Ut9gtlDBu5A+18in3IR5daIFcgiPJXu0ez dRk+Y8eiv0BJEx1Q4KzGis4ZyB7k4ZyAjvuSna7zEdXN7a5i1Kuq7bdJEPvPHlxMTK o8ChWpwuXeXoU8nhaLqlSqe1MLTIaoVaIchVaxGS8tZ9WjzrKVuEFmfS4Wbuzu756E K08W6i99O2Z2t84jcEaFAfMzA5ENxEsRBTqJI7imaAcz0wD0yjfCwubVwXJFzLIVc5 23KjBCbOxe8/A+p3WBRAWQ7H7YkcRswgw9GHJUshC+PFWPtAF4vPELdMZp9ZxBNTUv aoMgtTfcLs0YA== Date: Thu, 1 Feb 2024 16:11:51 -0600 From: Rob Herring To: Geert Uytterhoeven Cc: Liam Girdwood , Mark Brown , Linus Walleij , Krzysztof Kozlowski , Conor Dooley , Marek Szyprowski , devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] regulator: dt-bindings: gpio-regulator: Fix {gpios-,}states limits Message-ID: <20240201221151.GA1562458-robh@kernel.org> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Feb 01, 2024 at 04:58:41PM +0100, Geert Uytterhoeven wrote: > make dtbs_check: > > arch/arm64/boot/dts/renesas/r8a77951-salvator-xs.dtb: regulator-vccq-sdhi0: Unevaluated properties are not allowed ('gpios-states', 'states' were unexpected) > from schema $id: http://devicetree.org/schemas/regulator/gpio-regulator.yaml# Unevaluated properties warning here is not interesting. If a property fails validation, then it is considered unevaluated. It's that warning which is interesting: arch/arm64/boot/dts/renesas/r8a77951-salvator-xs.dtb: regulator-vccq-sdhi0: gpios-states:0: [1] is too short from schema $id: http://devicetree.org/schemas/regulator/gpio-regulator.yaml# > > The number of items in "gpios-states" must match the number of items in > "gpios", so their limits should be identical. > > The number of items in "states" must lie within the range from zero up > to 2^{number of gpios}. > > Signed-off-by: Geert Uytterhoeven > --- > The second issue did not cause any dtbs_check errors? I'm not seeing 'states' fail, but it looks like you did? Is that the issue you mean? Looks like in the matrix case, we're now setting minItems if unspecified. > --- > .../devicetree/bindings/regulator/gpio-regulator.yaml | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/regulator/gpio-regulator.yaml b/Documentation/devicetree/bindings/regulator/gpio-regulator.yaml > index f4c1f36e52e9c3d8..1cecf8faee5dc374 100644 > --- a/Documentation/devicetree/bindings/regulator/gpio-regulator.yaml > +++ b/Documentation/devicetree/bindings/regulator/gpio-regulator.yaml > @@ -47,6 +47,7 @@ properties: > 1: HIGH > Default is LOW if nothing else is specified. > $ref: /schemas/types.yaml#/definitions/uint32-array > + minItems: 1 > maxItems: 8 > items: > enum: [0, 1] > @@ -57,7 +58,8 @@ properties: > regulator and matching GPIO configurations to achieve them. If there are > no states in the "states" array, use a fixed regulator instead. > $ref: /schemas/types.yaml#/definitions/uint32-matrix > - maxItems: 8 > + minItems: 0 > + maxItems: 256 > items: > items: > - description: Voltage in microvolts > -- > 2.34.1 >