PM / OPP: Add support to parse "operating-points-v2" bindings
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 29 Jul 2015 10:53:02 +0000 (16:23 +0530)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 4 Sep 2017 05:33:33 +0000 (14:33 +0900)
commit7a1b34bc6cec683450cdddca8c062fa7fb0e6f28
treeedd6b94f48fa16f6f0e919362361c84b5c7df3b6
parenta02bcb2456e0d6573af4ebfedd154d0e41eab4ec
PM / OPP: Add support to parse "operating-points-v2" bindings

This adds support in OPP library to parse and create list of OPPs from
operating-points-v2 bindings. It takes care of most of the properties of
new bindings (except shared-opp, which will be handled separately).

For backward compatibility, we keep supporting earlier bindings. We try
to search for the new bindings first, in case they aren't present we
look for the old deprecated ones.

There are few things marked as TODO:
- Support for multiple OPP tables
- Support for multiple regulators

They should be fixed separately.

Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/opp.c