Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3408793pxj; Tue, 1 Jun 2021 04:48:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrW7Nj2yWrckBH/JyYrfykF4D/5GkMNnzEUoDjolB06fPE6q4l87JlztXL51MLpFl7DLcQ X-Received: by 2002:a17:907:789a:: with SMTP id ku26mr20559027ejc.411.1622548086694; Tue, 01 Jun 2021 04:48:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622548086; cv=none; d=google.com; s=arc-20160816; b=bWDfoWNz/At2Gi358JjYifkyt0MIYzARR5bhshZw8xwCfwJ0RKPDnAe4vZTziJNQRw UKYG3xoKr7j+02zmAi7a90H9MXw/fhH6yRPrg6f/uu4QqpndHY8s/Z/pOgxAtCiFVRAO njPo8SiASf8AjH0Li9idYPoYJvSoH8vi6CTAc+V3xncPiWOtvi1/tgEwGo7sRlnMWXt6 wY7nti+hsrutBpyRbtQ7rVjBYMIOsnu5QzPwiiJ/zdYFnWlr4DABE/0DksYgAvT3GVeX v8foBHtOO2OYyq2SkakVVETGqrpLNblTw3l8+LgwywmvjutvoyPwg8CdFTD8ezaGC07C 5fjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=zUuBlevDml1RsQmUcJ3i0Xl7Pbt1BMQJv/H4BpeTbs4=; b=0wMlRoqXRVHOhNN4i4LXw61fvj/RA58Y6SVawuDwrogRQYSEXuJhzMrFE4v1nm1C+Q d4yTZZuQytL7u3JqUsTeFgRjfMolc25ndhFver6mSZqV8sqrxs4ReRjvzt9Huf1ZDluk qIoOsTbNKT9nkc9McF1R4/bBL6UO2XpVroJInF/gJXsjTjSqQwUmnrALp67k0mZHHHwe 6B8OlbHm7u0CD8M2RXfdmDNR1NS2ADPtXdgQ1sfKClX9/H7R8ipGqcehMMxO/12QBdFO g5KKv5pWu0fy8inWKPDWSfUhdtDVIsiEJDw8qt9MSJ1EzyIxmyDtWnpOFqBW9893J5GJ P8/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wJB/xCUi"; 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 e15si1049891ejl.425.2021.06.01.04.47.43; Tue, 01 Jun 2021 04:48:06 -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="wJB/xCUi"; 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 S233584AbhFALqL (ORCPT + 99 others); Tue, 1 Jun 2021 07:46:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231219AbhFALqL (ORCPT ); Tue, 1 Jun 2021 07:46:11 -0400 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 291A0C061756 for ; Tue, 1 Jun 2021 04:44:29 -0700 (PDT) Received: by mail-pg1-x536.google.com with SMTP id 6so10471696pgk.5 for ; Tue, 01 Jun 2021 04:44:29 -0700 (PDT) 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:user-agent; bh=zUuBlevDml1RsQmUcJ3i0Xl7Pbt1BMQJv/H4BpeTbs4=; b=wJB/xCUiFi4akZMhxo2B7DlgwZfFQIEYn4N/AW59AMcymGly3G9+wq3KBOcIh0jyEg jaw119dClX+VlreibdlDHU998M2zPLm4P3UkG4FYFoR7Gs6ZTxkdstOjQO81WEO3/66E D43hTf1Zv1DWu39wy8e+HIOPYxfcIKBr95dtcQIbxbkN40GSzZjVc+7djlK3PK+BNJTP yhgq9oRRkDTosR33WVGAzemSjkYhcQYvmZDm1oEBHqta/Jw5FjPebpxkHFTlxDAdbFx8 Mjx5ms/A18kQyTzW3AJD2Y5d2D47s1chlk/iwX7Uz5+YcSbfiWSBSB7Qu+Hrs5dsnsDC tNKw== 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:user-agent; bh=zUuBlevDml1RsQmUcJ3i0Xl7Pbt1BMQJv/H4BpeTbs4=; b=KTifRvSkL+ueVGKOTITU3JEorWnvmZsc3TvjCYsFZdUdfXczfMi8PMd8EFXR/9gcy0 I5Vo+J1Jh0Q0L7AlW30QbIxY4Cf0dJIGrcRWDfivC14oGUprm4Inl/X1/97psRDeebZN Y/AVrVSmWENjPYKE1uTVK/BwG0kYePa4WTqj+exQeiRpMz2BB5mkcSz1xEwrqiC/Gaxo LDI+fPbKy+XhHgqKxmO7k2XrBqKqom8zEY9enuEA0di/pyaAujXnaBKtXTnk6CFjGwGG LtPnHKqsIKMY3+Avp6iYH4qIFpFBn8yHNBO0Zy3CYE6+NNoOgkc9HfNihMQIG9bVH+D0 j6Qg== X-Gm-Message-State: AOAM532XpfU6KWh8Uj5OzbSo5FnE2Zy/bqaH8CvrOMip5baCSmHUr6Zy iI78tOKtfxv0RF0ooXt/w1mnqQ== X-Received: by 2002:a63:5c4e:: with SMTP id n14mr27752883pgm.192.1622547868703; Tue, 01 Jun 2021 04:44:28 -0700 (PDT) Received: from localhost ([136.185.154.93]) by smtp.gmail.com with ESMTPSA id s123sm13088954pfb.78.2021.06.01.04.44.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Jun 2021 04:44:28 -0700 (PDT) Date: Tue, 1 Jun 2021 17:14:26 +0530 From: Viresh Kumar To: Stephan Gerhold Cc: Rajendra Nayak , ulf.hansson@linaro.org, robh+dt@kernel.org, bjorn.andersson@linaro.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, swboyd@chromium.org, rojay@codeaurora.org Subject: Re: [PATCH v2 1/3] dt-bindings: power: Introduce 'assigned-performance-states' property Message-ID: <20210601114426.3vhh2twocqx254b6@vireshk-i7> References: <1622095949-2014-1-git-send-email-rnayak@codeaurora.org> <1622095949-2014-2-git-send-email-rnayak@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01-06-21, 13:12, Stephan Gerhold wrote: > > + child4: consumer@12341000 { > > + compatible = "foo,consumer"; > > + reg = <0x12341000 0x1000>; > > + power-domains = <&parent4>, <&parent5>; > > + assigned-performance-states = <0>, <256>; > > + }; > > Bjorn already asked this in v1 [1]: > > > May I ask how this is different from saying something like: > > > > required-opps = <&??>, <&rpmpd_opp_svs>; > > and maybe this was already discussed further elsewhere. But I think at > the very least we need some clarification in the commit message + the > binding documentation how your new property relates to the existing > "required-opps" binding. > > Because even if it might not be implemented at the moment, > Documentation/devicetree/bindings/power/power_domain.txt actually also > specifies "required-opps" for device nodes e.g. with the following example: > > leaky-device0@12350000 { > compatible = "foo,i-leak-current"; > reg = <0x12350000 0x1000>; > power-domains = <&power 0>; > required-opps = <&domain0_opp_0>; > }; > > It looks like Viresh added that in commit e856f078bcf1 > ("OPP: Introduce "required-opp" property"). > > And in general I think it's a bit inconsistent that we usually refer to > performance states with phandles into the OPP table, but the > assigned-performance-states suddenly use "raw numbers". I must have missed that discussion, sorry about that. The required-opps property, when present in device's node directly, is about the (default) OPPs to choose for that device's normal functioning as they may not do DVFS. Good point Stephan. -- viresh