linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Cousson, Benoit" <b-cousson@ti.com>
To: Paul Walmsley <paul@pwsan.com>
Cc: "Hilman, Kevin" <khilman@ti.com>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH 4/7] OMAP2+: powerdomain: add voltage domain lookup during register
Date: Wed, 23 Mar 2011 00:04:40 +0100	[thread overview]
Message-ID: <4D892B08.7000805@ti.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1103221502180.11798@utopia.booyaka.com>

I knew you will answer that one :-)

On 3/22/2011 11:08 PM, Paul Walmsley wrote:
> Hi Benoît,
>
> On Tue, 22 Mar 2011, Cousson, Benoit wrote:
>
>> On the other hand not every clock belong to a clockdomain, that's why we
>> have clock without clockdomain on OMAP. A clockdomain is a just group of
>> IPs that share the same interface clock.
>
> PRCM clockdomains also include functional clocks.  See for example the
> OMAP4 Public TRM Rev. O Section 3.1.1.1.3 "Clock Domain" ('The clockdomain
> of CM_B is composed of two clocks: a functional clock (FCLK2) and an
> interface clock (ICLK1)', and also later, 'The PRCM module lets software
> check the status of the clock domain functional clocks').

True, but that does not change the definition of the clock domain (same 
paragraph):
"A clock domain is a group of modules fed by clock signals controlled by 
the same clock manager in the PRCM module (see Figure 3-2)."

My point was that a clock domain is related to modules that share some 
clocks.
So yes, a clock domain will contains modules and their related iclk and 
fclk. But that does not means that every clocks will belong to a 
clockdomain.
All the non leaf clocks will not have any clock domain since they will 
not be attached to any module directly.

> Both the TRM and the OMAP4 functional specification clearly link PRCM
> clockdomain idle management to the state of the clockdomain's functional
> clocks.  See for example OMAP4 Public TRM Rev. O Table 3-11 "Clock Domain
> Clock States" ('INACTIVE: ... Every optional functional clock in the clock
> domain is gated.')

That just means that each clock that supplies a module must be idled in 
order to allow the clock domain to transition.
The clock domain FSM is using both iclk and fclk state to trigger the 
domain transition, but that same clock could be used in another clock 
domain too.

> Beyond the PRCM, the Linux-OMAP clockdomain code is not only concerned
> with PRCM-controllable clockdomains.  It is intended to be a generically
> useful way to connect clocks to the powerdomain and voltagedomain that the
> clock exists in, even if there are no explicit PRCM registers associated
> with the clockdomain.  These "powerdomains" and "voltagedomains" also may
> not be directly PRCM controllable.

In that case, you cannot call that clockdomain anymore since this is not 
the proper definition used by the PRCM. If you do not have a module, you 
cannot have a clockdomain.

OMAP4 partitioning is following this hierarchy: module < clockdomain < 
powerdomain < voltagedomain < device.
The clocks are not part of the hierarchy and for a good reason, the can 
be shared across the whole device.

> Every clock that is in the Linux-OMAP clock tree should have a clockdomain
> associated with it.

Mmm... What domain will you use for sys_clk or 32k_clk? or for any DPLL 
or HS divider?
And what for?

I know that the clockdomain name is confusing, but why do you want to 
change its definition?

Benoit

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2011-03-22 23:04 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-19  0:18 [PATCH 0/7] OMAP2+: voltage layer cleanup and restructure Kevin Hilman
2011-03-19  0:18 ` [PATCH 1/7] OMAP2+: hwmod: remove unused voltagedomain pointer Kevin Hilman
2011-03-21 13:08   ` Cousson, Benoit
2011-03-21 15:32     ` Kevin Hilman
2011-03-24 13:03       ` Gulati, Shweta
2011-03-24 14:00         ` Kevin Hilman
2011-03-24 15:14           ` Cousson, Benoit
2011-03-25  5:00             ` Gulati, Shweta
2011-03-22 19:13   ` Paul Walmsley
2011-03-19  0:18 ` [PATCH 2/7] OMAP2+: voltage: move PRCM mod offets into VDD structure Kevin Hilman
2011-03-19  4:41   ` Santosh Shilimkar
2011-03-21 15:21     ` Kevin Hilman
2011-03-21 10:53   ` Premi, Sanjeev
2011-03-21 15:26     ` Kevin Hilman
2011-03-23 14:16     ` Kevin Hilman
2011-03-19  0:18 ` [PATCH 3/7] OMAP2+: voltage: start towards a new voltagedomain layer Kevin Hilman
2011-03-19  0:18 ` [PATCH 4/7] OMAP2+: powerdomain: add voltage domain lookup during register Kevin Hilman
2011-03-22 19:23   ` Paul Walmsley
2011-03-22 20:59     ` Cousson, Benoit
2011-03-22 22:08       ` Paul Walmsley
2011-03-22 23:04         ` Cousson, Benoit [this message]
2011-04-02  1:17           ` Paul Walmsley
2011-03-23  0:17     ` Kevin Hilman
2011-03-19  0:18 ` [PATCH 5/7] OMAP2+: voltage: keep track of powerdomains in each voltagedomain Kevin Hilman
2011-03-22 19:35   ` Paul Walmsley
2011-03-23  0:18     ` Kevin Hilman
2011-03-19  0:18 ` [PATCH 6/7] OMAP2+: voltage: move prm_irqst_reg from VP into voltage domain Kevin Hilman
2011-03-19  0:18 ` [PATCH 7/7] OMAP3: powerdomain data: add voltage domains Kevin Hilman
2011-03-22 19:30   ` Paul Walmsley
2011-03-22 21:09     ` Cousson, Benoit
2011-03-22 22:15       ` Paul Walmsley
2011-03-23  0:20         ` Kevin Hilman
2011-03-23  0:31 ` [PATCH 0/7] OMAP2+: voltage layer cleanup and restructure Kevin Hilman

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=4D892B08.7000805@ti.com \
    --to=b-cousson@ti.com \
    --cc=khilman@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=paul@pwsan.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;
as well as URLs for NNTP newsgroup(s).