From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Mark Rutland <mark.rutland@arm.com>
Cc: Valentine Barshak <valentine.barshak@cogentembedded.com>,
"linux-sh@vger.kernel.org" <linux-sh@vger.kernel.org>,
"linux-ide@vger.kernel.org" <linux-ide@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Tejun Heo <tj@kernel.org>, Simon Horman <horms@verge.net.au>,
Magnus Damm <magnus.damm@gmail.com>,
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Subject: Re: [PATCH] libata, dt: Add clocks to sata_rcar bindings
Date: Mon, 20 Jan 2014 16:29:33 +0100 [thread overview]
Message-ID: <5453735.fEby5SBpD0@avalon> (raw)
In-Reply-To: <20140120093119.GA28747@e106331-lin.cambridge.arm.com>
Hi Mark,
On Monday 20 January 2014 09:31:19 Mark Rutland wrote:
> On Sun, Jan 19, 2014 at 08:16:42PM +0000, Laurent Pinchart wrote:
> > On Friday 17 January 2014 02:07:42 Valentine Barshak wrote:
> > > Now that the clocks are available in the R-Car Gen2 DT,
> > > add clocks property description to the sata_rcar bindings.
> > > The clocks have been tested on r8a7791 so we use that
> > > as an example of the R-Car SATA node.
> > >
> > > The patch is against for-next branch of the libata git repo.
> > >
> > > Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
> > > ---
> > >
> > > Documentation/devicetree/bindings/ata/sata_rcar.txt | 10 ++++++----
> > > 1 file changed, 6 insertions(+), 4 deletions(-)
> > >
> > > diff --git a/Documentation/devicetree/bindings/ata/sata_rcar.txt
> > > b/Documentation/devicetree/bindings/ata/sata_rcar.txt index
> > > 1e61113..6da60c0 100644
> > > --- a/Documentation/devicetree/bindings/ata/sata_rcar.txt
> > > +++ b/Documentation/devicetree/bindings/ata/sata_rcar.txt
> > >
> > > @@ -7,12 +7,14 @@ Required properties:
> > > - "renesas,sata-r8a7791" for R-Car M2
> > > - reg : address and length of the SATA registers;
> > > - interrupts : must consist of one interrupt specifier.
> > > +- clocks : must contain a phandle and clock-specifier pair.
> >
> > I would say "must contain a reference to the functional clock.", as the
> > clock could be referenced by a phandle only depending on the SATA IP core
> > integration in the SoC.
>
> In that case the clock-specifier is simply zero cells (though admittedly
> a pair including a zero-cells element is a bit odd).
>
> The wording in the patch is consistent with the form I've been
> recommending elsewhere:
>
> - clocks: A list of phandles + clock-specifier pairs, one for each
> entry in clock-names.
> - clock-names: Should contain:
> * "fclk" - the functional clock
> * "other_clk" - some other clock.
>
> > Wouldn't it be time to have standard wordings for clocks (and interrupt)
> > bindings ?
>
> I would certainly like to see consistent wording across bindings
> (especially for interrupts given the addition of the interrupts-extended
> binding).
What about creating a new file in Documentation/devicetree/bindings/ with
reference wordings for common properties ?
--
Regards,
Laurent Pinchart
WARNING: multiple messages have this Message-ID (diff)
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Mark Rutland <mark.rutland@arm.com>
Cc: Valentine Barshak <valentine.barshak@cogentembedded.com>,
"linux-sh@vger.kernel.org" <linux-sh@vger.kernel.org>,
"linux-ide@vger.kernel.org" <linux-ide@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Tejun Heo <tj@kernel.org>, Simon Horman <horms@verge.net.au>,
Magnus Damm <magnus.damm@gmail.com>,
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Subject: Re: [PATCH] libata, dt: Add clocks to sata_rcar bindings
Date: Mon, 20 Jan 2014 15:29:33 +0000 [thread overview]
Message-ID: <5453735.fEby5SBpD0@avalon> (raw)
In-Reply-To: <20140120093119.GA28747@e106331-lin.cambridge.arm.com>
Hi Mark,
On Monday 20 January 2014 09:31:19 Mark Rutland wrote:
> On Sun, Jan 19, 2014 at 08:16:42PM +0000, Laurent Pinchart wrote:
> > On Friday 17 January 2014 02:07:42 Valentine Barshak wrote:
> > > Now that the clocks are available in the R-Car Gen2 DT,
> > > add clocks property description to the sata_rcar bindings.
> > > The clocks have been tested on r8a7791 so we use that
> > > as an example of the R-Car SATA node.
> > >
> > > The patch is against for-next branch of the libata git repo.
> > >
> > > Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
> > > ---
> > >
> > > Documentation/devicetree/bindings/ata/sata_rcar.txt | 10 ++++++----
> > > 1 file changed, 6 insertions(+), 4 deletions(-)
> > >
> > > diff --git a/Documentation/devicetree/bindings/ata/sata_rcar.txt
> > > b/Documentation/devicetree/bindings/ata/sata_rcar.txt index
> > > 1e61113..6da60c0 100644
> > > --- a/Documentation/devicetree/bindings/ata/sata_rcar.txt
> > > +++ b/Documentation/devicetree/bindings/ata/sata_rcar.txt
> > >
> > > @@ -7,12 +7,14 @@ Required properties:
> > > - "renesas,sata-r8a7791" for R-Car M2
> > > - reg : address and length of the SATA registers;
> > > - interrupts : must consist of one interrupt specifier.
> > > +- clocks : must contain a phandle and clock-specifier pair.
> >
> > I would say "must contain a reference to the functional clock.", as the
> > clock could be referenced by a phandle only depending on the SATA IP core
> > integration in the SoC.
>
> In that case the clock-specifier is simply zero cells (though admittedly
> a pair including a zero-cells element is a bit odd).
>
> The wording in the patch is consistent with the form I've been
> recommending elsewhere:
>
> - clocks: A list of phandles + clock-specifier pairs, one for each
> entry in clock-names.
> - clock-names: Should contain:
> * "fclk" - the functional clock
> * "other_clk" - some other clock.
>
> > Wouldn't it be time to have standard wordings for clocks (and interrupt)
> > bindings ?
>
> I would certainly like to see consistent wording across bindings
> (especially for interrupts given the addition of the interrupts-extended
> binding).
What about creating a new file in Documentation/devicetree/bindings/ with
reference wordings for common properties ?
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2014-01-20 15:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-16 22:07 [PATCH] libata, dt: Add clocks to sata_rcar bindings Valentine Barshak
2014-01-16 22:07 ` Valentine Barshak
2014-01-19 20:16 ` Laurent Pinchart
2014-01-19 20:16 ` Laurent Pinchart
2014-01-20 9:31 ` Mark Rutland
2014-01-20 15:29 ` Laurent Pinchart [this message]
2014-01-20 15:29 ` Laurent Pinchart
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=5453735.fEby5SBpD0@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=devicetree@vger.kernel.org \
--cc=horms@verge.net.au \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=mark.rutland@arm.com \
--cc=tj@kernel.org \
--cc=valentine.barshak@cogentembedded.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.