Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp11381810pxu; Thu, 31 Dec 2020 07:54:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJytiJHxUvVoEL7+s83h5m4O3EoWlBICHSohywU+XGgCuzau4/ASc/J6FmHl8pDmNTT0wkOj X-Received: by 2002:aa7:da01:: with SMTP id r1mr56565118eds.45.1609430043823; Thu, 31 Dec 2020 07:54:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609430043; cv=none; d=google.com; s=arc-20160816; b=H3SQ/29lP3a5Wz7ONqb1lY64j1Z1ullrtkWkMs8w5Q7etizrqrPVrwdlP/aHSj+9Sw sF7lgU0G5DelRbxRAxZR+WGwHP2Iciibc8UYMzkKAskL0ATxxz9fX4faWBGkBQEGmm8Z 0VBrZeCBDsD1EIn4n8D6fdXSq+7kS4qj60riEl8Tums2yXgURn3+kKmDCQcr0ZU2grnn rkqjvgZrjxSK0LmrPWKxVm0BUUVJ2yldh7qDHaqxNmhjSyJgK1RnBn3oI/SVDgiS9kYP o6rU4FnRhva3wkeA+gtK5PwmBza+mY1BeOnZk2offZruOlTsRYuJEuqYU2RavICoCma2 olpw== 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; bh=vrJ54GWrf1gjKYUTCdpFWMnnDxjUx7yI9iWKN6uWpbY=; b=clC8lRvnOV34RqkDwK1XWIfM8j+EFXLKT156QJ7cZ6zJnTpYw9a5hOx6Q0e0RM/Sa1 uBilk9DjlNYuTdiaWHGId4+ssAAhSa5wvmAXW5S4jPDM6n7NFgQtIzpon5n35h8y5MMX UC9Sgjv5MUxlkBbRshyK4iaYukWhtqh5JQKS2YJgi0aza8SfRjhOrihYRoKjZelaCdB+ y8Hx5ufJ1lKu8bNjabQdhVbGbvGWgc6fOYiYU7jpi5TbUaxraFo53wys1eMEe15fBCVC bZTUp6qf6u0g8krOY0DIoQogsmymopT4TlNxcEnUAHtFLdteQFJFMgXuTkYyhKxKxlok oFpA== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j20si23628267ejs.76.2020.12.31.07.53.40; Thu, 31 Dec 2020 07:54:03 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727157AbgLaPuN (ORCPT + 99 others); Thu, 31 Dec 2020 10:50:13 -0500 Received: from mail-ot1-f43.google.com ([209.85.210.43]:46038 "EHLO mail-ot1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726071AbgLaPuN (ORCPT ); Thu, 31 Dec 2020 10:50:13 -0500 Received: by mail-ot1-f43.google.com with SMTP id n42so18255579ota.12; Thu, 31 Dec 2020 07:49:57 -0800 (PST) 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=vrJ54GWrf1gjKYUTCdpFWMnnDxjUx7yI9iWKN6uWpbY=; b=WvF9QIlLVRSpAnCEu6QgBoKAuHTPcKyGd+e1ZMmHt+wS6sR2QjayqQmYpr3d+n3QwJ /wA2iEuy3vY57OiFvyoKK1K+qH+DngvjTZT1K4ttLJfFSCrcarlLE07PFHrBieGUWMY2 L5nWjkl8lX2ofRRMqj1CZe0+QClCe8z+BqDH+u9tPUk8kujoj/FVHSzQF3Rf04FeKOD0 1wqwNML5n4vDcFz8+ZPPhQWtavMi2bW4wQYLAsMp4J8bqicQxuG2Ack9RszxwFu26ITP U/I38YCgPP9jK6nT1gdqInwsDobnlxX8lT4L3jWarsicvBmc7m0QUDsM/OZJ7zfCqV2L V5Iw== X-Gm-Message-State: AOAM531ojOihhFtsqX391ljRONdvNRoyx5ogm9TZbmj7fAovbRrUUqfL x8cqoSzX5RAP38KKCla+QQ== X-Received: by 2002:a05:6830:1650:: with SMTP id h16mr42298972otr.266.1609429772107; Thu, 31 Dec 2020 07:49:32 -0800 (PST) Received: from robh.at.kernel.org ([64.188.179.253]) by smtp.gmail.com with ESMTPSA id s17sm11209427otg.16.2020.12.31.07.49.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Dec 2020 07:49:31 -0800 (PST) Received: (nullmailer pid 1851540 invoked by uid 1000); Thu, 31 Dec 2020 15:49:29 -0000 Date: Thu, 31 Dec 2020 08:49:29 -0700 From: Rob Herring To: Roja Rani Yarubandi Cc: ulf.hansson@linaro.org, bjorn.andersson@linaro.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: <20201231154929.GA1846089@robh.at.kernel.org> 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, 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'? > + > 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>; > + }; > -- > QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member > of Code Aurora Forum, hosted by The Linux Foundation >