PM / OPP: Add "opp-supported-hw" binding
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 11 Nov 2015 02:40:54 +0000 (08:10 +0530)
committerAlex Shi <alex.shi@linaro.org>
Fri, 8 Apr 2016 03:22:02 +0000 (11:22 +0800)
commit10f4691214f81fad8e5ed2273ac72c1b9a7e22cf
tree1dc411211b3de71c6d78f199f0c5ea8d18a02ed8
parent0871a32c4d1b28aa266be3f33f2068a193196ac7
PM / OPP: Add "opp-supported-hw" binding

We may want to enable only a subset of OPPs, from the bigger list of
OPPs, based on what version of the hardware we are running on. This
would enable us to not duplicate OPP tables for every version of the
hardware we support.

To enable that, this patch defines a new property 'opp-supported-hw'. It
can support any number of hierarchy levels of the versions the hardware
follows. And based on the selected hardware versions, we can pick only
the relevant OPPs at runtime.

Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 1c4d12de2719dfdf27c6dab31e7a5641ee293c94)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
Documentation/devicetree/bindings/opp/opp.txt