Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp93820pxb; Fri, 15 Jan 2021 08:20:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1He91nwZ9O3t75XDVOJFm0Lev3HrMlavM18Crqfsyet6QlqwTqyxZFYVSOJGn4mecZQ7H X-Received: by 2002:a17:906:338b:: with SMTP id v11mr9952377eja.74.1610727613711; Fri, 15 Jan 2021 08:20:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610727613; cv=none; d=google.com; s=arc-20160816; b=oW8wq0AVX+WfuOpU+v1P2f6owL4KCCcvzJIXr87XqqKCzhdyci/pzD5z2QZjflFlSP f3IznwGueSPbiUSHi6M8cSfg8IxVYMUezfS2kXvPdkB5QCAouRrz+oQPMD0EW2XEgWQj i0wVbOrQCBvx4g2DBpThI8D6Jp2uJG1xKaCng2JTdJLZr4M1aMTjSwMEzJP4dIIWmANQ J7VC539FUekU31eEOnbhZAIVvkccFBF1jsfvzI8bWpkkmtVwPK6BXXk3BG+/WaTHrVt0 4ec5lHoU6ut/FcuBJE192pcxJyiCLjRfpo7GIUXQ0GzikS33Q44yD1CkJW4hHjqBj+sx jPAA== 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=iPVfTfHT6gBAu795m3aMHoadgoj03D2XwLab0IXl/KI=; b=KFUch4jd4cOF3/VoIFgoSiF42TUTvq8xsy7Zeo4q7qdnMYLcLsHnR0JFTDdA1lv9KM +t+hB6G1SYbDkL/2moIVIlhG6kI3tTVS9U4UauE5z1ttE+iStf9mzpho4bfxsdDg0XUV h2r0Pd4EbZRguIeViwvHtC8qpt+7SdO+jaJRpirc3PaxqqNFOX6tfFdkWLv/9N6INHSa YfcXJpmNNL0ZjWJcC++yJWJog4ZkDqW2k5zDxcIGqaIRba2IdEn8iN5dEHNyWLyUCi/4 eUnhejlLX0NpbmuW4O4aDh0cUKPcq2CWl4IJVdf7BfqYMTd9AYjdQSAtXG+Q3LGozXqP uSlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fRz2PsY+; 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 gs44si697054ejc.391.2021.01.15.08.19.50; Fri, 15 Jan 2021 08:20:13 -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=fRz2PsY+; 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 S1732291AbhAOQP7 (ORCPT + 99 others); Fri, 15 Jan 2021 11:15:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731175AbhAOQP5 (ORCPT ); Fri, 15 Jan 2021 11:15:57 -0500 Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9344C06179B for ; Fri, 15 Jan 2021 08:15:36 -0800 (PST) Received: by mail-ot1-x329.google.com with SMTP id r9so8976065otk.11 for ; Fri, 15 Jan 2021 08:15:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=iPVfTfHT6gBAu795m3aMHoadgoj03D2XwLab0IXl/KI=; b=fRz2PsY+IiJRIlRpWYA01nOlQDMkIc3+bzy+f+B3aETjnc4lrmL82O34lrRJeAYqKL PM7VboLHDgF94iykA1AUpoK8oygf7ee74W4KXWCxaR6dkDpeq7obO32vFpV90rZn31T3 lVAM1dMP/1x17O+tHeAZJNy8RWm/xgt6OOr1WIRwZ5WTpyjGYCLWMhIvMB/C0FFH3YXf czLJtem84F+aidVI8flVnY5X/HxvkhkCIWaxkMO7/76f8Hlf2bnIaonltDEGT9Ah5SNz BZhAxg1Kkf8ItwwFKeM+15072ayLQeSrlP4gGq8AtfbQFvMK3pArIrJdl/Wk+m62zDWP UlUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=iPVfTfHT6gBAu795m3aMHoadgoj03D2XwLab0IXl/KI=; b=EHpyb7uI73zIvUBbWARe/WFQsP4RN/XtKp4p9XA9IiPbWu/jnpaktm2CzRlCyUUdWt G+0aZxsxHTrQarmisVkVMYdglVadZB6xzXL7rEf5fSJ/bAm2JsqAkuyYTYlgsA+fTk9c S9wZ0Mnp7V04sSqwh5UAD8Y8EUHGszsX7QHSbtjLtgFGlJ9vxfn2SGzEgAjfDK4mhcz0 roND4I1/VZQoIGmXTBJcE1+qN2OZdq+oxk+m19mPy1xPNIpaTTMVtHXtzhSQ6Og8lX89 Jowe7jcyi1n2kvap6JG+D5oga3sABXB01/ZxxXd6y2XrZaqSwTORHCDtAE49o9QgPApQ tqoA== X-Gm-Message-State: AOAM5339IF15y/QWKtJ5i9O9MSJCFmylrx4d/8BItdxKc49DjHKJcmDH panYrJgQbXM4hGRMKYZ7i5NP9g== X-Received: by 2002:a05:6830:44a:: with SMTP id d10mr8631694otc.254.1610727336025; Fri, 15 Jan 2021 08:15:36 -0800 (PST) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id m3sm1924324ots.72.2021.01.15.08.15.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 08:15:35 -0800 (PST) Date: Fri, 15 Jan 2021 10:15:32 -0600 From: Bjorn Andersson To: Roja Rani Yarubandi Cc: ulf.hansson@linaro.org, robh+dt@kernel.org, wsa@kernel.org, swboyd@chromium.org, dianders@chromium.org, saiprakash.ranjan@codeaurora.org, mka@chromium.org, akashast@codeaurora.org, msavaliy@qti.qualcomm.com, parashar@codeaurora.org, rnayak@codeaurora.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, agross@kernel.org, linux-i2c@vger.kernel.org Subject: Re: [PATCH 1/3] dt-bindings: power: Introduce 'assigned-performance-states' property Message-ID: References: <20201224111210.1214-1-rojay@codeaurora.org> <20201224111210.1214-2-rojay@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201224111210.1214-2-rojay@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 24 Dec 05:12 CST 2020, 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. > + > required: > - "#power-domain-cells" > > @@ -131,3 +143,40 @@ examples: > min-residency-us = <7000>; > }; > }; > + > + - | > + parent4: power-controller@12340000 { > + compatible = "foo,power-controller"; > + reg = <0x12340000 0x1000>; > + #power-domain-cells = <0>; > + }; > + > + parent5: power-controller@43210000 { > + compatible = "foo,power-controller"; > + reg = <0x43210000 0x1000>; > + #power-domain-cells = <0>; > + operating-points-v2 = <&power_opp_table>; > + > + power_opp_table: opp-table { > + compatible = "operating-points-v2"; > + > + power_opp_low: opp1 { > + opp-level = <16>; > + }; > + > + rpmpd_opp_ret: opp2 { > + opp-level = <64>; > + }; > + > + rpmpd_opp_svs: opp3 { > + opp-level = <256>; > + }; > + }; > + }; > + > + child4: consumer@12341000 { > + compatible = "foo,consumer"; > + reg = <0x12341000 0x1000>; > + power-domains = <&parent4>, <&parent5>; > + assigned-performance-states = <0>, <256>; May I ask how this is different from saying something like: required-opps = <&??>, <&rpmpd_opp_svs>: Regards, Bjorn > + }; > -- > QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member > of Code Aurora Forum, hosted by The Linux Foundation >