From: Rob Herring <robh@kernel.org>
To: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@codeaurora.org>,
linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Kumar Gala <galak@codeaurora.org>,
Jason Cooper <jason@lakedaemon.net>, Andrew Lunn <andrew@lunn.ch>,
Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>,
Gregory Clement <gregory.clement@free-electrons.com>,
Nadav Haklai <nadavh@marvell.com>,
Lior Amsalem <alior@marvell.com>, Hanna Hawa <hannah@marvell.com>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v4 4/5] dt-bindings: arm: add DT binding for Marvell CP110 system controller
Date: Mon, 28 Mar 2016 14:47:56 -0500 [thread overview]
Message-ID: <20160328194756.GA28967@rob-hp-laptop> (raw)
In-Reply-To: <1459070777-18049-5-git-send-email-thomas.petazzoni@free-electrons.com>
On Sun, Mar 27, 2016 at 11:26:16AM +0200, Thomas Petazzoni wrote:
> This commit adds the DT binding documentation for the Marvell CP110
> system controller, which is part of the CP110 HW block, itself used in
> the Marvell Armada 7K and 8K SoCs.
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> .../arm/marvell/cp110-system-controller0.txt | 88 ++++++++++++++++++++++
> 1 file changed, 88 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/arm/marvell/cp110-system-controller0.txt
>
> diff --git a/Documentation/devicetree/bindings/arm/marvell/cp110-system-controller0.txt b/Documentation/devicetree/bindings/arm/marvell/cp110-system-controller0.txt
> new file mode 100644
> index 0000000..e8883da
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/arm/marvell/cp110-system-controller0.txt
> @@ -0,0 +1,88 @@
> +Marvell Armada CP110 System Controller 0
> +========================================
> +
> +The CP110 is one of the two core HW blocks of the Marvell Armada 7K/8K
> +SoCs. It contains two sets of system control registers, System
> +Controller 0 and System Controller 1. This Device Tree binding allows
> +to describe the first system controller, which provides registers to
> +configure various aspects of the SoC.
> +
> +The Device Tree node representing this System Controller 0 provides a
> +number of clocks:
> +
> + - a set of core clocks
> + - a set of gatable clocks
> +
> +Those clocks can be referenced by other Device Tree nodes using two
> +cells:
> + - The first cell must be 0 or 1. 0 for the core clocks and 1 for the
> + gatable clocks.
> + - The second cell identifies the particular core clock or gatable
> + clocks.
> +
> +The following clocks are available:
> + - Core clocks
> + - 0 0 APLL
> + - 0 1 PPv2 core
> + - 0 2 EIP
> + - 0 3 Core
> + - 0 4 NAND core
> + - Gatable clocks
> + - 1 0 Audio
> + - 1 1 Comm Unit
> + - 1 2 NAND
> + - 1 3 PPv2
> + - 1 4 SDIO
> + - 1 5 MG Domain
> + - 1 6 MG Core
> + - 1 7 XOR1
> + - 1 8 XOR0
> + - 1 9 GOP DP
> + - 1 11 PCIe x1 0
> + - 1 12 PCIe x1 1
> + - 1 13 PCIe x4
> + - 1 14 PCIe / XOR
> + - 1 15 SATA
> + - 1 16 SATA USB
> + - 1 18 GOP Macro
> + - 1 22 USB3H0
> + - 1 23 USB3H1
> + - 1 24 USB3 Device
> + - 1 25 EIP150
> + - 1 26 EIP197
> +
> +Required properties:
> +
> + - compatible: must be:
> + "marvell,cp110-system-controller0", "syscon";
This block is really the same across SoCs?
> + - reg: register area of the CP110 system controller 0
> + - #clock-cells: must be set to 2
> + - core-clock-output-names must be set to:
> + "cpm-apll", "cpm-ppv2-core", "cpm-eip", "cpm-core", "cpm-nand-core"
> + - gatable-clock-indices must be set to:
> + <0>, <1>, <2>, <3>, <4>, <5>, <6>, <7>, <8>,
> + <9>, <11>, <12>, <13>, <14>, <15>, <16>, <18>,
> + <22>, <23>, <24>, <25>, <26>
You aren't skipping very many spots. I'd just fill the unused names in
with "none" or something.
> + - gatable-clock-output-names must be set to:
> + "cpm-audio", "cpm-communit", "cpm-nand", "cpm-ppv2", "cpm-sdio",
> + "cpm-mg-domain", "cpm-mg-core", "cpm-xor1", "cpm-xor0", "cpm-gop-dp", "cpm-pcie_x10",
> + "cpm-pcie_x11", "cpm-pcie_x4", "cpm-pcie-xor", "cpm-sata", "cpm-sata-usb",
> + "cpm-gop-macro", "cpm-usb3h0", "cpm-usb3h1", "cpm-usb3dev", "cpm-eip150",
> + "cpm-eip197"
> +
> +Example:
> +
> + cpm_syscon0: system-controller@440000 {
> + compatible = "marvell,cp110-system-controller0", "syscon";
> + reg = <0x440000 0x1000>;
> + #clock-cells = <2>;
> + core-clock-output-names = "cpm-apll", "cpm-ppv2-core", "cpm-eip", "cpm-core", "cpm-nand-core";
> + gate-clock-indices = <0>, <1>, <2>, <3>, <4>, <5>, <6>, <7>, <8>,
> + <9>, <11>, <12>, <13>, <14>, <15>, <16>, <18>,
> + <22>, <23>, <24>, <25>, <26>;
> + gate-clock-output-names = "cpm-audio", "cpm-communit", "cpm-nand", "cpm-ppv2", "cpm-sdio",
> + "cpm-mg-domain", "cpm-mg-core", "cpm-xor1", "cpm-xor0", "cpm-gop-dp", "cpm-pcie_x10",
> + "cpm-pcie_x11", "cpm-pcie_x4", "cpm-pcie-xor", "cpm-sata", "cpm-sata-usb",
> + "cpm-gop-macro", "cpm-usb3h0", "cpm-usb3h1", "cpm-usb3dev", "cpm-eip150",
> + "cpm-eip197";
> + };
> --
> 2.6.4
>
next prev parent reply other threads:[~2016-03-28 19:47 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-27 9:26 [PATCH v4 0/5] clk: mvebu: clock drivers for Marvell Armada 7K/8K Thomas Petazzoni
2016-03-27 9:26 ` [PATCH v4 1/5] clk: unconditionally recurse into clk/mvebu/ Thomas Petazzoni
2016-04-02 1:25 ` Stephen Boyd
2016-03-27 9:26 ` [PATCH v4 2/5] dt-bindings: arm: add DT binding for Marvell AP806 system controller Thomas Petazzoni
2016-04-02 1:26 ` Stephen Boyd
[not found] ` <1459070777-18049-1-git-send-email-thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2016-03-27 9:26 ` [PATCH v4 3/5] clk: mvebu: new driver for Armada " Thomas Petazzoni
[not found] ` <1459070777-18049-4-git-send-email-thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2016-04-02 1:27 ` Stephen Boyd
[not found] ` <20160402012731.GE18567-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2016-04-13 14:32 ` Thomas Petazzoni
2016-03-27 9:26 ` [PATCH v4 4/5] dt-bindings: arm: add DT binding for Marvell CP110 " Thomas Petazzoni
2016-03-28 19:47 ` Rob Herring [this message]
2016-04-11 15:59 ` Thomas Petazzoni
2016-04-13 16:01 ` Thomas Petazzoni
2016-04-14 7:49 ` Thomas Petazzoni
2016-04-14 19:19 ` Geert Uytterhoeven
2016-04-23 14:22 ` Thomas Petazzoni
2016-04-24 9:15 ` Geert Uytterhoeven
2016-03-27 9:26 ` [PATCH v4 5/5] clk: mvebu: new driver for Armada " Thomas Petazzoni
2016-04-02 1:25 ` Stephen Boyd
2016-04-13 15:30 ` Thomas Petazzoni
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=20160328194756.GA28967@rob-hp-laptop \
--to=robh@kernel.org \
--cc=alior@marvell.com \
--cc=andrew@lunn.ch \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=gregory.clement@free-electrons.com \
--cc=hannah@marvell.com \
--cc=ijc+devicetree@hellion.org.uk \
--cc=jason@lakedaemon.net \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mturquette@baylibre.com \
--cc=nadavh@marvell.com \
--cc=pawel.moll@arm.com \
--cc=sboyd@codeaurora.org \
--cc=sebastian.hesselbarth@gmail.com \
--cc=thomas.petazzoni@free-electrons.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