From: Mark Rutland <mark.rutland@arm.com>
To: Jon Ringle <jon@ringle.org>
Cc: "linux-serial@vger.kernel.org" <linux-serial@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Jon Ringle <jringle@gridpoint.com>
Subject: Re: [PATCH v2 2/2] serial: sc16is7xx: Add bindings documentation for the SC16IS7XX UARTs
Date: Wed, 26 Mar 2014 13:35:18 +0000 [thread overview]
Message-ID: <20140326133518.GA6209@e106331-lin.cambridge.arm.com> (raw)
In-Reply-To: <CAMwGMjxK2C_ciW6LwdMHE5wYkOHtkP00extF1-qcZ2xYoDr=7g@mail.gmail.com>
On Wed, Mar 26, 2014 at 12:49:59PM +0000, Jon Ringle wrote:
> On Wed, Mar 26, 2014 at 5:08 AM, Mark Rutland <mark.rutland@arm.com> wrote:
> > On Tue, Mar 25, 2014 at 06:19:24PM +0000, jon@ringle.org wrote:
> >> +- interrupt-parent: The phandle for the interrupt controller that
> >> + services interrupts for this IC.
> >> +- interrupts: Specifies the interrupt source of the parent interrupt
> >> + controller. The format of the interrupt specifier depends on the
> >> + parent interrupt controller.
> >
> > Just describe what the device-specific interrupt logically is, not what
> > the interrupts property means in general.
> >
>
> Something like this ok?:
>
> -interrupts: Should contain the UART interrupt
Sure.
>
> >> +- clocks: phandle to the IC source clock.
> >
> > Nit: clocks aren't just referred to with phandles; there's a clock
> > specifier too.
> >
> > Either correct the type here or don't mention the type at all, given
> > this is a common property.
> >
>
> I'm not sure what to do here. Many of the other
> devicetree/bindings/serial/*.txt use phandle verbage and also the
> devicetree/bindings/clock-bindings.txt documentation for clocks refers
> the type as phandle too:
>
> ==Clock consumers==
>
> Required properties:
> clocks: List of phandle and clock specifier pairs, one pair
> for each clock input to the device. Note: if the
> clock provider specifies '0' for #clock-cells, then
> only the phandle portion of the pair will appear.
>
Those bindings which refer to clocks as just being phandles are simply
wrong.
While clocks _may_ be simply phandles, that isn't the general case (and
when this is the case they can be thought of as having a zero cell
clock-specifier). The quoted portion of the core clock bindings
describes clocks as consisting of "phandle and and clock specifier
pairs", not just phandles.
> Is something like this ok?:
>
> clocks: reference to the source clock
Sure. That'll be fine.
Thanks,
Mark.
prev parent reply other threads:[~2014-03-26 13:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-25 18:19 [PATCH v2 1/2] serial: sc16is7xx jon
2014-03-25 18:19 ` [PATCH v2 2/2] serial: sc16is7xx: Add bindings documentation for the SC16IS7XX UARTs jon
2014-03-26 9:08 ` Mark Rutland
2014-03-26 12:49 ` Jon Ringle
2014-03-26 13:35 ` Mark Rutland [this message]
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=20140326133518.GA6209@e106331-lin.cambridge.arm.com \
--to=mark.rutland@arm.com \
--cc=devicetree@vger.kernel.org \
--cc=jon@ringle.org \
--cc=jringle@gridpoint.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.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 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).