From: Georgi Djakov <georgi.djakov@linaro.org>
To: sboyd@codeaurora.org, agross@codeaurora.org
Cc: mturquette@baylibre.com, linux-clk@vger.kernel.org,
bjorn.andersson@sonymobile.com, linux-kernel@vger.kernel.org,
linux-arm-msm@vger.kernel.org, georgi.djakov@linaro.org
Subject: [PATCH v3 0/8] Add initial support for RPM clocks
Date: Tue, 20 Oct 2015 19:57:52 +0300 [thread overview]
Message-ID: <1445360280-2347-1-git-send-email-georgi.djakov@linaro.org> (raw)
This patchset adds initial support for the clocks controlled by
the RPM (Resource Power Manager) processor on Qualcomm platforms.
The RPM is a dedicated hardware engine for managing the shared
SoC resources in order to keep the lowest power profile. It
communicates with other hardware subsystems via shared memory
and accepts clock requests, aggregates the requests and turns
the clocks on/off or scales them on demand.
Until now the RPM clock controller was not supported and a hard-
coded fixed-rate clocks were registered in the drivers. Now we
try to do a smooth transition by moving the xo oscillator to DT
(where it actually belongs) and handle both cases when RPMCC is
enabled or disabled (also to avoid breakage on current boards).
Changes since v2 (https://lkml.org/lkml/2015/8/3/513)
* Addressed various comments from Stephen. Thanks!
* Added sleep sets support.
* Added a mutex in the RPM driver.
* Support both scenarios - RPMCC enabled or disabled.
* Make RPMCC more generic in order to support other SMD RPM
based platforms.
Changes since v1 (https://lkml.org/lkml/2015/7/9/257):
* Changed the driver name to clk-smd-rpm, also build it only
when it is needed - suggested by Srini and Bjorn.
* More detailed binding example.
* Minor changes.
Georgi Djakov (8):
arm64: dts: qcom: 8x16: Add fixed rate on-board oscillator
clk: qcom: msm8916: Set the parent of xo to xo_board
clk: qcom: msm8916: Ignore sleep_clk_src registration errors
arm64: dts: qcom: 8x16: Add fixed rate sleep clock oscillator
clk: qcom: Add support for RPM Clocks
clk: qcom: Add RPM clock controller driver
clk: qcom: msm8916: Use RPMCC if it is enabled
clk: qcom: msm8916: Remove hard-coded sleep_clk_src
.../devicetree/bindings/clock/qcom,rpmcc.txt | 35 +++
arch/arm64/boot/dts/qcom/msm8916.dtsi | 16 ++
drivers/clk/qcom/Kconfig | 11 +
drivers/clk/qcom/Makefile | 2 +
drivers/clk/qcom/clk-smd-rpm.c | 260 ++++++++++++++++++++
drivers/clk/qcom/clk-smd-rpm.h | 142 +++++++++++
drivers/clk/qcom/gcc-msm8916.c | 15 +-
drivers/clk/qcom/rpmcc.c | 198 +++++++++++++++
include/dt-bindings/clock/qcom,rpmcc-msm8916.h | 44 ++++
9 files changed, 714 insertions(+), 9 deletions(-)
create mode 100644 Documentation/devicetree/bindings/clock/qcom,rpmcc.txt
create mode 100644 drivers/clk/qcom/clk-smd-rpm.c
create mode 100644 drivers/clk/qcom/clk-smd-rpm.h
create mode 100644 drivers/clk/qcom/rpmcc.c
create mode 100644 include/dt-bindings/clock/qcom,rpmcc-msm8916.h
next reply other threads:[~2015-10-20 16:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-20 16:57 Georgi Djakov [this message]
2015-10-20 16:57 ` [PATCH v3 1/8] arm64: dts: qcom: 8x16: Add fixed rate on-board oscillator Georgi Djakov
2015-10-22 2:52 ` Andy Gross
2015-10-27 23:17 ` Stephen Boyd
2015-10-20 16:57 ` [PATCH v3 2/8] clk: qcom: msm8916: Set the parent of xo to xo_board Georgi Djakov
2015-10-26 22:43 ` Stephen Boyd
2015-10-20 16:57 ` [PATCH v3 3/8] clk: qcom: msm8916: Ignore sleep_clk_src registration errors Georgi Djakov
2015-10-26 22:44 ` Stephen Boyd
2015-10-20 16:57 ` [PATCH v3 4/8] arm64: dts: qcom: 8x16: Add fixed rate sleep clock oscillator Georgi Djakov
2015-10-20 16:57 ` [PATCH v3 5/8] clk: qcom: Add support for RPM Clocks Georgi Djakov
2015-10-27 23:15 ` Stephen Boyd
2015-10-20 16:57 ` [PATCH v3 6/8] clk: qcom: Add RPM clock controller driver Georgi Djakov
2015-10-27 23:23 ` Stephen Boyd
2015-10-20 16:57 ` [PATCH v3 7/8] clk: qcom: msm8916: Use RPMCC if it is enabled Georgi Djakov
2015-10-20 16:58 ` [PATCH v3 8/8] clk: qcom: msm8916: Remove hard-coded sleep_clk_src Georgi Djakov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1445360280-2347-1-git-send-email-georgi.djakov@linaro.org \
--to=georgi.djakov@linaro.org \
--cc=agross@codeaurora.org \
--cc=bjorn.andersson@sonymobile.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=sboyd@codeaurora.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).