All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
To: Jon Mayo <jmayo-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Cc: Thierry Reding
	<thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>,
	Peter De Schrijver
	<pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
	"linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Prashant Gaikwad
	<pgaikwad-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
	Joseph Lo <josephl-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Subject: Re: Tegra DRM with HDMI support (\o/)
Date: Thu, 18 Oct 2012 16:14:11 -0600	[thread overview]
Message-ID: <50807F33.1050805@wwwdotorg.org> (raw)
In-Reply-To: <D6C615D3E4730340AE82D5BD856631C0A1DA306B39-QfAaPSPn5qZDw2glCA4ptUEOCMrvLtNR@public.gmane.org>

On 10/17/2012 02:08 PM, Jon Mayo wrote:
> Stephen Warren wrote at Wednesday, October 17, 2012 12:42 PM:
>> On 10/17/2012 01:12 PM, Thierry Reding wrote:
>>> On Wed, Oct 17, 2012 at 11:04:05AM -0700, Jon Mayo wrote:
...
>>>> On T30, HDMI will work with pll_d, but I'm tipping my hand and
>>>> telling you that if you always use pll_d2 you won't have to mess
>>>> with this code in the next few chips. :)
>>>
>>> If we make this configurable in the device tree, we could provide
>>> both the "hdmi" and "base-clock" clocks, where base-clock defaults
>>> to pll_d or pll_d2 depending on the Tegra generation. If some board
>>> requires a more exotic setup it can override the clocks in the
>>> board DTS.
>>
>> I think if the parenting is going to be static, lets not have tegradrm
>> do it, but rather encode it into one of
>> arch/arm/mach-tegra/{common,board-dt-tegra[23]0}.c. Eventually, we
>> wish to replace the clock setup tables in those files with tables in
>> device tree, so they can differ easily per-board, which would also
>> handle the DSI situation well.
> 
> Well it's not entirely static. The clock parent should depend on the
> output type. rather than on which display controller you are using.
> Each DC can be configured for various output types. The output types
> can be represented in device-tree if you wish to have them fixed (I'd
> interpret it as a default rather than a fixed setting).

(Jon, the lack of line-wrapping makes your email a little hard to read)

Yes, that makes sense. We should leave the clock definitions up to the
OR driver rather than statically set them up based on the DC then.

Once clocks come from DT, that probably requires each OR to define two
clocks; the peripheral clock and the parent PLL, e.g.:

clocks = <&car CLK_HDMI> <&car CLK_PLL_D>;
clock-names = "output", "parent";

... and then do a clk_set_parent() when being activated.

  parent reply	other threads:[~2012-10-18 22:14 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-11 20:07 Tegra DRM with HDMI support (\o/) Thierry Reding
     [not found] ` <20121011200705.GB27599-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2012-10-11 23:36   ` Stephen Warren
     [not found]     ` <50775803.1010209-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-10-12  1:16       ` Mark Zhang
2012-10-12  5:09       ` Thierry Reding
     [not found]         ` <20121012050957.GA29881-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2012-10-12 21:17           ` Stephen Warren
     [not found]             ` <507888D0.1090103-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-10-13 20:42               ` Thierry Reding
     [not found]                 ` <20121013204223.GA24354-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2012-10-15 16:11                   ` Stephen Warren
     [not found]                     ` <507C35C6.20705-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-10-17  6:46                       ` Thierry Reding
2012-10-16  8:28               ` Peter De Schrijver
     [not found]                 ` <20121016082827.GI3196-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org>
2012-10-17  6:55                   ` Thierry Reding
     [not found]                     ` <20121017065547.GE21783-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2012-10-17 15:20                       ` Stephen Warren
     [not found]                         ` <507ECCCD.7000600-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-10-17 18:04                           ` Jon Mayo
     [not found]                             ` <D6C615D3E4730340AE82D5BD856631C0A1DA306B31-QfAaPSPn5qZDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2012-10-17 19:12                               ` Thierry Reding
     [not found]                                 ` <20121017191240.GA22570-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2012-10-17 19:41                                   ` Stephen Warren
     [not found]                                     ` <507F0A03.2050008-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-10-17 20:08                                       ` Jon Mayo
     [not found]                                         ` <D6C615D3E4730340AE82D5BD856631C0A1DA306B39-QfAaPSPn5qZDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2012-10-18  6:29                                           ` Thierry Reding
     [not found]                                             ` <20121018062918.GC24637-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2012-10-18 21:37                                               ` Jon Mayo
2012-10-18 22:05                                               ` Stephen Warren
2012-10-18 22:14                                           ` Stephen Warren [this message]
2012-10-12  1:20   ` Mark Zhang
2012-10-16  8:18   ` Mark Zhang
2012-10-16 16:03     ` Stephen Warren
     [not found]       ` <507D856C.1070708-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-10-17  1:32         ` Mark Zhang
     [not found]           ` <507E0AC1.8020001-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-10-17 20:38             ` Stephen Warren
     [not found]               ` <507F175A.3000406-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-10-18  5:55                 ` Thierry Reding
     [not found]                   ` <20121018055518.GB24637-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2012-10-18  8:43                     ` Mark Zhang
2012-10-18  7:00                 ` Mark Zhang
2012-10-17  5:42         ` Thierry Reding
     [not found]           ` <20121017054224.GA21783-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2012-10-18  6:04             ` Mark Zhang
     [not found]               ` <507F9BF5.20002-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-10-18  6:34                 ` Thierry Reding
     [not found]                   ` <20121018063453.GD24637-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2012-10-18  7:05                     ` Mark Zhang

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=50807F33.1050805@wwwdotorg.org \
    --to=swarren-3lzwwm7+weoh9zmkesr00q@public.gmane.org \
    --cc=jmayo-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
    --cc=josephl-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
    --cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
    --cc=pgaikwad-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
    --cc=thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@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 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.