From: slemieux.tyco@gmail.com (Sylvain Lemieux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/3] arm: dts: lpc32xx: add clock properties to spi nodes
Date: Mon, 18 Apr 2016 14:41:09 -0400 [thread overview]
Message-ID: <1461004869.27294.5.camel@localhost> (raw)
In-Reply-To: <571448CF.5030104@mleia.com>
Hi Vladimir,
On Mon, 2016-04-18 at 05:39 +0300, Vladimir Zapolskiy wrote:
> Hi Sylvain,
>
> On 14.04.2016 15:20, slemieux.tyco at gmail.com wrote:
> > From: Sylvain Lemieux <slemieux@tycoint.com>
> >
> > The change adds clock properties to spi peripheral devices,
> > clock ids are taken from dt-bindings/clock/lpc32xx-clock.h
> >
> > Signed-off-by: Sylvain Lemieux <slemieux@tycoint.com>
> > ---
> > arch/arm/boot/dts/lpc32xx.dtsi | 4 ++++
> > 1 file changed, 4 insertions(+)
> >
> > diff --git a/arch/arm/boot/dts/lpc32xx.dtsi b/arch/arm/boot/dts/lpc32xx.dtsi
> > index c58d8da..0b6a643 100644
> > --- a/arch/arm/boot/dts/lpc32xx.dtsi
> > +++ b/arch/arm/boot/dts/lpc32xx.dtsi
> > @@ -173,6 +173,8 @@
> > spi1: spi at 20088000 {
> > compatible = "nxp,lpc3220-spi";
> > reg = <0x20088000 0x1000>;
> > + clocks = <&clk LPC32XX_CLK_SPI1>;
> > + clock-names = "apb_pclk";
>
> I'm not sure that here is a correct clock name, and it looks like it
> is copied from some PrimeCell device node, may be "arm,pl022" SPI.
>
> Reasons to NOT add clock-names property:
> * the name is one in one PrimeCell clock name, which may be confusing,
> * there is no "nxp,lpc3220-spi" SPI controller driver in the mainline,
> * there is no documented description of controller's properties,
> * the controller has only one clock, so I believe "clock-names"
> is redundant here.
>
I will try without the clock name, and, update the patch accordingly.
> I don't object against adding "clocks" property, but no public driver
> means no testing, unfortunately.
>
> FWIW there was an attempt to add the driver of pretty bad quality,
We are currently using our own SPI driver with limited functionality;
the driver support polling mode only.
We did not submit the driver, because of the limited support.
> and it does not define a "clock-names" property [1].
>
> > };
> >
> > ssp1: ssp at 2008c000 {
> > @@ -186,6 +188,8 @@
> > spi2: spi at 20090000 {
> > compatible = "nxp,lpc3220-spi";
> > reg = <0x20090000 0x1000>;
> > + clocks = <&clk LPC32XX_CLK_SPI2>;
> > + clock-names = "apb_pclk";
>
> Same as above.
>
> > };
> >
> > i2s0: i2s at 20094000 {
> >
>
> [1] https://lkml.org/lkml/2015/7/12/61
>
> --
> With best wishes,
> Vladimir
next prev parent reply other threads:[~2016-04-18 18:41 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-14 12:20 [PATCH 0/3] arm: dts: lpc32xx: update ssp / spi nodes slemieux.tyco at gmail.com
2016-04-14 12:20 ` [PATCH 1/3] arm: dts: lpc32xx: add clock properties to " slemieux.tyco at gmail.com
2016-04-18 2:39 ` Vladimir Zapolskiy
2016-04-18 18:41 ` Sylvain Lemieux [this message]
2016-04-14 12:20 ` [PATCH 2/3] arm: dts: lpc32xx: disabled ssp0/spi1 & ssp1/spi2 by default slemieux.tyco at gmail.com
2016-04-14 12:20 ` [PATCH 3/3] arm: dts: phy3250: enable ssp0 slemieux.tyco at gmail.com
2016-04-18 2:47 ` Vladimir Zapolskiy
2016-04-18 18:34 ` Sylvain Lemieux
2016-04-16 19:34 ` [PATCH 0/3] arm: dts: lpc32xx: update ssp / spi nodes Arnd Bergmann
2016-04-18 4:45 ` Vladimir Zapolskiy
2016-04-18 15:03 ` Arnd Bergmann
2016-04-18 21:22 ` Sylvain Lemieux
2016-04-18 21:52 ` Arnd Bergmann
2016-04-20 13:28 ` Sylvain Lemieux
2016-04-21 2:19 ` Vladimir Zapolskiy
2016-04-21 9:59 ` Arnd Bergmann
2016-04-18 23:12 ` Vladimir Zapolskiy
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=1461004869.27294.5.camel@localhost \
--to=slemieux.tyco@gmail.com \
--cc=linux-arm-kernel@lists.infradead.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).