public inbox for linux-tegra@vger.kernel.org
 help / color / mirror / Atom feed
From: Marc Dietich <marvin24-Mmb7MZpHnFY@public.gmane.org>
To: Olof Johansson <olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org>
Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
	"linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Colin Cross <ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org>
Subject: Re: [PATCH 4/5 V2] ARM: tegra: paz00: add clocks requiredforusboperation
Date: Wed, 10 Aug 2011 13:20:15 +0200	[thread overview]
Message-ID: <201108101320.16433.marvin24@gmx.de> (raw)
In-Reply-To: <CAOesGMjmkchniG5Nd2M3wW8_RXQbSQQzspMVGGvbmF5Naf94SA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

> On Wed, Aug 10, 2011 at 3:50 AM, Marc Dietich <marvin24-Mmb7MZpHnFY@public.gmane.org> wrote:
> >> > Marc Dietrich wrote at Tuesday, August 09, 2011 1:26 PM:
> >> > > On Tuesday 09 August 2011 20:35:45 you wrote:
> >> > > > [...]
> >> > > > Do you need the pll_p_out4 entry? What's that driving? Check in
> >> > > > /sys/kernel/debug/clock/clock_tree (/sys/kernel/debug is debugfs).
> >> > > 
> >> > > I think it is only required to setup the correct (non-standard?)
> >> > > frequency. Seems all other boards use 108 MHz which cause one of the
> >> > > ports to fail. Don't ask me for details ...
> >> > 
> >> > ...
> >> > 
> >> > > root@ac100:~# cat /sys/kernel/debug/clock/clock_tree
> >> > > 
> >> > >    clock                          state  ref div      rate
> >> > > 
> >> > > --------------------------------------------------------------
> >> > > 
> >> > >    clk_m                          on     9            12000000
> >> > 
> >> > ...
> >> > 
> >> > >       pll_p                       on     10  x18      216000000
> >> > 
> >> > ...
> >> > 
> >> > >          pll_p_out4               on     3   9        24000000
> >> > > 
> >> > >             sclk                  on     2            24000000
> >> > > 
> >> > >                avp.sclk           off    0            24000000
> >> > >                cop                on     1            24000000
> >> > >                hclk               on     2   1        24000000
> >> > > 
> >> > >                   pclk            on     2   2        12000000
> >> > > 
> >> > >                      apbdma       on     1   1        12000000
> >> > 
> >> > Hmm. That's pretty odd.
> >> > 
> >> > With the standard kernel the device ships with, what does the clock
> >> > tree under pll_p_out4 look like? It'd be very interesting to compare
> >> > that. If that setup is the same as what this patch sets up, the patch
> >> > seems fine.
> >> 
> >> unfortunately, there is no such think in .32 kernel (the kernel deliverd
> >> with the device), and I don't think I can port it over.
> >> 
> >> > As far as I know all the clocks there are both unrelated to USB, and
> >> > internal to the device, so the board shouldn't have any effect. In
> >> > particular, avp.sclk/cop are for the internal media CPU/DSP, hclk/pclk
> >> > are the internal AHB/APB bus clocks, and apbdma is for an internal DMA
> >> > engine, currently only used for audio in the mainline kernel at least.
> >> 
> >> Does this mean that the internal busses you mentioned are also running
> >> at low speed? Would this be a hugh performance penality?
> > 
> > maybe this is why in the commit mentioned below sclk is bind to
> > pll_c_out1 and set to 108 MHz again.
> > 
> > But I cannot see this change in the current seaboard clock table
> > (optimized away?). Maybe someone with a seaboard could check this.
> 
> We moved some of this to common.c, and should be posting those patches
> in a while. It doesn't make sense to run sclk on pll_m, since that one
> scales with memory clock scaling.

Olof,

ok, I see. In .38 sclk is bound to pll_c_out1 running at 120 MHz. So we need no 
further change, just wait for the patch to arrive.

Thanks!

Marc

  parent reply	other threads:[~2011-08-10 11:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-09 19:26 [PATCH 4/5 V2] ARM: tegra: paz00: add clocks required for usboperation Marc Dietrich
     [not found] ` <201108092126.28521.marvin24-Mmb7MZpHnFY@public.gmane.org>
2011-08-09 21:40   ` Stephen Warren
     [not found]     ` <74CDBE0F657A3D45AFBB94109FB122FF04A06873BB-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-08-10  8:24       ` [PATCH 4/5 V2] ARM: tegra: paz00: add clocks required forusboperation Marc Dietich
     [not found]         ` <201108101024.57494.marvin24-Mmb7MZpHnFY@public.gmane.org>
2011-08-10 10:50           ` [PATCH 4/5 V2] ARM: tegra: paz00: add clocks requiredforusboperation Marc Dietich
     [not found]             ` <201108101250.48324.marvin24-Mmb7MZpHnFY@public.gmane.org>
2011-08-10 10:59               ` Olof Johansson
     [not found]                 ` <CAOesGMjmkchniG5Nd2M3wW8_RXQbSQQzspMVGGvbmF5Naf94SA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-08-10 11:20                   ` Marc Dietich [this message]
2011-08-10 15:24           ` [PATCH 4/5 V2] ARM: tegra: paz00: add clocks required forusboperation Stephen Warren
     [not found]             ` <74CDBE0F657A3D45AFBB94109FB122FF04A0687486-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-08-10 17:26               ` [PATCH 4/5 V2] ARM: tegra: paz00: add clocks requiredforusboperation Marc Dietrich

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=201108101320.16433.marvin24@gmx.de \
    --to=marvin24-mmb7mzphnfy@public.gmane.org \
    --cc=ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org \
    --cc=swarren-DDmLM1+adcrQT0dZR+AlfA@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox