From: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: Andy Gross <agross@kernel.org>,
Bjorn Andersson <bjorn.andersson@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
Meethalavalappu Pallikunhi <manafm@codeaurora.org>,
Ram Chandrasekar <rkumbako@codeaurora.org>,
Taniya Das <tdas@codeaurora.org>,
Akhil P Oommen <akhilpo@codeaurora.org>
Subject: [RFC PATCH 0/2] Add SDPM clock monitor driver
Date: Fri, 2 Apr 2021 12:29:05 +0530 [thread overview]
Message-ID: <1617346747-8611-1-git-send-email-manafm@codeaurora.org> (raw)
RDPM (Rail digital power meter) hardware for a shared rail will
monitor for peak current management. It allocates one simple digital
power monitor(SDPM) for each major consumer of that rail. Each SDPM
estimates the power consumption of the consumer based on operating
frequency for that consumer. The RDPM hardware then aggregates all
SDPMs power estimation and recommends different mitigation levels
based on aggregated power estimation is above or below rail power
consumption specification.
This patch series adds SDPM clock monitor driver which
tracks frequency of different consumers and writes the frequency
into respective SDPM registers. The driver gets the clock source
to monitor and the corresponding SDPM register for a consumer from
devicetree. The SDPM clock monitor driver registers for the clock
change notification for these clock sources and writes the new
frequency value into the SDPM register.
Changes:
* Add dt-binding documentation for sdpm clock monitor driver
* Add SDPM clock monitor driver
Manaf Meethalavalappu Pallikunhi (2):
dt-bindings: soc: qcom: Add SDPM clock monitor driver documentation in
yaml
drivers: soc: qcom: Add SDPM clock monitor driver
.../devicetree/bindings/soc/qcom/qcom-sdpm.yaml | 68 +++++++
drivers/soc/qcom/Kconfig | 8 +
drivers/soc/qcom/Makefile | 1 +
drivers/soc/qcom/sdpm_clk_monitor.c | 217 +++++++++++++++++++++
4 files changed, 294 insertions(+)
create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom-sdpm.yaml
create mode 100644 drivers/soc/qcom/sdpm_clk_monitor.c
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
next reply other threads:[~2021-04-02 7:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-02 6:59 Manaf Meethalavalappu Pallikunhi [this message]
2021-04-02 6:59 ` [RFC PATCH 1/2] dt-bindings: soc: qcom: Add SDPM clock monitor driver documentation in yaml Manaf Meethalavalappu Pallikunhi
2021-04-06 13:24 ` Rob Herring
2021-04-02 6:59 ` [RFC PATCH 2/2] drivers: soc: qcom: Add SDPM clock monitor driver Manaf Meethalavalappu Pallikunhi
2021-04-02 10:19 ` AngeloGioacchino Del Regno
2021-04-02 17:24 ` manafm
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=1617346747-8611-1-git-send-email-manafm@codeaurora.org \
--to=manafm@codeaurora.org \
--cc=agross@kernel.org \
--cc=akhilpo@codeaurora.org \
--cc=bjorn.andersson@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rkumbako@codeaurora.org \
--cc=robh+dt@kernel.org \
--cc=tdas@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).