From: leo.yan@linaro.org (Leo Yan)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 2/4] dt-bindings: clk: Hi6220: Document stub clock driver
Date: Tue, 4 Aug 2015 15:27:27 +0800 [thread overview]
Message-ID: <1438673249-6051-3-git-send-email-leo.yan@linaro.org> (raw)
In-Reply-To: <1438673249-6051-1-git-send-email-leo.yan@linaro.org>
Document the new compatible for stub clock driver which is used for CPU
and DDR's dynamic frequency scaling.
Signed-off-by: Leo Yan <leo.yan@linaro.org>
---
.../devicetree/bindings/clock/hi6220-clock.txt | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/clock/hi6220-clock.txt b/Documentation/devicetree/bindings/clock/hi6220-clock.txt
index 259e30a..e4d5fea 100644
--- a/Documentation/devicetree/bindings/clock/hi6220-clock.txt
+++ b/Documentation/devicetree/bindings/clock/hi6220-clock.txt
@@ -15,19 +15,36 @@ Required Properties:
- "hisilicon,hi6220-sysctrl"
- "hisilicon,hi6220-mediactrl"
- "hisilicon,hi6220-pmctrl"
+ - "hisilicon,hi6220-stub-clk"
- reg: physical base address of the controller and length of memory mapped
region.
- #clock-cells: should be 1.
-For example:
+Optional Properties:
+
+- hisilicon,hi6220-clk-sram: phandle to the syscon managing the SoC internal sram;
+ the driver need use the sram to pass parameters for frequency change.
+
+- mboxes: use the label reference for the mailbox as the first parameter, the
+ second parameter is the channel number.
+
+Example 1:
sys_ctrl: sys_ctrl at f7030000 {
compatible = "hisilicon,hi6220-sysctrl", "syscon";
reg = <0x0 0xf7030000 0x0 0x2000>;
#clock-cells = <1>;
};
+Example 2:
+ stub_clock: stub_clock {
+ compatible = "hisilicon,hi6220-stub-clk";
+ hisilicon,hi6220-clk-sram = <&sram>;
+ #clock-cells = <1>;
+ mboxes = <&mailbox 1>;
+ };
+
Each clock is assigned an identifier and client nodes use this identifier
to specify the clock which they consume.
--
1.9.1
next prev parent reply other threads:[~2015-08-04 7:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-04 7:27 [PATCH v4 0/4] clk: hisilicon: support stub clock Leo Yan
2015-08-04 7:27 ` [PATCH v4 1/4] dt-bindings: arm: Hi6220: add doc for SRAM controller Leo Yan
2015-08-12 8:33 ` Stephen Boyd
2015-08-04 7:27 ` Leo Yan [this message]
2015-08-12 8:33 ` [PATCH v4 2/4] dt-bindings: clk: Hi6220: Document stub clock driver Stephen Boyd
2015-08-04 7:27 ` [PATCH v4 3/4] clk: Hi6220: add " Leo Yan
2015-08-12 8:33 ` Stephen Boyd
2015-08-04 7:27 ` [PATCH v4 4/4] arm64: dts: add Hi6220's stub clock node Leo Yan
2015-08-12 0:38 ` [PATCH v4 0/4] clk: hisilicon: support stub clock Stephen Boyd
2015-08-12 1:49 ` Leo Yan
2015-08-12 9:20 ` Wei Xu
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=1438673249-6051-3-git-send-email-leo.yan@linaro.org \
--to=leo.yan@linaro.org \
--cc=linux-arm-kernel@lists.infradead.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