From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
To: Andy Gross <agross@kernel.org>,
Bjorn Andersson <bjorn.andersson@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
Jonathan Marek <jonathan@marek.ca>,
Stephen Boyd <sboyd@kernel.org>,
Michael Turquette <mturquette@baylibre.com>
Cc: linux-arm-msm@vger.kernel.org,
Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>,
devicetree@vger.kernel.org
Subject: [RFC 1/4] dt-bindings: clock: qcom,dispcc: document power domain bindings
Date: Fri, 11 Sep 2020 16:09:47 +0300 [thread overview]
Message-ID: <20200911130950.578483-2-dmitry.baryshkov@linaro.org> (raw)
In-Reply-To: <20200911130950.578483-1-dmitry.baryshkov@linaro.org>
SM8250 requires special power domain for accessing MMDS_GDSC registers.
Add bindings for the MMCX power domain.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
.../bindings/clock/qcom,dispcc.yaml | 28 +++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/Documentation/devicetree/bindings/clock/qcom,dispcc.yaml b/Documentation/devicetree/bindings/clock/qcom,dispcc.yaml
index 0b905a4e9ada..6325d9969913 100644
--- a/Documentation/devicetree/bindings/clock/qcom,dispcc.yaml
+++ b/Documentation/devicetree/bindings/clock/qcom,dispcc.yaml
@@ -66,6 +66,16 @@ properties:
reg:
maxItems: 1
+ power-domains:
+ maxItems: 1
+
+ power-domain-names:
+ items:
+ - const: mmcx
+
+ required-opps:
+ maxItems: 1
+
required:
- compatible
- reg
@@ -81,6 +91,7 @@ examples:
- |
#include <dt-bindings/clock/qcom,gcc-sdm845.h>
#include <dt-bindings/clock/qcom,rpmh.h>
+ #include <dt-bindings/power/qcom-rpmpd.h>
clock-controller@af00000 {
compatible = "qcom,sdm845-dispcc";
reg = <0x0af00000 0x10000>;
@@ -105,5 +116,22 @@ examples:
#clock-cells = <1>;
#reset-cells = <1>;
#power-domain-cells = <1>;
+ /* this is a part of sm8250 setup the power domain example */
+ power-domains = <&rpmhpd SDM845_CX>;
+ power-domain-names = "mmcx";
+ required-opps = <&rpmhpd_opp_low_svs>;
+ };
+ rpmhpd: power-controller {
+ compatible = "qcom,sdm845-rpmhpd";
+ #power-domain-cells = <1>;
+ operating-points-v2 = <&rpmhpd_opp_table>;
+
+ rpmhpd_opp_table: opp-table {
+ compatible = "operating-points-v2";
+
+ rpmhpd_opp_low_svs: opp3 {
+ opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>;
+ };
+ };
};
...
--
2.28.0
next prev parent reply other threads:[~2020-09-11 14:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-11 13:09 [RFC 0/4] clk: qcom: handle power domains links for GDSC Dmitry Baryshkov
2020-09-11 13:09 ` Dmitry Baryshkov [this message]
2020-09-22 22:56 ` [RFC 1/4] dt-bindings: clock: qcom,dispcc: document power domain bindings Rob Herring
2020-09-11 13:09 ` [RFC 2/4] clk: qcom: gdsc: enable external switchable power domain Dmitry Baryshkov
2020-09-23 14:42 ` Bjorn Andersson
2020-09-11 13:09 ` [RFC 3/4] clk: qcom: dispcc-sm8250: handle MMCX " Dmitry Baryshkov
2020-09-11 13:09 ` [RFC 4/4] arm64: dts: qcom: sm8250: pin MMCX to stop the board from crashing Dmitry Baryshkov
2020-10-01 0:23 ` [RFC 0/4] clk: qcom: handle power domains links for GDSC Stephen Boyd
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=20200911130950.578483-2-dmitry.baryshkov@linaro.org \
--to=dmitry.baryshkov@linaro.org \
--cc=agross@kernel.org \
--cc=bjorn.andersson@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=jonathan@marek.ca \
--cc=linux-arm-msm@vger.kernel.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=mturquette@baylibre.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.