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 1/2] dt-bindings: soc: qcom: Add SDPM clock monitor driver documentation in yaml
Date: Fri, 2 Apr 2021 12:29:06 +0530 [thread overview]
Message-ID: <1617346747-8611-2-git-send-email-manafm@codeaurora.org> (raw)
In-Reply-To: <1617346747-8611-1-git-send-email-manafm@codeaurora.org>
Add yaml documentation for SDPM clock monitor driver which will
register for clock rate change notification and writes the clock rate
into SDPM CSR register.
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
---
.../devicetree/bindings/soc/qcom/qcom-sdpm.yaml | 68 ++++++++++++++++++++++
1 file changed, 68 insertions(+)
create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom-sdpm.yaml
diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom-sdpm.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom-sdpm.yaml
new file mode 100644
index 00000000..20df362
--- /dev/null
+++ b/Documentation/devicetree/bindings/soc/qcom/qcom-sdpm.yaml
@@ -0,0 +1,68 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/soc/qcom/qcom-sdpm.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Simple Digital Power Meter(SDPM) clock monitoring
+
+maintainers:
+ - Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
+ - Ram Chandrasekar <rkumbako@codeaurora.org>
+
+description: |
+
+ SDPM is used to monitor the operating frequency of different clocks and based
+ on operating levels of different clients, RDPM (Rail Digital Power Meter)
+ hardware estimates total power consumption of a shared railway. The SDPM
+ clock monitor driver will register with the clock framework for rate change
+ notification of different clocks. These clock rate will be updated to SDPM.
+
+properties:
+ compatible:
+ enum:
+ - qcom,sdpm
+
+ reg:
+ items:
+ - description: RDPM hardware base address
+
+ clocks:
+ items:
+ minItems: 1
+ maxItems: 8
+ description: Different clock source
+
+ clock-names:
+ items:
+ minItems: 1
+ maxItems: 8
+ description: Different clock source name
+
+ csr-id:
+ $ref: '/schemas/types.yaml#/definitions/uint32-array'
+ description: SDPM CSR IDs matching the clock order mentioned in the
+ clocks property.
+ minItems: 1
+ maxItems: 8
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - clock-names
+ - csr-id
+
+examples:
+ - |
+ #include <dt-bindings/clock/qcom,camcc-sc7280.h>
+ #include <dt-bindings/clock/qcom,gcc-sc7280.h>
+ cx_sdpm@634000 {
+ compatible = "qcom,sdpm";
+ reg = <0x634000 0x1000>;
+ clocks = <&clock_camcc CAM_CC_IPE_0_CLK_SRC>,
+ <&clock_gcc GCC_GP1_CLK_SRC>;
+ clock-names = "cam_cc_ipe", "gcc_gp1";
+ csr-id = <5 7>;
+ };
+...
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
next prev parent 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 [RFC PATCH 0/2] Add SDPM clock monitor driver Manaf Meethalavalappu Pallikunhi
2021-04-02 6:59 ` Manaf Meethalavalappu Pallikunhi [this message]
2021-04-06 13:24 ` [RFC PATCH 1/2] dt-bindings: soc: qcom: Add SDPM clock monitor driver documentation in yaml 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-2-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).