Linux clock framework development
 help / color / mirror / Atom feed
From: Jon Hunter <jonathanh@nvidia.com>
To: Peter De Schrijver <pdeschrijver@nvidia.com>,
	<linux-tegra@vger.kernel.org>, <linux-clk@vger.kernel.org>,
	<thierry.reding@gmail.com>
Subject: Re: [PATCH v2 2/2] clk: tegra: Correct clk_out_mux parents
Date: Thu, 19 Jul 2018 16:06:50 +0100	[thread overview]
Message-ID: <b34c2624-7a55-331e-4462-bb3265f411b5@nvidia.com> (raw)
In-Reply-To: <1532010175-28364-3-git-send-email-pdeschrijver@nvidia.com>


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. 

Cheers
Jon

-- 
nvpublic

  reply	other threads:[~2018-07-19 15:50 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 [this message]
2018-07-25 22:44     ` Stephen Boyd
2018-07-26  8:19       ` Peter De Schrijver
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=b34c2624-7a55-331e-4462-bb3265f411b5@nvidia.com \
    --to=jonathanh@nvidia.com \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=pdeschrijver@nvidia.com \
    --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