Re: [PATCH v5 0/4] common clk framework
From: Turquette, Mike
Date: Fri Mar 09 2012 - 13:35:38 EST
On Thu, Mar 8, 2012 at 6:34 PM, Richard Zhao <richard.zhao@xxxxxxxxxxxxx> wrote:
> Hello Mike,
>
> The main interface for clk implementer is to register clocks dynamically.
> I think it highly depends on clk DT bindings. From the patch Grant sent
> out, it looks like he doesn't like one node per clk. So how do we
> register clocks dynamically? You have any sample code?
I can only speak for my own platform, but after talks with Paul W. and
Benoit C. I believe that OMAP will not push ALL of it's on-SoC clocks
into DT. DT is meant to solve board-level integration problems and
the majority of OMAP clocks are SoC-level, not board level. Some
clocks will migrate out to DT such as the primary oscillator (which
varies per board) as well as some leaf clocks and modules clocks that
depend on board-specific peripherals.
Otherwise the answer to your question is 'no'. I don't have any
sample code for DT bindings. It should not be hard to map some sample
clock bindings onto the existing registration functions... but it will
still be one clock per node. I'm not really a fan of making clock
black-boxes where the details of the tree are hidden from the
framework anyways... that's something that clkdev already achieves to
some degree (by not exposing the entire tree to drivers, but only the
clocks that we want exposed).
Regards,
Mike
>
> Thanks
> Richard
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/