linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: Mike Turquette <mturquette@linaro.org>
Cc: Archit Taneja <archit@ti.com>,
	Linux OMAP Mailing List <linux-omap@vger.kernel.org>,
	linux-fbdev@vger.kernel.org
Subject: Re: [PATCH 02/11] omapdss: HDMI: create a HDMI PLL library
Date: Wed, 18 Sep 2013 07:00:08 +0000	[thread overview]
Message-ID: <52394F78.5010603@ti.com> (raw)
In-Reply-To: <CAPtuhTh-6JJnpqp=0FCQqkPS2yBUmj7-zniY4vRQR9xq+t8htg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1797 bytes --]

On 17/09/13 22:40, Mike Turquette wrote:

> I hope that the existing CLK_SET_RATE_PARENT flag could help you get
> the frequency you need; it causes a call to clk_set_rate(leaf_clk,
> target_rate) to walk up the chain of parents and configure rates as
> needed.

Hmm, I'm not quite sure what that does, but it doesn't sound like it
would help. The only way I know to find good clocks is to iterate over
the dividers for each clock on the path.

And to complicate things, clocks from the "middle" of the path are used
for some purposes, so it's not only the final clock that we're
interested in.

For example, DSI: DSI PLL produces a high freq clock that goes to DSI
PHY. That one is used for the DSI bus clock. The high freq clock from
DSI PLL also goes to two dividers, of which one goes to DSI IP, and the
second goes to DISPC. DISPC clock is then divided with two dividers in
row, and the resulting clock goes also to DSI IP.

All those different clocks have restrictions and dependencies to each
other, like this one needs to be higher than that one, or ClkA = N *
ClkB, etc.

> However I have been looking at standardizing a way to define clock
> rate tables, possibly in DT. In many cases it is a board-specific
> issue (e.g. different oscillators or other reference clocks that feed
> into the SoC) and specifying rate tables in DT is one way to store
> known-good configurations for complex clock subtrees.

Well, for some boards, which only have an LCD, we could probably get the
clock from a table. But if the display used (say, external monitor)
supports multiple resolutions, such a table is not feasible. We could
have some clocks there in the table, but we'd still need a dynamic way
to figure out the dividers for other clock rates.

 Tomi



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]

  reply	other threads:[~2013-09-18  7:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-17  7:18 [PATCH 00/11] omapdss: HDMI: Refactor driver for easier addition of OMAP5/DRA7 hdmi IP Archit Taneja
2013-09-17  7:18 ` [PATCH 01/11] omapdss: HDMI: create a hdmi wrapper library Archit Taneja
2013-09-17  7:18 ` [PATCH 02/11] omapdss: HDMI: create a HDMI PLL library Archit Taneja
2013-09-17  9:38   ` Mike Turquette
2013-09-17 10:02     ` Tomi Valkeinen
2013-09-17 19:40       ` Mike Turquette
2013-09-18  7:00         ` Tomi Valkeinen [this message]
2013-09-17  7:18 ` [PATCH 03/11] omapdss: HDMI: create a PHY library Archit Taneja
2013-09-17  7:18 ` [PATCH 04/11] omapdss: HDMI: Use OMAP4 HDMI core functions directly and remove hdmi_ip_ops Archit Taneja
2013-09-17  7:18 ` [PATCH 05/11] omapdss: HDMI: remove hdmi_ip_data struct Archit Taneja
2013-09-17  7:18 ` [PATCH 06/11] omapdss: HDMI: Clean up the header files Archit Taneja
2013-09-17  7:18 ` [PATCH 07/11] omapdss: HDMI: add HDMI wrapper IRQ flags Archit Taneja
2013-09-17  7:18 ` [PATCH 09/11] omapdss: OMAP4: HDMI: remove unnecessary edid macros Archit Taneja
2013-09-17  7:18 ` [PATCH 10/11] omapdss: HDMI: move common functions to a separate file Archit Taneja
2013-09-17  7:18 ` [PATCH 11/11] [experimental] arm: omap: omap4 hwmod data: Split hdmi address space Archit Taneja

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=52394F78.5010603@ti.com \
    --to=tomi.valkeinen@ti.com \
    --cc=archit@ti.com \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=mturquette@linaro.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;
as well as URLs for NNTP newsgroup(s).