Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1724447

Re: [PATCH 2/7] dt-bindings: PM / OPP: add clocks per OPP node support

From Rob Herring <robh@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH 2/7] dt-bindings: PM / OPP: add clocks per OPP node support
Date 2017-08-31 19:40 +0200
Message-ID <ukBBD-ap-1@gated-at.bofh.it> (permalink)
References <ukBBD-ap-3@gated-at.bofh.it> <ukBBD-ap-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Aug 24, 2017 at 12:10:05AM +0800, Dong Aisheng wrote:
> It's used for platforms where different OPPs may use different clocks.
> With this extended binding, user could specify the correct clock for each
> OPP node.
> 
> Cc: Viresh Kumar <vireshk@kernel.org>
> Cc: Nishanth Menon <nm@ti.com>
> Cc: Stephen Boyd <sboyd@codeaurora.org>
> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Frank Rowand <frowand.list@gmail.com>
> Cc: devicetree@vger.kernel.org
> Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
> ---
>  Documentation/devicetree/bindings/opp/opp.txt | 52 +++++++++++++++++++++++++++
>  1 file changed, 52 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/opp/opp.txt b/Documentation/devicetree/bindings/opp/opp.txt
> index e36d261..40a4340 100644
> --- a/Documentation/devicetree/bindings/opp/opp.txt
> +++ b/Documentation/devicetree/bindings/opp/opp.txt
> @@ -152,6 +152,11 @@ Optional properties:
>    hierarchy can be contained in multiple 32 bit values. i.e. <X Y Z1 Z2> in the
>    above example, Z1 & Z2 refer to the version hierarchy Z.
>  
> +- clocks: Clock phandle and specifier used for this opp.
> +
> +- clock-names: clock names for this opp. The valid clock names are platform
> +	       specific.

You don't need -names if there's only 1 clock. But then how long until 
we have a list of any random clocks some how associated with an OPP.

I think this should really be solved within the clock framework. What 
you really need is "set my parent clock to the source that can provide X 
Hz". Could the assigned-clocks property work here (in the OPP nodes 
rather than the cpu nodes)?

> +
>  - status: Marks the node enabled/disabled.
>  
>  Example 1: Single cluster Dual-core ARM cortex A9, switch DVFS states together.
> @@ -528,3 +533,50 @@ Example 6: opp-microvolt-<name>, opp-microamp-<name>:
>  		};
>  	};
>  };
> +
> +Example 7: Single core ARM cortex A7, switch separate clocks for each OPP:

Can't you add this to an existing example? We don't need to enumerate 
every possible option.

Rob

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [PATCH 2/7] dt-bindings: PM / OPP: add clocks per OPP node  support Rob Herring <robh@kernel.org> - 2017-08-31 19:40 +0200
  Re: [PATCH 2/7] dt-bindings: PM / OPP: add clocks per OPP node  support Dong Aisheng <dongas86@gmail.com> - 2017-09-01 15:10 +0200

csiph-web