Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2221161rwb; Thu, 19 Jan 2023 23:18:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXtEjX3J6fs9LX88jdCKXPsgMI2nnC5GREViZLy5l4LxjOVuL4UeQlsqAGJvQmR/gkuVRHnQ X-Received: by 2002:a17:902:a9ca:b0:194:8c75:29d with SMTP id b10-20020a170902a9ca00b001948c75029dmr13053588plr.12.1674199107351; Thu, 19 Jan 2023 23:18:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674199107; cv=none; d=google.com; s=arc-20160816; b=dgLYxjPx3cPUGpubzDBbNIBIfoJx/txwhc6uX90npNQlRDWxYigbKanbMVyfyqDKIw DjkGEMGG7jvtwsV2ScX/eakcooBKIfmh9Qmuo3hIFu7Stzign58Qt+lq4mkdg+slBdct 0BO+hQ5jZqxnNb35dy7Z0D+GoJTZJewiyvmG9YeJ6yqndslhaKlPYbqqzLJuf2kmrBUs PG0uO2O1zJQqowh+sUgIEyX1boekll8Q2fMozEffuaU6sL2cjAinQaJETX+dbnxkW9aO mG0GmFMAV8WpnllCZqksUt/ehAt71EWhhCxhcLkIhf88lmLkUNf7FcOstpHjNsDeJtHr iBoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=G+Tk9C+q5ul7HvkddDemsyL3qMNqs61Qh9C/G8R7Spg=; b=NYPLTzTqX6g8vBxpsoHISkk6FHQvGV8KUAPtHzuHKSrq5ASfsCfKo83DRNyAYdAmGu 1QtjZ9GpSbpgIqDSzlMTV/5krM1aoKvIfNcYjXEoHZ67q+pgGc+dSGbnkKzLsUp2eFxo v5fs6tm8y4SQQiV4KLZfhQZZ4VKOGstgvmp6bmCHfNhzlxTi3JMQyVONWrqL3cikaSDS DcxabLWZ9mf4PRvdisNa+uBBKg6IVKp1QDmwyFQB9mLVDlLeVVOyTGQy9sqIOUD5Phi+ cWuZR+mCV4BjP2A05sCi/H0A6zlcT6J+GDc9XebU0PVFxca/5d5OX9CIqDjo2XMSJMxr ty6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kXM01cTP; 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 n13-20020a170902f60d00b00183243c7a2dsi40167954plg.406.2023.01.19.23.17.51; Thu, 19 Jan 2023 23:18:27 -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=kXM01cTP; 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 S229797AbjATG1u (ORCPT + 47 others); Fri, 20 Jan 2023 01:27:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjATG1s (ORCPT ); Fri, 20 Jan 2023 01:27:48 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49A7ECA3A for ; Thu, 19 Jan 2023 22:27:45 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id iv8-20020a05600c548800b003db04a0a46bso587893wmb.0 for ; Thu, 19 Jan 2023 22:27:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=G+Tk9C+q5ul7HvkddDemsyL3qMNqs61Qh9C/G8R7Spg=; b=kXM01cTPdkqoNmA1Ih8ur44KRT2KTmKp2876rTMbOzTyhgpnt6yrrLkq3Uk1tuOcjq yUjf4BLGRx4cmOKa0YBXtA8/EFBNxLWBpwgOspGYiSsCR3LoeLa6XLHE1nL3wBDZ3vXY b0t5Yl27SwyGUxbyiTQl4KMG8lDoUqH4rM4fCeg4Ltrfc7KDyAA3VHTIoTg8lYsDDK4F QhJolxqMqsJ8d/vpvglrDXUyWa5uPGCd7aObG29XzrUYyWmNckziagGteqbjxSTuzILk 2HyQmFjeZjz0KfFq9E3jZKT9mj7o9w4AS+CQhzMyfRh+/NjIX3eEbwsmH4Bcv6uCKRSR Tilg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=G+Tk9C+q5ul7HvkddDemsyL3qMNqs61Qh9C/G8R7Spg=; b=4fateoSwdNhsd+LHwokIsxUPtcZM2/BVj3RIYPO/QvUyNK+kIg0J/aWz58qQkNrFZQ WYLyLYktkk7Od3BH7nLv5dRL+Idm6BIsFSugENru8dGPdQtzt+I3GtJEcU6q/6Jwjkch lX+FL8RQiH+gmT52xxTKyyu1iRU0JKlGUN44gBKsBYNG5ZMsRDznJNqtprkIb3tn9zBw 4fjU7riZmGjMOI6T3tnjxhAYJeGvoQEF7abgr65I0taZP4IumDxPCx9AT96Crs2qZbFc pKD93r3g9zj6byfJLqyhMGi5xrwnHT+PpTTyS8dSOU80RLkd+xNYLDK+PXfASuR/TbYL CZuA== X-Gm-Message-State: AFqh2krB+4ldSkQjmkHx7+3+umwycAzUBvHeKXzug1LQIYvui3Md9bT6 +GdnSOHZrQqxCWENcfY0lkFpBg== X-Received: by 2002:a05:600c:b8a:b0:3d9:f806:2f89 with SMTP id fl10-20020a05600c0b8a00b003d9f8062f89mr12750002wmb.41.1674196063851; Thu, 19 Jan 2023 22:27:43 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id k16-20020a05600c0b5000b003db0a08694bsm1262291wmr.8.2023.01.19.22.27.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Jan 2023 22:27:43 -0800 (PST) Message-ID: <9adec806-5529-f98a-949a-630edf3e1d0a@linaro.org> Date: Fri, 20 Jan 2023 07:27:41 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.0 Subject: Re: [PATCH 2/2] dt-bindings: opp: constrain required-opps Content-Language: en-US To: Viresh Kumar 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 References: <20230119130028.106817-1-krzysztof.kozlowski@linaro.org> <20230119130028.106817-2-krzysztof.kozlowski@linaro.org> <20230120043834.txkg4tockxcjqs2g@vireshk-i7> From: Krzysztof Kozlowski In-Reply-To: <20230120043834.txkg4tockxcjqs2g@vireshk-i7> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 20/01/2023 05:38, Viresh Kumar wrote: > 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. > It says we can have maximum one item in "required-opps" in "opp" node and you are right that we could have here more. I'll fix it. Best regards, Krzysztof