From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] ARM: shmobile: r8a7779 CCF DTS update
Date: Fri, 12 Dec 2014 19:32:10 +0000 [thread overview]
Message-ID: <1856870.T34OBLmrvO@avalon> (raw)
In-Reply-To: <20141203115145.5889.72521.sendpatchset@w520>
Hi Magnus,
On Thursday 04 December 2014 13:37:10 Magnus Damm wrote:
> On Wed, Dec 3, 2014 at 9:56 PM, Geert Uytterhoeven wrote:
> > On Wed, Dec 3, 2014 at 1:52 PM, Magnus Damm <magnus.damm@gmail.com> wrote:
> >> On Wed, Dec 3, 2014 at 9:25 PM, Geert Uytterhoeven wrote:
> >>> On Wed, Dec 3, 2014 at 12:51 PM, Magnus Damm wrote:
> >>>> Update the r8a7779 CCF DTS with the following fixes:
> >>>> - Use MSTP0 for SCIF clock control
> >>>> - Use R8A7779_CLK_P as parent clock for SCIF (same as legacy code)
> >>>> - Use "clock-indicies" instead of "renesas,clock-indices"
> >>>
> >>> We already have
> >>> "[PATCH v2 3/6] ARM: shmobile: r8a7779 dtsi: Change to using
> >>> clock-indices"
> >>> (http://www.spinics.net/lists/linux-sh/msg37285.html) for the latter.
> >>
> >> Yes, I noticed that too late I'm afraid. =)
> >>
> >> Are you aware of any outstanding issue for that series?
> >
> > Not that I'm aware of. As Mike merged the bindings update, I had pinged
> > Simon about the rest of the series, just before you sent your patch.
>
> Thanks, sounds like I should make a V2 of this patch once Simon has
> merged patch 3/6 above.
>
> >>>> Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
> >>>> ---
> >>>>
> >>>> Written on top of renesas-devel-20141202-v3.18-rc7
> >>>>
> >>>> arch/arm/boot/dts/r8a7779.dtsi | 30 +++++++++++++++---------------
> >>>> 1 file changed, 15 insertions(+), 15 deletions(-)
> >>>>
> >>>> --- 0001/arch/arm/boot/dts/r8a7779.dtsi
> >>>> +++ work/arch/arm/boot/dts/r8a7779.dtsi 2014-12-03 20:22:26.000000000
> >>>> +0900
> >>>> @@ -200,7 +200,7 @@
> >>>> compatible = "renesas,scif-r8a7779", "renesas,scif";
> >>>> reg = <0xffe40000 0x100>;
> >>>> interrupts = <0 88 IRQ_TYPE_LEVEL_HIGH>;
> >>>> - clocks = <&cpg_clocks R8A7779_CLK_P>;
> >>>> + clocks = <&mstp0_clks R8A7779_CLK_SCIF0>;
> >>>> clock-names = "sci_ick";
> >>>> status = "disabled";
> >>>> };
> >>>
> >>> According to the datasheet, the SCIF can use both S1 and "SCIF_CLK" (I
> >>> assume that's the MSTP clock output for SCIF?) as clock input,
> >>> selectable using the XIN bit of the Clock Select Register (CKS).
> >>> Do you have more information?
> >>
> >> I suspect that you may look at the left side of the r8a7779 SCIF
> >> overview page near the BRG where there is a "clks1" and the external
> >> SCIF_CLK. I'm looking at the right side and the "baud rate generator"
> >> where clkp is hooked up.
> >
> > Oh right, that "clkp" is really "clkp through MSTP bit X"?
>
> Yes, this is how we historically have hooked up the SCIF clocks. It is
> however not entirely clear from the documentation how the MSTP bit is
> connected, so the assumption may be wrong. And the SCIF driver has
> support for interface clocks as well.
I've studied this extensively over the SH and ARM SoCs and my conclusion was
that the SCIF has a functional clock and several optional baud rate clocks,
but no interface clock. References to the interface clock in the driver and DT
bindings are leftovers of historical mistakes.
> The "clkp through MSTP bit X" implementation seems better than the current
> code at least.
>
> >> The SCIF driver today has relatively limited support for the BRG
> >> (which confusingly enough is a second baud rate generator, how many do
> >> one need?). With the "regular" baud rate generator and the BRG unit
> >> some of the SCIF variants can be configured to use many different
> >> clocks.
> >>
> >> We currently lack code for the following:
> >> A) Describe all the clocks hooked up to the SCIF
> >> B) Select the best clock for any given baud rate
> >>
> >> So with this patch we simply ignore the BRG.
> >
> > OK. Fair enough.
> >
> > Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
--
Regards,
Laurent Pinchart
prev parent reply other threads:[~2014-12-12 19:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-03 11:51 [PATCH] ARM: shmobile: r8a7779 CCF DTS update Magnus Damm
2014-12-03 12:25 ` Geert Uytterhoeven
2014-12-03 12:52 ` Magnus Damm
2014-12-03 12:56 ` Geert Uytterhoeven
2014-12-04 4:37 ` Magnus Damm
2014-12-04 7:15 ` Simon Horman
2014-12-04 8:57 ` Magnus Damm
2014-12-04 11:45 ` Simon Horman
2014-12-12 19:32 ` Laurent Pinchart [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=1856870.T34OBLmrvO@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=linux-sh@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 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.