From: Maxime Ripard <maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
To: Josh Cartwright <joshc-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
Cc: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Mike Turquette
<mturquette-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
Emilio Lopez <emilio-0Z03zUJReD5OxF6Tv1QG9Q@public.gmane.org>,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org,
kevin.z.m.zh-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
sunny-0TFLnhJekD6UEPyfVivIlAC/G2K4zDHf@public.gmane.org,
shuge-0TFLnhJekD6UEPyfVivIlAC/G2K4zDHf@public.gmane.org,
zhuzhenhua-0TFLnhJekD6UEPyfVivIlAC/G2K4zDHf@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [PATCH 2/4] ARM: sun6i: dt: Add PLL6 and SPI module clocks
Date: Fri, 17 Jan 2014 13:07:45 +0100 [thread overview]
Message-ID: <20140117120745.GB3867@lukather> (raw)
In-Reply-To: <20140116181528.GY8153-OP5zVEFNDbfdOxZ39nK119BPR1lH4CV8@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 2289 bytes --]
Hi Josh,
On Thu, Jan 16, 2014 at 12:15:28PM -0600, Josh Cartwright wrote:
> On Thu, Jan 16, 2014 at 06:11:23PM +0100, Maxime Ripard wrote:
> > The module clocks in the A31 are still compatible with the A10 one. Add the SPI
> > module clocks and the PLL6 in the device tree to allow their use by the SPI
> > controllers.
> >
> > Signed-off-by: Maxime Ripard <maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
> > ---
> > arch/arm/boot/dts/sun6i-a31.dtsi | 48 +++++++++++++++++++++++++++++++---------
> > 1 file changed, 38 insertions(+), 10 deletions(-)
> >
> > diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi
> > index 5256ad9..ae058eb 100644
> > --- a/arch/arm/boot/dts/sun6i-a31.dtsi
> > +++ b/arch/arm/boot/dts/sun6i-a31.dtsi
> > @@ -73,16 +73,12 @@
> > clocks = <&osc24M>;
> > };
> >
> > - /*
> > - * This is a dummy clock, to be used as placeholder on
> > - * other mux clocks when a specific parent clock is not
> > - * yet implemented. It should be dropped when the driver
> > - * is complete.
> > - */
> > - pll6: pll6 {
> > - #clock-cells = <0>;
> > - compatible = "fixed-clock";
> > - clock-frequency = <0>;
> > + pll6: clk@01c20028 {
> > + #clock-cells = <1>;
> > + compatible = "allwinner,sun6i-a31-pll6-clk";
> > + reg = <0x01c20028 0x4>;
> > + clocks = <&osc24M>;
> > + clock-output-names = "pll6";
> > };
> >
> > cpu: cpu@01c20050 {
> > @@ -182,6 +178,38 @@
> > "apb2_uart1", "apb2_uart2", "apb2_uart3",
> > "apb2_uart4", "apb2_uart5";
> > };
> > +
> > + spi0_clk: clk@01c200a0 {
> > + #clock-cells = <0>;
> > + compatible = "allwinner,sun4i-mod0-clk";
> > + reg = <0x01c200a0 0x4>;
> > + clocks = <&osc24M>, <&pll6>;
>
> This looks weird. You've set the pll6 #clock-cells = <1>, but you
> aren't using a specifier here. Same below, as well. The binding
> documentation indicates that #clock-cells should be 0 for the pll6 node.
Ah, right, it's a dumb copy/paste mistake.
I'd expect dtc to output a warning/error in such case, but apparently
it doesn't.
Thanks!
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: maxime.ripard@free-electrons.com (Maxime Ripard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/4] ARM: sun6i: dt: Add PLL6 and SPI module clocks
Date: Fri, 17 Jan 2014 13:07:45 +0100 [thread overview]
Message-ID: <20140117120745.GB3867@lukather> (raw)
In-Reply-To: <20140116181528.GY8153@joshc.qualcomm.com>
Hi Josh,
On Thu, Jan 16, 2014 at 12:15:28PM -0600, Josh Cartwright wrote:
> On Thu, Jan 16, 2014 at 06:11:23PM +0100, Maxime Ripard wrote:
> > The module clocks in the A31 are still compatible with the A10 one. Add the SPI
> > module clocks and the PLL6 in the device tree to allow their use by the SPI
> > controllers.
> >
> > Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
> > ---
> > arch/arm/boot/dts/sun6i-a31.dtsi | 48 +++++++++++++++++++++++++++++++---------
> > 1 file changed, 38 insertions(+), 10 deletions(-)
> >
> > diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi
> > index 5256ad9..ae058eb 100644
> > --- a/arch/arm/boot/dts/sun6i-a31.dtsi
> > +++ b/arch/arm/boot/dts/sun6i-a31.dtsi
> > @@ -73,16 +73,12 @@
> > clocks = <&osc24M>;
> > };
> >
> > - /*
> > - * This is a dummy clock, to be used as placeholder on
> > - * other mux clocks when a specific parent clock is not
> > - * yet implemented. It should be dropped when the driver
> > - * is complete.
> > - */
> > - pll6: pll6 {
> > - #clock-cells = <0>;
> > - compatible = "fixed-clock";
> > - clock-frequency = <0>;
> > + pll6: clk at 01c20028 {
> > + #clock-cells = <1>;
> > + compatible = "allwinner,sun6i-a31-pll6-clk";
> > + reg = <0x01c20028 0x4>;
> > + clocks = <&osc24M>;
> > + clock-output-names = "pll6";
> > };
> >
> > cpu: cpu at 01c20050 {
> > @@ -182,6 +178,38 @@
> > "apb2_uart1", "apb2_uart2", "apb2_uart3",
> > "apb2_uart4", "apb2_uart5";
> > };
> > +
> > + spi0_clk: clk at 01c200a0 {
> > + #clock-cells = <0>;
> > + compatible = "allwinner,sun4i-mod0-clk";
> > + reg = <0x01c200a0 0x4>;
> > + clocks = <&osc24M>, <&pll6>;
>
> This looks weird. You've set the pll6 #clock-cells = <1>, but you
> aren't using a specifier here. Same below, as well. The binding
> documentation indicates that #clock-cells should be 0 for the pll6 node.
Ah, right, it's a dumb copy/paste mistake.
I'd expect dtc to output a warning/error in such case, but apparently
it doesn't.
Thanks!
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140117/10c9df26/attachment.sig>
WARNING: multiple messages have this Message-ID (diff)
From: Maxime Ripard <maxime.ripard@free-electrons.com>
To: Josh Cartwright <joshc@codeaurora.org>
Cc: Mark Brown <broonie@kernel.org>,
Mike Turquette <mturquette@linaro.org>,
Emilio Lopez <emilio@elopez.com.ar>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-spi@vger.kernel.org, linux-sunxi@googlegroups.com,
kevin.z.m.zh@gmail.com, sunny@allwinnertech.com,
shuge@allwinnertech.com, zhuzhenhua@allwinnertech.com,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 2/4] ARM: sun6i: dt: Add PLL6 and SPI module clocks
Date: Fri, 17 Jan 2014 13:07:45 +0100 [thread overview]
Message-ID: <20140117120745.GB3867@lukather> (raw)
In-Reply-To: <20140116181528.GY8153@joshc.qualcomm.com>
[-- Attachment #1: Type: text/plain, Size: 2258 bytes --]
Hi Josh,
On Thu, Jan 16, 2014 at 12:15:28PM -0600, Josh Cartwright wrote:
> On Thu, Jan 16, 2014 at 06:11:23PM +0100, Maxime Ripard wrote:
> > The module clocks in the A31 are still compatible with the A10 one. Add the SPI
> > module clocks and the PLL6 in the device tree to allow their use by the SPI
> > controllers.
> >
> > Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
> > ---
> > arch/arm/boot/dts/sun6i-a31.dtsi | 48 +++++++++++++++++++++++++++++++---------
> > 1 file changed, 38 insertions(+), 10 deletions(-)
> >
> > diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi
> > index 5256ad9..ae058eb 100644
> > --- a/arch/arm/boot/dts/sun6i-a31.dtsi
> > +++ b/arch/arm/boot/dts/sun6i-a31.dtsi
> > @@ -73,16 +73,12 @@
> > clocks = <&osc24M>;
> > };
> >
> > - /*
> > - * This is a dummy clock, to be used as placeholder on
> > - * other mux clocks when a specific parent clock is not
> > - * yet implemented. It should be dropped when the driver
> > - * is complete.
> > - */
> > - pll6: pll6 {
> > - #clock-cells = <0>;
> > - compatible = "fixed-clock";
> > - clock-frequency = <0>;
> > + pll6: clk@01c20028 {
> > + #clock-cells = <1>;
> > + compatible = "allwinner,sun6i-a31-pll6-clk";
> > + reg = <0x01c20028 0x4>;
> > + clocks = <&osc24M>;
> > + clock-output-names = "pll6";
> > };
> >
> > cpu: cpu@01c20050 {
> > @@ -182,6 +178,38 @@
> > "apb2_uart1", "apb2_uart2", "apb2_uart3",
> > "apb2_uart4", "apb2_uart5";
> > };
> > +
> > + spi0_clk: clk@01c200a0 {
> > + #clock-cells = <0>;
> > + compatible = "allwinner,sun4i-mod0-clk";
> > + reg = <0x01c200a0 0x4>;
> > + clocks = <&osc24M>, <&pll6>;
>
> This looks weird. You've set the pll6 #clock-cells = <1>, but you
> aren't using a specifier here. Same below, as well. The binding
> documentation indicates that #clock-cells should be 0 for the pll6 node.
Ah, right, it's a dumb copy/paste mistake.
I'd expect dtc to output a warning/error in such case, but apparently
it doesn't.
Thanks!
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2014-01-17 12:07 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-16 17:11 [PATCH 0/4] Add Allwinner A31 SPI controller support Maxime Ripard
2014-01-16 17:11 ` Maxime Ripard
2014-01-16 17:11 ` Maxime Ripard
[not found] ` <1389892285-11745-1-git-send-email-maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2014-01-16 17:11 ` [PATCH 1/4] clk: sunxi: Add support for PLL6 on the A31 Maxime Ripard
2014-01-16 17:11 ` Maxime Ripard
2014-01-16 17:11 ` Maxime Ripard
[not found] ` <1389892285-11745-2-git-send-email-maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2014-01-17 22:14 ` Mike Turquette
2014-01-17 22:14 ` Mike Turquette
2014-01-17 22:14 ` Mike Turquette
2014-01-17 22:14 ` Mike Turquette
2014-01-27 15:02 ` Maxime Ripard
2014-01-27 15:02 ` Maxime Ripard
2014-01-27 15:02 ` Maxime Ripard
2014-01-16 17:11 ` [PATCH 2/4] ARM: sun6i: dt: Add PLL6 and SPI module clocks Maxime Ripard
2014-01-16 17:11 ` Maxime Ripard
2014-01-16 17:11 ` Maxime Ripard
[not found] ` <1389892285-11745-3-git-send-email-maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2014-01-16 18:15 ` Josh Cartwright
2014-01-16 18:15 ` Josh Cartwright
2014-01-16 18:15 ` Josh Cartwright
[not found] ` <20140116181528.GY8153-OP5zVEFNDbfdOxZ39nK119BPR1lH4CV8@public.gmane.org>
2014-01-17 12:07 ` Maxime Ripard [this message]
2014-01-17 12:07 ` Maxime Ripard
2014-01-17 12:07 ` Maxime Ripard
2014-01-16 17:11 ` [PATCH 3/4] spi: sunxi: Add Allwinner A31 SPI controller driver Maxime Ripard
2014-01-16 17:11 ` Maxime Ripard
2014-01-16 17:11 ` Maxime Ripard
[not found] ` <1389892285-11745-4-git-send-email-maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2014-01-16 19:40 ` Mark Brown
2014-01-16 19:40 ` Mark Brown
2014-01-16 19:40 ` Mark Brown
[not found] ` <20140116194003.GN17314-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-01-16 21:12 ` Maxime Ripard
2014-01-16 21:12 ` Maxime Ripard
2014-01-16 21:12 ` Maxime Ripard
2014-01-17 19:05 ` Mark Brown
2014-01-17 19:05 ` Mark Brown
2014-01-17 19:05 ` Mark Brown
2014-01-16 17:11 ` [PATCH 4/4] ARM: sun6i: dt: Add SPI controllers to the A31 DTSI Maxime Ripard
2014-01-16 17:11 ` Maxime Ripard
2014-01-16 17:11 ` Maxime Ripard
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=20140117120745.GB3867@lukather \
--to=maxime.ripard-wi1+55scjutkeb57/3fjtnbpr1lh4cv8@public.gmane.org \
--cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=emilio-0Z03zUJReD5OxF6Tv1QG9Q@public.gmane.org \
--cc=joshc-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
--cc=kevin.z.m.zh-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
--cc=mturquette-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=shuge-0TFLnhJekD6UEPyfVivIlAC/G2K4zDHf@public.gmane.org \
--cc=sunny-0TFLnhJekD6UEPyfVivIlAC/G2K4zDHf@public.gmane.org \
--cc=zhuzhenhua-0TFLnhJekD6UEPyfVivIlAC/G2K4zDHf@public.gmane.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 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.