From: Jisheng Zhang <jszhang@marvell.com>
To: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com,
ijc+devicetree@hellion.org.uk, galak@codeaurora.org,
catalin.marinas@arm.com, will.deacon@arm.com,
mturquette@baylibre.com, sboyd@codeaurora.org,
sebastian.hesselbarth@gmail.com,
antoine.tenart@free-electrons.com
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org,
Jisheng Zhang <jszhang@marvell.com>
Subject: [PATCH v2 5/6] dt-bindings: add binding for marvell berlin4ct SoC
Date: Fri, 20 Nov 2015 16:42:31 +0800 [thread overview]
Message-ID: <1448008952-1787-6-git-send-email-jszhang@marvell.com> (raw)
In-Reply-To: <1448008952-1787-1-git-send-email-jszhang@marvell.com>
This adds a dt-binding include for Marvell berlin4ct clock IDs.
Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
---
.../bindings/clock/marvell,berlin4ct.txt | 38 +++++++++++++++
include/dt-bindings/clock/berlin4ct.h | 56 ++++++++++++++++++++++
2 files changed, 94 insertions(+)
create mode 100644 Documentation/devicetree/bindings/clock/marvell,berlin4ct.txt
create mode 100644 include/dt-bindings/clock/berlin4ct.h
diff --git a/Documentation/devicetree/bindings/clock/marvell,berlin4ct.txt b/Documentation/devicetree/bindings/clock/marvell,berlin4ct.txt
new file mode 100644
index 0000000..a489473
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/marvell,berlin4ct.txt
@@ -0,0 +1,38 @@
+* Marvell berlin4ct Clock Controllers
+
+This binding uses the common clock binding[1].
+
+[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
+
+The berlin4ct clock subsystem generates and supplies clock to various
+controllers within the berlin4ct SoC. The berlin4ct contains 3 clock controller
+blocks: pll, gateclk, berlin-clk.
+
+Required Properties:
+
+- compatible: should be one of the following.
+ - "marvell,berlin-pll" - pll compatible
+ - "marvell,berlin4ct-clk" - berlin clk compatible
+ - "marvell,berlin4ct-gateclk" - gateclk compatible
+- reg: physical base address of the clock controller and length of memory mapped
+ region. For pll, the second reg defines the bypass register base address and
+ length of memory mapped region.
+- #clock-cells: for pll should 0, for gateclk and berlin clk should be 1.
+- #bypass-shift: the bypass bit in bypass register.
+
+Example:
+
+syspll: syspll {
+ compatible = "marvell,berlin-pll";
+ reg = <0xea0200 0x14>, <0xea0710 4>;
+ #clock-cells = <0>;
+ clocks = <&osc>;
+ bypass-shift = /bits/ 8 <0>;
+};
+
+clk: clk {
+ compatible = "marvell,berlin4ct-clk";
+ reg = <0xea0720 0x144>;
+ #clock-cells = <1>;
+ clocks = <&syspll>;
+};
diff --git a/include/dt-bindings/clock/berlin4ct.h b/include/dt-bindings/clock/berlin4ct.h
new file mode 100644
index 0000000..abd5873
--- /dev/null
+++ b/include/dt-bindings/clock/berlin4ct.h
@@ -0,0 +1,56 @@
+/*
+ * Berlin BG4CT clock tree IDs
+ */
+
+/* GATE CLK */
+#define GATECLK_TSPSYS 0
+#define GATECLK_USB0CORE 1
+#define GATECLK_ZSPSYS 2
+#define GATECLK_SDIOSYS 3
+#define GATECLK_ETHCORE 4
+#define GATECLK_PCIE0SYS 5
+#define GATECLK_SATA0CORE 6
+#define GATECLK_NFCSYS 7
+#define GATECLK_EMMCSYS 8
+#define GATECLK_IHB0SYS 9
+
+/* BERLIN CLK */
+#define CLK_CPUFASTREF 0
+#define CLK_MEMFASTREF 1
+#define CLK_CFG 2
+#define CLK_PERIFSYS 3
+#define CLK_HB 4
+#define CLK_ATB 5
+#define CLK_DECODER 6
+#define CLK_DECODERM3 7
+#define CLK_DECODERPCUBE 8
+#define CLK_ENCODER 9
+#define CLK_OVPCORE 10
+#define CLK_GFX2DCORE 11
+#define CLK_GFX3DCORE 12
+#define CLK_GFX3DSH 13
+#define CLK_GFX3DSYS 14
+#define CLK_GFX2DSYS 15
+#define CLK_AVIOSYS 16
+#define CLK_VPPSYS 17
+#define CLK_EDDC 18
+#define CLK_AVIOBIU 19
+#define CLK_ZSP 20
+#define CLK_TSP 21
+#define CLK_TSPREF 22
+#define CLK_NDS 23
+#define CLK_NOCS 24
+#define CLK_APBCORE 25
+#define CLK_EMMC 26
+#define CLK_SD0 27
+#define CLK_SD1 28
+#define CLK_DLLMSTREF 29
+#define CLK_GETHRGMII 30
+#define CLK_GETHRGMIISYS 31
+#define CLK_USIM0 32
+#define CLK_PCIETEST 33
+#define CLK_USB2TEST 34
+#define CLK_USB3TEST 35
+#define CLK_USB3CORE 36
+#define CLK_NFCECC 37
+#define CLK_BCM 38
--
2.6.2
next prev parent reply other threads:[~2015-11-20 8:42 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-20 8:42 [PATCH v2 0/6] Add Marvell berlin4ct clk support Jisheng Zhang
2015-11-20 8:42 ` [PATCH v2 1/6] clk: berlin: add common pll driver Jisheng Zhang
2015-11-20 20:46 ` Sebastian Hesselbarth
2015-11-20 8:42 ` [PATCH v2 2/6] clk: berlin: add common clk driver for newer SoCs Jisheng Zhang
2015-11-20 20:54 ` Sebastian Hesselbarth
2015-11-20 8:42 ` [PATCH v2 3/6] clk: berlin: add common gateclk " Jisheng Zhang
2015-11-20 8:42 ` [PATCH v2 4/6] clk: berlin: add clk support for berlin4ct Jisheng Zhang
2015-11-20 20:56 ` Sebastian Hesselbarth
2015-11-23 5:56 ` Jisheng Zhang
2015-11-20 8:42 ` Jisheng Zhang [this message]
2015-11-20 14:37 ` [PATCH v2 5/6] dt-bindings: add binding for marvell berlin4ct SoC Rob Herring
2015-11-20 8:42 ` [PATCH v2 6/6] arm64: dts: berlin4ct: add pll and clock nodes Jisheng Zhang
[not found] ` <1448008952-1787-7-git-send-email-jszhang-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>
2015-11-20 21:06 ` Sebastian Hesselbarth
2015-11-23 7:21 ` Jisheng Zhang
2015-11-23 8:14 ` Jisheng Zhang
2015-11-23 8:30 ` Sebastian Hesselbarth
2015-11-23 8:54 ` Jisheng Zhang
2015-11-24 2:35 ` Jisheng Zhang
2015-11-27 7:51 ` Sebastian Hesselbarth
2015-11-27 8:39 ` Jisheng Zhang
2015-11-27 8:45 ` Jisheng Zhang
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=1448008952-1787-6-git-send-email-jszhang@marvell.com \
--to=jszhang@marvell.com \
--cc=antoine.tenart@free-electrons.com \
--cc=catalin.marinas@arm.com \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mturquette@baylibre.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@codeaurora.org \
--cc=sebastian.hesselbarth@gmail.com \
--cc=will.deacon@arm.com \
/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).