diff mbox series

[V2,02/11] PM / OPP: dt-bindings: Make "opp-hz" optional for power domains

Message ID 5c4a3a3fb4bf7320e592aabf582bfb6bdec4ee69.1523273291.git.viresh.kumar@linaro.org
State Accepted
Commit b89469bdf0c2025a1c1f6ce2b841cb8abe589688
Headers show
Series PM / genpd & OPP: Parse performance state from DT | expand

Commit Message

Viresh Kumar April 9, 2018, 11:43 a.m. UTC
The "opp-hz" property is not relevant across all the devices that use
the OPP tables now. For example, for a power domain a frequency value
wouldn't mean anything. Though they must have another property, which
may be implementation defined, which uniquely identifies the OPP nodes.

Make "opp-hz" optional for such devices.

Cc: Rob Herring <robh@kernel.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>

---
 Documentation/devicetree/bindings/opp/opp.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

-- 
2.15.0.194.g9af6a3dea062

Comments

Ulf Hansson April 9, 2018, 3:22 p.m. UTC | #1
On 9 April 2018 at 13:43, Viresh Kumar <viresh.kumar@linaro.org> wrote:
> The "opp-hz" property is not relevant across all the devices that use

> the OPP tables now. For example, for a power domain a frequency value

> wouldn't mean anything. Though they must have another property, which

> may be implementation defined, which uniquely identifies the OPP nodes.

>

> Make "opp-hz" optional for such devices.

>

> Cc: Rob Herring <robh@kernel.org>

> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>


Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>


Kind regards
Uffe

> ---

>  Documentation/devicetree/bindings/opp/opp.txt | 5 ++++-

>  1 file changed, 4 insertions(+), 1 deletion(-)

>

> diff --git a/Documentation/devicetree/bindings/opp/opp.txt b/Documentation/devicetree/bindings/opp/opp.txt

> index 788052d66c9d..c396c4c0af92 100644

> --- a/Documentation/devicetree/bindings/opp/opp.txt

> +++ b/Documentation/devicetree/bindings/opp/opp.txt

> @@ -82,7 +82,10 @@ This defines voltage-current-frequency combinations along with other related

>  properties.

>

>  Required properties:

> -- opp-hz: Frequency in Hz, expressed as a 64-bit big-endian integer.

> +- opp-hz: Frequency in Hz, expressed as a 64-bit big-endian integer. This is a

> +  required property for all device nodes but devices like power domains. The

> +  power domain nodes must have another (implementation dependent) property which

> +  uniquely identifies the OPP nodes.

>

>  Optional properties:

>  - opp-microvolt: voltage in micro Volts.

> --

> 2.15.0.194.g9af6a3dea062

>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/opp/opp.txt b/Documentation/devicetree/bindings/opp/opp.txt
index 788052d66c9d..c396c4c0af92 100644
--- a/Documentation/devicetree/bindings/opp/opp.txt
+++ b/Documentation/devicetree/bindings/opp/opp.txt
@@ -82,7 +82,10 @@  This defines voltage-current-frequency combinations along with other related
 properties.
 
 Required properties:
-- opp-hz: Frequency in Hz, expressed as a 64-bit big-endian integer.
+- opp-hz: Frequency in Hz, expressed as a 64-bit big-endian integer. This is a
+  required property for all device nodes but devices like power domains. The
+  power domain nodes must have another (implementation dependent) property which
+  uniquely identifies the OPP nodes.
 
 Optional properties:
 - opp-microvolt: voltage in micro Volts.