Thread (13 messages) 13 messages, 3 authors, 2018-03-01

Re: [PATCH 0/3] clk: ti: add CLK_SET_RATE_PARENT support for clkctrl

From: Tero Kristo <hidden>
Date: 2018-02-28 05:37:56

On 27/02/18 18:48, Tony Lindgren wrote:
* Tony Lindgren [off-list ref] [180227 16:43]:
quoted
* Tero Kristo [off-list ref] [180227 06:35]:
quoted
On 27/02/18 00:05, Tony Lindgren wrote:
quoted
Hmm so should we have all the timers use bit 0 in the dtsi?
Or default to bit 24 for all of them?
Who is going to control the clkctrl clock for the timers if you just control
the opt clock? Also, ain't the bit 24 the clksel mux setting? Tweaking that
would seem wrong...
Yeah OK.
$ git grep TIMER arch/arm/boot/dts/* | grep CLKCTRL

And that shows timer1 using bit 24 for omap4, omap5 and dra7
dtsi files.

So shouldn't that then be just bit 0 instead of bit 24 for
those? And then we let omap_dm_timer_init_one() reparent it?
Actually, that fck setting is because of this patch:

138f7ca78f5a0677f591fdf23d0309c2f4774bf7
ARM: OMAP2+: timer: add support for fetching fck handle from DT

So, you need to provide the clock handle at bit offset 24.

The main clkctrl clock is still handled via hwmod core, or via the 
interconnect driver.

-Tero
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help