From: Boris Brezillon <boris.brezillon@bootlin.com>
To: Michal Simek <michal.simek@xilinx.com>, zhengxunli@mxic.com.tw
Cc: Mark Rutland <mark.rutland@arm.com>,
devicetree@vger.kernel.org, Pawel Moll <pawel.moll@arm.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Julien Su <juliensu@mxic.com.tw>,
Mike Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@codeaurora.org>,
Rob Herring <robh+dt@kernel.org>,
Kumar Gala <galak@codeaurora.org>,
Mason Yang <masonccyang@mxic.com.tw>,
linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 2/2] dt-bindings: clock: Add bindings for the Clocking Wizard IP
Date: Wed, 1 Aug 2018 10:37:50 +0200 [thread overview]
Message-ID: <20180801103750.4f06150c@bbrezillon> (raw)
In-Reply-To: <20180801103404.4b9135dc@bbrezillon>
On Wed, 1 Aug 2018 10:34:04 +0200
Boris Brezillon <boris.brezillon@bootlin.com> wrote:
> Hi Michal,
>
> On Wed, 1 Aug 2018 10:26:11 +0200
> Michal Simek <michal.simek@xilinx.com> wrote:
>
> > Hi Boris,
> >
> > On 1.8.2018 10:19, Boris Brezillon wrote:
> > > Document Xilinx Clocking Wizard bindings.
> > >
> > > Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
> > > ---
> > > .../devicetree/bindings/clock/xlnx,clk-wizard.txt | 28 ++++++++++++++++++++++
> > > 1 file changed, 28 insertions(+)
> > > create mode 100644 Documentation/devicetree/bindings/clock/xlnx,clk-wizard.txt
> > >
> > > diff --git a/Documentation/devicetree/bindings/clock/xlnx,clk-wizard.txt b/Documentation/devicetree/bindings/clock/xlnx,clk-wizard.txt
> > > new file mode 100644
> > > index 000000000000..1bf7a764f4a9
> > > --- /dev/null
> > > +++ b/Documentation/devicetree/bindings/clock/xlnx,clk-wizard.txt
> > > @@ -0,0 +1,28 @@
> > > +Device Tree Clock bindings for the "Clocking Wizard" IP provided by Xilinx
> > > +
> > > +This block can be used to generate up to 4 clock signals out of a single input
> > > +clock. It embeds a PLL to generate an intermediate clock which then feeds 4
> > > +clock dividers whose divider value can be adjusted based on the user needs.
> > > +
> > > +Required properties:
> > > + - #clock-cells: must be 1. The cell is encoding the id of the output clk
> > > + (from 0 to xlnx,clk-wizard-num-outputs - 1)
> > > + - compatible: must be "xlnx,clk-wizard-5.1"
> > > + - clocks: 2 clocks are required
> > > + - clock-names: should contain 2 clock names: "aclk" and "clkin".
> > > + "aclk" is driving the register interface and "clk_in" is the
> > > + input clock signal that is used by the PLL block
> > > + - xlnx,clk-wizard-num-outputs: this describe the number of output clocks
> > > + (chosen at synthesization time)
> > > + - reg: registers used to configure the Clocking wizard block
> > > +
> > > +Example:
> > > +
> > > + clkwizard: clkwizard@43c20000 {
> > > + compatible = "xlnx,clk-wizard-5.1";
> > > + reg = <0x43c20000 0x10000>;
> > > + clocks = <&clkc 18>, <&clkc 18>;
> > > + clock-names = "aclk", "clk_in1";
> > > + #clock-cells = <1>;
> > > + xlnx,clk-wizard-num-outputs = <2>;
> > > + };
> > >
> >
> > First of all this should be 1/2.
>
> Hm, okay. Didn't know the order was important.
>
> >
> > The second is that this driver is already in staging area
> > (drivers/staging/clocking-wizard) for a while. That's why please use
> > this driver or send patches on the top of this.
>
> Crap! I didn't look in staging. BTW, any reason this driver is in
> staging?
Nevermind, it's described in the TODO file. Looks like I'll need to add
clk-phase ops for my use case.
next prev parent reply other threads:[~2018-08-01 8:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-01 8:19 [PATCH 1/2] clk: Add a driver for the Xilinx Clocking Wizard block Boris Brezillon
2018-08-01 8:19 ` [PATCH 2/2] dt-bindings: clock: Add bindings for the Clocking Wizard IP Boris Brezillon
2018-08-01 8:26 ` Michal Simek
2018-08-01 8:34 ` Boris Brezillon
2018-08-01 8:37 ` Boris Brezillon [this message]
2018-08-01 8:40 ` Michal Simek
2018-08-11 10:48 ` Shubhrajyoti Datta
2018-08-11 13:41 ` Boris Brezillon
2018-08-14 16:16 ` Rob Herring
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=20180801103750.4f06150c@bbrezillon \
--to=boris.brezillon@bootlin.com \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=juliensu@mxic.com.tw \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=masonccyang@mxic.com.tw \
--cc=michal.simek@xilinx.com \
--cc=mturquette@baylibre.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@codeaurora.org \
--cc=zhengxunli@mxic.com.tw \
/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).