|
|
Log in / Subscribe / Register

OPP: Add support for multiple clocks

From:  Viresh Kumar <viresh.kumar-AT-linaro.org>
To:  Krzysztof Kozlowski <krzysztof.kozlowski-AT-linaro.org>, Nishanth Menon <nm-AT-ti.com>, "Rafael J. Wysocki" <rafael-AT-kernel.org>, Stephen Boyd <sboyd-AT-kernel.org>, Viresh Kumar <vireshk-AT-kernel.org>
Subject:  [PATCH 0/8] OPP: Add support for multiple clocks
Date:  Fri, 10 Jun 2022 13:50:44 +0530
Message-ID:  <cover.1654849214.git.viresh.kumar@linaro.org>
Cc:  Viresh Kumar <viresh.kumar-AT-linaro.org>, linux-pm-AT-vger.kernel.org, Vincent Guittot <vincent.guittot-AT-linaro.org>, linux-kernel-AT-vger.kernel.org
Archive-link:  Article

Hello,

This patchset adds support for device with multiple clocks. None of the clocks
is considered primary in this case and all are handled equally.

This is rebased over a lot of other OPP changes and is pushed here:

git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git opp/clk

Krzysztof, can you please test this for your use case. I wasn't able to test he
multiple clock support.

--
Viresh

Viresh Kumar (8):
  OPP: Use consistent names for OPP table instances
  OPP: Remove rate_not_available parameter to _opp_add()
  OPP: Reuse _opp_compare_key() in _opp_add_static_v2()
  OPP: Make dev_pm_opp_set_opp() independent of frequency
  OPP: Allow multiple clocks for a device
  OPP: Add key specific assert() method to key finding helpers
  OPP: Assert clk_count == 1 for single clk helpers
  OPP: Provide a simple implementation to configure multiple clocks

 drivers/opp/core.c     | 337 +++++++++++++++++++++++++++++++----------
 drivers/opp/cpu.c      |  12 +-
 drivers/opp/debugfs.c  |  27 +++-
 drivers/opp/of.c       |  91 +++++++----
 drivers/opp/opp.h      |  22 +--
 include/linux/pm_opp.h |  17 ++-
 6 files changed, 378 insertions(+), 128 deletions(-)

-- 
2.31.1.272.g89b43f80a514



Copyright © 2022, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds