From: tony@atomide.com (Tony Lindgren)
To: linux-arm-kernel@lists.infradead.org
Subject: GPMC clock question
Date: Thu, 18 Dec 2014 13:06:53 -0800 [thread overview]
Message-ID: <20141218210653.GI23854@atomide.com> (raw)
In-Reply-To: <54933CC1.9010301@vanguardiasur.com.ar>
* Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> [141218 12:49]:
> Tony, Roger:
>
> As far as I can see, the GPMC interface clock (GPMC_FCLK) is not
> properly modeled in the devicetree. Instead, hwmod magic seems to be used.
I guess you mean the functional clock not interface clock?
> arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c:
> struct omap_hwmod_ocp_if am33xx_l3_s__gpmc = {
> .master = &am33xx_l3_s_hwmod,
> .slave = &am33xx_gpmc_hwmod,
> .clk = "l3s_gclk",
> .addr = am33xx_gpmc_addr_space,
> .user = OCP_USER_MPU,
> };
>
> I'd like to know what would be the appropriate DT model for this clock.
> Perhaps, as child of CORE_M4_CLK, divided by 2:
>
> gpmc_fclk: gpmc_fclk {
> #clock-cells = <0>;
> compatible = "fixed-factor-clock";
> clocks = <&dpll_core_m4_ck>;
> clock-mult = <1>;
> clock-div = <2>;
> };
>
> How does it look? Also, I'm wondering if this works OK when used with
> the hwmod stuff.
Hmm we do have clocks or aliases for l3s_gclk, so it's there as otherwise
the GPMC would not work at all :) Sure with device tree only systems we
should have the clock phandle directly available though.
Note that the hwmod code takes care of runtime PM clock gating for the
drivers. But the clock entry for am33xx_l3_s__gpmc should be coming
from .dts. Please also check out the hwmod dts related changes Felipe
posted last week, that might allow populating .clk from .dts already.
Regards,
Tony
next prev parent reply other threads:[~2014-12-18 21:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-18 20:44 GPMC clock question Ezequiel Garcia
2014-12-18 21:06 ` Tony Lindgren [this message]
2014-12-18 23:26 ` Ezequiel Garcia
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=20141218210653.GI23854@atomide.com \
--to=tony@atomide.com \
--cc=linux-arm-kernel@lists.infradead.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).