Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp173674pxb; Fri, 8 Jan 2021 01:42:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJw7ELDFsaL2a2dsXTvREDEOlihtrJZZzN82rDgbEz0MQMpzqqVGBgB05umn7T6yQgxFKqKg X-Received: by 2002:a17:906:2f07:: with SMTP id v7mr2063967eji.343.1610098975528; Fri, 08 Jan 2021 01:42:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610098975; cv=none; d=google.com; s=arc-20160816; b=XF5TGIJzbXtcB3kA14EMdbWuvUPOoUCrZCM+jo7Ig4xiDU+q8CRGitrABK/sstg8k2 QmE9QlMvoYaSc6BruGG0TZS0LmonpK68dTRoHbHYFAUvXrM43kEscLFE1nXKjzBV32T3 45Cxz3KnQ5PTAdk/WBPnziSN8y7rDPB7phZyO/SznBsqKrJJn27RKjkqNLKJIMJE3fck pE5A/r76dkvSw2F+xNFmaTzxlmYrIgxElSsZPeupa7Sv2ttNHh5tZqFNBDQO2EL1Fvyv /Omr+/BnQ+EalkNfRLwI4/NDUUoQl/xietN12iP7DdA3bQsnKdx/Ru5o/7HxZh4FKKyu Zc1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=MKIqx1+T0s1Uz0l5lnlu8sHB7ChPsrqsSGBnv7F9PHA=; b=028wqZ89jfzut3B1bdYde3ef8Ivg+OLm7XbXJYPBJYbcGCxSLiI86WgG4RuBCWuNOg 4EvNzGaC7yXNMJo64OMCugBDSC/j5sVcjfIH0q1fHnR4QUOhLLAV0SMbFyCdCZ9FVgEj SOK9G8O2GJhlWTLQHjbHWwYVa+3/H9wstsmjOucoOh2D/l2RxNzsZXBaOb+GdSiTZ6Bv ydt+KUvQHIyTSDOxJhhiweJz9Bn5vWfyqBUCXjhsOSCNp/R8r0o7cT+nnAKRkypewZNr j5otKOmdQ4VXl9nApBMFdU62SX8rZuUzBsSY9GfCpRRj/xhWMpY82L4Frwv4sKm3OT/2 bSfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UBXFpKBP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e14si3334608ejr.169.2021.01.08.01.42.31; Fri, 08 Jan 2021 01:42:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UBXFpKBP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727696AbhAHJlH (ORCPT + 99 others); Fri, 8 Jan 2021 04:41:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725791AbhAHJlG (ORCPT ); Fri, 8 Jan 2021 04:41:06 -0500 Received: from mail-ua1-x935.google.com (mail-ua1-x935.google.com [IPv6:2607:f8b0:4864:20::935]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35F6EC0612FA for ; Fri, 8 Jan 2021 01:39:53 -0800 (PST) Received: by mail-ua1-x935.google.com with SMTP id s23so3217136uaq.10 for ; Fri, 08 Jan 2021 01:39:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MKIqx1+T0s1Uz0l5lnlu8sHB7ChPsrqsSGBnv7F9PHA=; b=UBXFpKBPQH3ou6FxAvLQLc27q5ERw+zDe12JgeEF0sc1yNF5yd8c8SKpHNRNRBvrHE Ujl/yKitGr6inPulvKBnpcvgvMiJj5MgM6fTHHoJJKGyi1RxmEJEoweFLnwuAmeGOTcr q55XMeoeroQzwVquOumpNkBczYuG6X1H3plxHx78ZX6F0enhhVfWKgcssOcgxp8Og7ok XLAoN43AJuYjR60BMZRzVfWlgj4tfUSSo6zgyzlo49F+YFhXpTZE98gbnWEAggHU8N3N 6dwT+PoQZHJaWEMzmO7mSboGqOb/d+Jn8MX1JzBu2sov7DP4U6qXpZEsvnnUhvd8YL+J BXsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MKIqx1+T0s1Uz0l5lnlu8sHB7ChPsrqsSGBnv7F9PHA=; b=HSJb1y3IhSaeWvb/uQlvyf3S83qvXclbGgldl7bPjMmyc9xCJK0gY2RpA50zozYvbA vUuRLsjn+DXDg3vQ28zzdV2WJUB4jvzFEpcznfsWalFcnyIfU4W84hTgG3to2k+jTbyh WLtTbwWQyT5LtFe9G1aTt5JFY6LPa0DAOfcFTw16j8e4yehfEeUQ84vVxa2nBtgPw/x5 EifqazHKyvnFm5g8invzqvYLvM8oOHr0LcMVPEPOQcTCMzfZER5PK6giExqYNcxc30MN HJa2h9mejMEDoqFa+8loiOYrOs6UpVomcaILzYJ5YY19XiTKB65xpipN5CrnoWRZ/upn kZ1Q== X-Gm-Message-State: AOAM532wIzQhUlrArzXaf2VBzXobpLEsTgknTbe/R4otCYgkLH3eL20P ULREyQRys1HqcW3DCzOBCsQHcGadtCN4ePEer4Uusw== X-Received: by 2002:ab0:4597:: with SMTP id u23mr2241423uau.100.1610098792062; Fri, 08 Jan 2021 01:39:52 -0800 (PST) MIME-Version: 1.0 References: <20201224111210.1214-1-rojay@codeaurora.org> <20201224111210.1214-2-rojay@codeaurora.org> <20201231154929.GA1846089@robh.at.kernel.org> In-Reply-To: <20201231154929.GA1846089@robh.at.kernel.org> From: Ulf Hansson Date: Fri, 8 Jan 2021 10:39:15 +0100 Message-ID: Subject: Re: [PATCH 1/3] dt-bindings: power: Introduce 'assigned-performance-states' property To: Rob Herring Cc: Roja Rani Yarubandi , Bjorn Andersson , Wolfram Sang , Stephen Boyd , Doug Anderson , Sai Prakash Ranjan , Matthias Kaehlcke , akashast@codeaurora.org, msavaliy@qti.qualcomm.com, parashar@codeaurora.org, Rajendra Nayak , Linux PM , DTML , Linux Kernel Mailing List , linux-arm-msm , Andy Gross , linux-i2c@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 31 Dec 2020 at 16:49, Rob Herring wrote: > > On Thu, Dec 24, 2020 at 04:42:08PM +0530, Roja Rani Yarubandi wrote: > > While most devices within power-domains which support performance states, > > scale the performance state dynamically, some devices might want to > > set a static/default performance state while the device is active. > > These devices typically would also run off a fixed clock and not support > > dynamically scaling the device's performance, also known as DVFS > > techniques. > > > > Add a property 'assigned-performance-states' which client devices can > > use to set this default performance state on their power-domains. > > > > Signed-off-by: Roja Rani Yarubandi > > --- > > .../bindings/power/power-domain.yaml | 49 +++++++++++++++++++ > > 1 file changed, 49 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/power/power-domain.yaml b/Documentation/devicetree/bindings/power/power-domain.yaml > > index aed51e9dcb11..a42977a82d06 100644 > > --- a/Documentation/devicetree/bindings/power/power-domain.yaml > > +++ b/Documentation/devicetree/bindings/power/power-domain.yaml > > @@ -66,6 +66,18 @@ properties: > > by the given provider should be subdomains of the domain specified > > by this binding. > > > > + assigned-performance-states: > > + $ref: /schemas/types.yaml#/definitions/uint32-array > > + description: > > + Some devices might need to configure their power domains in a default > > + performance state while the device is active. These devices typcially > > + would also run off a fixed clock and not support dynamically scaling > > + the device's performance, also known as DVFS techniques. Each cell in > > + performance state value corresponds to one power domain specified as > > + part of the power-domains property. Performance state value can be an > > + opp-level inside an OPP table of the power-domain and need not match > > + with any OPP table performance state. > > Couldn't this just be an additional cell in 'power-domains'? Right. Some SoCs already use the cell to specify per device SoC specific data [1]. Although, I am wondering if we shouldn't consider "assigned-performance-states" as a more generic binding. I think it would be somewhat comparable with the existing "assigned-clock-rates" binding, don't you think? [...] Kind regards Uffe [1] Documentation/devicetree/bindings/soc/ti/sci-pm-domain.txt