Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1146343rdb; Tue, 30 Jan 2024 09:08:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHDT38j8uidSeoY0SdnQI8Ij2fjhLi1d+oYV5RZTT+XSD+7GeGdUPoXLRaHiqUhdYQO34VF X-Received: by 2002:a17:903:2986:b0:1d9:1ff4:9e98 with SMTP id lm6-20020a170903298600b001d91ff49e98mr845929plb.137.1706634533502; Tue, 30 Jan 2024 09:08:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706634533; cv=pass; d=google.com; s=arc-20160816; b=vD7uoRbDLtHNktgZuVwBLBSgVl7d4aOBlqHxU6tfYLipNVBQ4gAB0oU4GJjYb3TZOO S/0jtv69aYi/Cj/mwA31N1xoYsNt2vo/+mM+q7VCnhkBdvkmsmUkQf/xp5xXv24veRRj k9yVaCFo9YGvuShCl3t1L/5mHU8w6wV4ZWK0tORwhXorTnA2xQLFM3Zu+eaNebs+FSLI Rleey8n93pNzqSGvXZ9xSXPCwKlAHc69fbunhibasdqRealYeKmLwoiBEiuGiMMRDpWw 3FYEfIaTUAlRo5YmvINrbPuit8o9Nc1d2HaVyJVBn/hT/ulsNHsAJhdu9DbOmMhRTKHl YXiw== 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=y2LvyeC4wN1n7u4aHYXQdgiQBsS5wQM5FgT4l3XKRwA=; fh=osm2p5VQMSJnFFUhd3CYIyHTE0oVl4BYkmtFuJzgZYA=; b=ny6Lg6sXUFazWsTdOZsaQgBm7KnwZkGOdKFp8jnOtieumenLb9qU3u1Tw7+8QxygFK ifPjq6qEsIxsRw+1Ntu0+1K/RGnfeeJQVQje6anQsMiJ2BFK7Ds5gZUOhwqfvLDIhGvq LRd1AdHIH0jZn4xTc7yt/A1zxm2mxn/j0vDdx89U0j2FzpzklsJPHf9XX2NrN7HzjheK SQlxKODwST6F5ldMOncka+0frERi/TIHOTKU7B/gjTChm1R/4E6xluMBj+/vXf4QFx3Z DjM8os88cPsYuuigUE8f3gkMUAXiT+cY7+51IinC+QEB0Rg2Da1XmWUSoXHRPxV0AgpJ elvQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Xn0xm2dy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-45014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q6-20020a170902b10600b001d5c0d3f5d1si7621644plr.395.2024.01.30.09.08.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 09:08:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Xn0xm2dy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-45014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45014-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6031228173B for ; Tue, 30 Jan 2024 17:06:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E7151292D7; Tue, 30 Jan 2024 17:06:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Xn0xm2dy" 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 2FB9382D8C; Tue, 30 Jan 2024 17:06:27 +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=1706634388; cv=none; b=YKWO1FMdBoDjO0NOD8L84JkYT3gkFcX0UrwuaeoOBgt0xeIAudWrqGkMilrk6X6MzfAZaGRfpoxcZGIz4utQSzyA69mH7/pjskorZGlsOhu8ofdlT1VD6/gf/8LtkrC0/kcuWxX2sEnh7uuaFc8RWsbLFghIn7is41+sNRSnfek= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706634388; c=relaxed/simple; bh=W7q1fsdzkaCUOnQPYx3OTuBUZH48Q7ZLU/F8ISrqV3Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PlwC951+Idn47V7JR0fKQ3cX1N1qPRlfCl9AF6a1hTht4m39t80IHJ/WoRybwuf7f3NZKhr2MtYOVLhSEL6RS7pJUGqRZLMqj5l5lYt/L3ZjoGoncfo4AHwbsO2pArk7nQMdaMd1EWBawLnwo3JRPagjeIKu5FmOvrV7lIvpVY0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Xn0xm2dy; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61880C433F1; Tue, 30 Jan 2024 17:06:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706634387; bh=W7q1fsdzkaCUOnQPYx3OTuBUZH48Q7ZLU/F8ISrqV3Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Xn0xm2dyBaFOijOJCGeNsNaumXj3m4bgdli1OpyA6hzUGSY2J23SJXRTLYmkx6CT2 LwP8PRUlqyobXdzoRrDSQMPHENr4J7m6a62jelmwlqTz2MAEuytStBU5urdHtyXyZV LnEyX7n05ya7BQR3SOgVQyxPEVTPDujRmm+65JxqHo1GL2Qfqj7mbmq409iGuN1nT5 cECBQ5IswOLmDuolUEQpGDE5GNRGqPIyG94Lk8rAMBhFsp6RbLsyatZJidW2Y12Yit VSTJ6hbJp9DcHNk2rvGxLmsdWXBiuNI9oQ7lOWxWgBLcm9j7n+Gw1AMu9YHFZMWXY3 TVUVU3QX6tFWg== Date: Tue, 30 Jan 2024 11:06:25 -0600 From: Rob Herring To: David Heidelberg Cc: Krzysztof Kozlowski , Viresh Kumar , Nishanth Menon , Stephen Boyd , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , Bjorn Andersson , Viresh Kumar , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dt-bindings: opp: switch inner and outer min/maxItems rules for opp-hz Message-ID: <20240130170625.GA1847581-robh@kernel.org> References: <20231229191038.247258-1-david@ixit.cz> <2c9e91c7-8588-4260-8f5d-22c822019f62@linaro.org> <20240102235815.GA3700567-robh@kernel.org> 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: <20240102235815.GA3700567-robh@kernel.org> On Tue, Jan 02, 2024 at 04:58:15PM -0700, Rob Herring wrote: > On Sat, Dec 30, 2023 at 03:17:21PM +0100, Krzysztof Kozlowski wrote: > > On 29/12/2023 20:10, David Heidelberg wrote: > > > Fixes issue as: > > > ``` > > > > Drop, it's not RST, but commit msg. > > > > > arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dtb: opp-table: opp-200000000:opp-hz:0: [200000000, 0, 0, 150000000, 0, 0, 0, 0, 300000000] is too long > > > ``` > > > > > > Fixes: 3cb16ad69bef ("dt-bindings: opp: accept array of frequencies") > > > > > > Signed-off-by: David Heidelberg > > > --- > > > Documentation/devicetree/bindings/opp/opp-v2-base.yaml | 5 ++--- > > > 1 file changed, 2 insertions(+), 3 deletions(-) > > > > > > diff --git a/Documentation/devicetree/bindings/opp/opp-v2-base.yaml b/Documentation/devicetree/bindings/opp/opp-v2-base.yaml > > > index e2f8f7af3cf4..86d3aa0eb435 100644 > > > --- a/Documentation/devicetree/bindings/opp/opp-v2-base.yaml > > > +++ b/Documentation/devicetree/bindings/opp/opp-v2-base.yaml > > > @@ -55,10 +55,9 @@ patternProperties: > > > to relate the values to their clocks or the order in which the clocks > > > need to be configured and that is left for the implementation > > > specific binding. > > > - minItems: 1 > > > - maxItems: 32 > > > items: > > > - maxItems: 1 > > > + minItems: 1 > > > + maxItems: 32 > > > > This does not look like correct fix. The original code looked fine - > > only one item is allowed in each sub-element (array). > > This one is special being 64-bit values so we have an exception in > property-units.yaml. The constraints here don't get used in decoding the > dtb and the default way of 1 outer element is used. > > It doesn't look like opp-hz needs to be a matrix as it is really just an > array. Perhaps it should just be changed to an array type. > Alternatively, adding 'items: { maxItems: 1 }' to the definition in > property-units.yaml fixes the issue as well. > > Though we can fix this, I'm looking into if we have other cases where we > need this to work as-is. There's probably some room for improvement in > how matrix dimensions are handled. I've made some improvements on matrix dimensions, but this one is still an issue. Can you respin this dropping 'items: {maxItems: 1}'. I'm going to change the definition in property-units.yaml to uint64-array. Rob