Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2095618rwb; Thu, 19 Jan 2023 21:01:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXsq+fw2wjMHaCBe034cQg4uC0UB7HSFy8uxL3macBpGhRJ3smTpCjBH0oQYFymX2UIA89XZ X-Received: by 2002:a17:906:6313:b0:872:6508:190 with SMTP id sk19-20020a170906631300b0087265080190mr14928362ejc.6.1674190897276; Thu, 19 Jan 2023 21:01:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674190897; cv=none; d=google.com; s=arc-20160816; b=olyyvE9IoTU0KpMSfl+KN3nojOK63vG3kG/dQ6TJDc9xEy3bmlfmDUetFamZR9JML7 1tFDDDa0iQDUis6PH3DUYBVdnvDFDorhyr8XHZkMfpDkyfxCVLjFV+OOx/j6T8OZ+ooe O7EzXszzose1IDqr6NWicvvOD1Gp8d4CFJ5dLrbmf5eYwX1B/oyCAmsuLljDsedzRmPV 4pOgYTH/QOgLXkwgxli3K+L1OjomqLMGPRMi997EtWu/2RQRVLpIEvoDA3ilq/Hn5BzA gxI7xw7395NGJ08f0D1Vz/G1pqYXkb4XOXXpd6BsJqgj74Q4a0PLF276J2lz02XqvVAo T4nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=RWIYNuppM7AAD+qvYPC/5QUche3E86AIBS0kbWaUk0U=; b=nD7qTyuv8JNUOk4zqB3E3XUWxYyVg2eAKVmxDDEu5zdzuY04LETlGhsgRBiubtf0Sm guaehPI3ZKVdZPO1PonMaifVUFYFEZ0lmWxkKIbEWTazWJcRy6UPeuPABxNZIgCepLbV NZED60ACyrzhLfIZTID7r6Jj1z6+1LUG8LkmBH4F70w0XeM1TEQ1SLhW90s+p6SU2fDc D5tXdBmTNMb52la4wdmO2LK+Juk2ZsRCOHvOb0FadU0xg3b8A/HdFWJb+Ii3KFboABbc Phdgq48TDHkiI7cWSI8MxPtGsUWkmQ8YBV7WSbF2cZiixN4G5op1H2e3gaeNS0UCiHB3 tagg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CtKnlch5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l6-20020a170906794600b007c0a4c149bfsi12697548ejo.403.2023.01.19.21.01.26; Thu, 19 Jan 2023 21:01:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CtKnlch5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229701AbjATEqG (ORCPT + 47 others); Thu, 19 Jan 2023 23:46:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229661AbjATEpQ (ORCPT ); Thu, 19 Jan 2023 23:45:16 -0500 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 018B7B4E12 for ; Thu, 19 Jan 2023 20:40:35 -0800 (PST) Received: by mail-pl1-f176.google.com with SMTP id g23so4291910plq.12 for ; Thu, 19 Jan 2023 20:40:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=RWIYNuppM7AAD+qvYPC/5QUche3E86AIBS0kbWaUk0U=; b=CtKnlch5TApzzr0CCGqPM1CQvozLqv75z1WuB86J4aAQnrqwbaT6IT4JSebIrm0D7K 2i1vtDakT4Qxk2A4k2AbKc3IHowSMTdVyUaW5ftRzrSb4FqtmMscdyBm6cvvQe5dJ7mH Iys0VJ8Og83For34iNxZIi5Y3fufTuY9O0hv/dVtUcLkHTwyxDTJZPl9ydrs5FhZYGfn ikbLjSOpwNUHabkSNJsrgE4CyYtb3xgZM191JfHhSV4ILIkcTTl42hcqH0W0G7fnutWk c08fFva0D2elOoGGc9Zn9YtAiSH2v7/HVz5feKBHb+Bmku1wWQuZxGYsjlvzwG5drMJI rTSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=RWIYNuppM7AAD+qvYPC/5QUche3E86AIBS0kbWaUk0U=; b=UvrYh2f80uqyIgVif+fNRoBIEnGcO3iMciMq6terds8W6UBtfeywgiYiacsV5R4gnR +bQ1i4/XEKM6k6rxlat6secIYDpCliV6eSdd2R5s07ilXHMCdk/U8xaxJ46XvsVk6Ese N5QL3zd2dCTIG+wmAxnsqcKUMRfYRhAm2RO5ef6PPpC+mV0oUSp8Q/TXRkS2ksQeIoib gVeJVaP1kc7EXejZX6kAQ80YUTwv5sMtOU5yJ2+XZv+mgIMcgpM8TXFLC0tfoESNQMiD CIm9Wum2xKkiUC/7aY6XdT0AsusQwwxEKMAUwGTjv98nUL+rfxUzDRV+zdlcL3QuFIp/ Qv+w== X-Gm-Message-State: AFqh2kqTVYnP6yQhg8cn4uVoIqA09FqGrbEHOPZiUCrgDPpbB9gILJqj 5b4e9R+zlA77D0DGdsqHRYb8xA== X-Received: by 2002:a17:902:c401:b0:194:dc73:5cf8 with SMTP id k1-20020a170902c40100b00194dc735cf8mr3601413plk.39.1674189520041; Thu, 19 Jan 2023 20:38:40 -0800 (PST) Received: from localhost ([122.172.83.155]) by smtp.gmail.com with ESMTPSA id f5-20020a170902684500b0019488a36e2asm9781690pln.277.2023.01.19.20.38.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 20:38:39 -0800 (PST) Date: Fri, 20 Jan 2023 10:08:34 +0530 From: Viresh Kumar To: Krzysztof Kozlowski Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Viresh Kumar , Nishanth Menon , Ilia Lin , Vladimir Zapolskiy , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH 2/2] dt-bindings: opp: constrain required-opps Message-ID: <20230120043834.txkg4tockxcjqs2g@vireshk-i7> References: <20230119130028.106817-1-krzysztof.kozlowski@linaro.org> <20230119130028.106817-2-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230119130028.106817-2-krzysztof.kozlowski@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19-01-23, 14:00, Krzysztof Kozlowski wrote: > Be specific how many required-opps are allowed. > > Signed-off-by: Krzysztof Kozlowski > > --- > > This change is independent, although logically is connected with my > dtschema pull: > https://github.com/devicetree-org/dt-schema/pull/95 > --- > Documentation/devicetree/bindings/opp/opp-v2-base.yaml | 1 + > Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml | 3 ++- > 2 files changed, 3 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/opp/opp-v2-base.yaml b/Documentation/devicetree/bindings/opp/opp-v2-base.yaml > index 47e6f36b7637..9b141a409191 100644 > --- a/Documentation/devicetree/bindings/opp/opp-v2-base.yaml > +++ b/Documentation/devicetree/bindings/opp/opp-v2-base.yaml > @@ -202,6 +202,7 @@ patternProperties: > for the functioning of the current device at the current OPP (where > this property is present). > $ref: /schemas/types.yaml#/definitions/phandle-array > + maxItems: 1 I may not under this property very well. What exactly does this line say ? Asking as required-properties can have an array of phandles as well. > items: > maxItems: 1 > > diff --git a/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml b/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml > index b4947b326773..438880db1872 100644 > --- a/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml > +++ b/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml > @@ -59,7 +59,8 @@ patternProperties: > > clock-latency-ns: true > > - required-opps: true > + required-opps: > + maxItems: 1 > > required: > - opp-hz > -- > 2.34.1 -- viresh