Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3361150pxj; Tue, 1 Jun 2021 03:36:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCkIZEGuiYV6id5axdWQREMaLfjptn+CSwSy0fMyBFQuCl7KClbYSpDgJ9ZwO6u++b6sB9 X-Received: by 2002:a05:6402:15:: with SMTP id d21mr31990252edu.66.1622543810818; Tue, 01 Jun 2021 03:36:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622543810; cv=none; d=google.com; s=arc-20160816; b=eVGM++a50Zu292ZRMgVsnDxH0mbC2RVYITMDP5Z0oP7ceTKfhyXzrPhzgP+4fNEb7V 4Q3ggqJrLqTaHeSBIEAx4zrXYRR+PH5m1HydD5g1C5zR5KRjVcUHQbhhdWqmy0NZ9HUf g/KPyX+zgBZm6OunkP1/McHuuoRX+EqK7DEx4g3up/9bkwz0/Vh33MQLxyHUymtLPVrM VbOMmqImFzB9Tu2F9VB1pDg/a/H9QeD4GuH4gHppvvfIcDD/KTNqD8TWboOI9ZZHf2hy CSl/69JsgH4DUNaPULuyvRDEhwvjakATDAi+D5EFMywR3uZHDM2HtahLXOGsuE45OPmv LAkA== 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=K57YqakeMlmXTnxAf+W2Ub8EZWhnyq1GipQeukL/j9Q=; b=eDBxU/nIf6iYuymlXn3MMU3LhHyl4z2OSLzPi0mRbgERMnJp3FIFnE5FmcvqxvyWJv 5PI/oEViBnuItvinFD2Hdc9k8AYoLIXrIYbVNWK4SE/hLLOua4WYZphfvkYFNn6p1asY UET992W9JY8AktuCfj5F06HtIHj7ERz4LAWrhHGhZeuOMLKIcTHCDXl9lJkrM05H2wPH FBLOAzSneN4tjsYwOGiWRSeCP6LRBOa8Pge/L1MOUpcTs5DrqtJv1ps8kUk8YY9ZAHNw Oea9L9cwN/uezSerxG2ea/3w+f4iCeH/tycsuS7hUzuXrGzuzZWHkYOQSZNKYV1Fob7p /nag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SIWk7sKq; 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 x2si8163093eju.99.2021.06.01.03.36.27; Tue, 01 Jun 2021 03:36:50 -0700 (PDT) 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=SIWk7sKq; 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 S231792AbhFAKfu (ORCPT + 99 others); Tue, 1 Jun 2021 06:35:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232084AbhFAKft (ORCPT ); Tue, 1 Jun 2021 06:35:49 -0400 Received: from mail-vs1-xe31.google.com (mail-vs1-xe31.google.com [IPv6:2607:f8b0:4864:20::e31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4949C061756 for ; Tue, 1 Jun 2021 03:34:08 -0700 (PDT) Received: by mail-vs1-xe31.google.com with SMTP id i29so7444919vsr.11 for ; Tue, 01 Jun 2021 03:34:08 -0700 (PDT) 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=K57YqakeMlmXTnxAf+W2Ub8EZWhnyq1GipQeukL/j9Q=; b=SIWk7sKq05dNmHj0cBNp9EnrSZc9XaiEDsHvkAFhIs4Oyo7JCVHa+imw1r+2fwmLUm pPOdcNj+OeHdi3RSEN/nypmZcjYWO0XC7t+Y3Yc7jRh/DlkD7kecoGfbwW6iq+IXvQqh 0gNJN5nW7JnuKCcz+Qq4QJsZYvUhEtpZpj1TMCjEK3Spt167Rph4TWfsdj17RSCJrmm3 bSXLGkgrWxz15BPbfPl0yXqvE0iLnWZbk3Nyrck59H0Qx/pVuh7sHd0dmaK9lRb7/LAG +T1aozxFesbAeQniL8zB/YkvbVbUGZeZV5TDnl50t2kq4+9eKlqUZ7dCG4KlRbBMIo7V r+RA== 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=K57YqakeMlmXTnxAf+W2Ub8EZWhnyq1GipQeukL/j9Q=; b=VY9AQJP1rITqM10fGfQY0+a2XOg8VugI8LCmtVFgUOqzRvqWJwiSP19o1g+Kv3kmco 3J2VljxCj6nLJOk1D7uWOb0Ugyx/Tr/pxpDDouIgrc9ggZ01aviHkIQSio1npCooZQ1n 00CidN25icFfJdpyYZKUhqIEDffNk+0HnJW61uBF5ION+WdWBoiOLFLZ5g8DnR1iARN/ yQrw4kvxkSLQeSbLvK+nNj8zchyq1kC6qVQAUzyq9NteXYJranpkEbMYnFc9iFkQIVHp BeKwXHiY7aluDofs6Y7iSkgQJnJE1WhIUvExKYIrtzzK9Lr2zVQHfttoQDrWDEEHa4Zc n+nw== X-Gm-Message-State: AOAM530hJo9mKEQNjOAbS9VwJzF6tyczvE6GyiB9Sm8RVtj27TCCCwOm d5yOmBRNh1oKgUmiRFxOAlm2isuHB1zSlNFsRW6+NA== X-Received: by 2002:a67:e915:: with SMTP id c21mr6805876vso.19.1622543647735; Tue, 01 Jun 2021 03:34:07 -0700 (PDT) MIME-Version: 1.0 References: <1622095949-2014-1-git-send-email-rnayak@codeaurora.org> <1622095949-2014-2-git-send-email-rnayak@codeaurora.org> In-Reply-To: <1622095949-2014-2-git-send-email-rnayak@codeaurora.org> From: Ulf Hansson Date: Tue, 1 Jun 2021 12:33:31 +0200 Message-ID: Subject: Re: [PATCH v2 1/3] dt-bindings: power: Introduce 'assigned-performance-states' property To: Rajendra Nayak Cc: Rob Herring , Bjorn Andersson , Viresh Kumar , Linux PM , DTML , Linux Kernel Mailing List , linux-arm-msm , Stephen Boyd , Roja Rani Yarubandi Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 27 May 2021 at 08:13, Rajendra Nayak 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: Rajendra Nayak I don't have a strong opinion about using "default-performance-state" or "assigned-performance-state". Although, perhaps people can relate to the existing "assigned-clock-rates" DT binding? In any case, please add: Reviewed-by: Ulf Hansson Kind regards Uffe > --- > .../devicetree/bindings/power/power-domain.yaml | 50 ++++++++++++++++++++++ > 1 file changed, 50 insertions(+) > > diff --git a/Documentation/devicetree/bindings/power/power-domain.yaml b/Documentation/devicetree/bindings/power/power-domain.yaml > index aed51e9..88cebf2 100644 > --- a/Documentation/devicetree/bindings/power/power-domain.yaml > +++ b/Documentation/devicetree/bindings/power/power-domain.yaml > @@ -66,6 +66,19 @@ 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 typically > + would also run off a fixed clock and not support dynamically scaling the > + device's performance, also known as DVFS techniques. The list of performance > + state values should correspond to the list of power domains specified as part > + of the power-domains property. Each cell corresponds to one power-domain. > + A value of 0 can be used for power-domains with no performance state > + requirement. In case the power-domains have OPP tables associated, the values > + here would typically match with one of the entries in the OPP table. > + > required: > - "#power-domain-cells" > > @@ -131,3 +144,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>; > + }; > -- > QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member > of Code Aurora Forum, hosted by The Linux Foundation >