Linux clock framework development
 help / color / mirror / Atom feed
From: Peter De Schrijver <pdeschrijver@nvidia.com>
To: Stephen Boyd <sboyd@kernel.org>
Cc: Jon Hunter <jonathanh@nvidia.com>, <linux-clk@vger.kernel.org>,
	<linux-tegra@vger.kernel.org>, <thierry.reding@gmail.com>
Subject: Re: [PATCH v2 2/2] clk: tegra: Correct clk_out_mux parents
Date: Thu, 26 Jul 2018 11:19:20 +0300	[thread overview]
Message-ID: <20180726081920.GQ1636@tbergstrom-lnx.Nvidia.com> (raw)
In-Reply-To: <153255869581.48062.10244129990637940083@swboyd.mtv.corp.google.com>

On Wed, Jul 25, 2018 at 03:44:55PM -0700, Stephen Boyd wrote:
> Quoting Jon Hunter (2018-07-19 08:06:50)
> > 
> > On 19/07/18 15:22, Peter De Schrijver wrote:
> > > The first 3 possible parents of clk_out_[1-3] are defined as clk_m, clk_m/2
> > > and clk_m/4. However They are actually osc, osc/2 and osc/4. In chips prior
> > > to Tegra210 clk_m and osc had the same frequency, so this difference didn't
> > > matter. Since Tegra210 however, clk_m is a divided version of osc. This
> > > results in CCF reporting the rate as only half the actual rate on Tegra210.
> > > To fix this, we add new clocks which have osc, osc/2, osc/4 and the
> > > respective extern clock as their possible parents and use them for
> > > Tegra210. Also 2 new DT clock defines are added to reflect the new
> > > names of clk_m/2 and clk_m/4. The old defines are still kept for backwards
> > > compatibility.
> > > 
> > > Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
> > I gave this a whirl on the Tegra210 Smaug which uses the PMC CLK_OUT1 to
> > clock the audio codec, but unfortunately this did not work. The good news
> > is that I know why. Basically, for Tegra210 there is a slight change in the
> > behaviour of the CLKx_ACCEPT_REQ bit. Essentially, this bit must always be
> > set if you want to use any of the osc clocks to drive the CLK_OUTx. Setting
> > this bit does not effect the CLK_OUTx if you are using the CAR to drive the
> > pin. The simplest thing to do for Tegra210 is to always set the
> > CLKx_ACCEPT_REQ. 
> > 
> 
> So resend with that bit also set?
> 

We haven't figured out who should set this bit as it has some other
side-effects like overriding the pinmux settings. Also not all CLK_OUT
clocks appear to behave the same way.

Peter.

  reply	other threads:[~2018-07-26  9:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-19 14:22 [PATCH v2 0/2] Correct clk_out_mux parents Peter De Schrijver
2018-07-19 14:22 ` [PATCH v2 1/2] clk: tegra: Fix const for clk_out parents Peter De Schrijver
2018-07-25 22:44   ` Stephen Boyd
2018-07-26  8:19     ` Peter De Schrijver
2018-07-26  8:26       ` Jon Hunter
2018-07-19 14:22 ` [PATCH v2 2/2] clk: tegra: Correct clk_out_mux parents Peter De Schrijver
2018-07-19 15:06   ` Jon Hunter
2018-07-25 22:44     ` Stephen Boyd
2018-07-26  8:19       ` Peter De Schrijver [this message]
2018-07-26 16:07         ` Stephen Boyd

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=20180726081920.GQ1636@tbergstrom-lnx.Nvidia.com \
    --to=pdeschrijver@nvidia.com \
    --cc=jonathanh@nvidia.com \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=sboyd@kernel.org \
    --cc=thierry.reding@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox