linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* at91 clocks
@ 2015-03-24 14:32 Jonas Andersson
  2015-03-25  0:32 ` Boris Brezillon
  0 siblings, 1 reply; 16+ messages in thread
From: Jonas Andersson @ 2015-03-24 14:32 UTC (permalink / raw)
  To: linux-arm-kernel

Hi all,

I am working on a system with at91sam9260 soc. Trying to move from 
kernel 3.17.4 to 3.19.2. I have problem with pck1 clock.

In my old code i use clk_get() to get pck1 and pllb, set pllb as parent 
for pck1, set rate for pck1, enable pck1. Extract from 
/sys/kernel/debug/at91_clk:
pllb       users= 1 on   96000000 Hz main
pck1       users= 1 on   12000000 Hz pllb

In my new code i have defined the two clocks in DT:
         clocks = <&prog1>, <&pllb>;
         clock-names = "codec", "parent";
Extract from  /sys/kernel/debug/clk/clk_summary:
        mainck                             2            2 
18432000          0 0
           prog1                           1            1 
9216000          0 0
              pck1                         0            0 
9216000          0 0
           pllbck                          0            0 0          0 0
              usbck                        0            0 0          0 0
                 udpck                     0            0 0          0 0
                 uhpck                     0            0 0          0 0

I know i probably have to enable pck1 also.
But my main problem is that I got the wrong frequency and parent of prog1.
Why?

Thanks
  Jonas

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-03-30 11:24 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-24 14:32 at91 clocks Jonas Andersson
2015-03-25  0:32 ` Boris Brezillon
2015-03-25  9:06   ` Jonas Andersson
2015-03-25 16:37     ` Boris Brezillon
2015-03-25 18:18       ` Nicolas Ferre
2015-03-27  9:28         ` Jonas Andersson
2015-03-27  9:48           ` Nicolas Ferre
2015-03-26 10:02       ` Jonas Andersson
     [not found]       ` <5513D701.2080201@microbit.se>
2015-03-26 15:28         ` Boris Brezillon
2015-03-27 10:21           ` Jonas Andersson
2015-03-27 12:20             ` Boris Brezillon
2015-03-27 12:25               ` Boris Brezillon
2015-03-27 12:51                 ` Jonas Andersson
2015-03-27 13:54                   ` Boris Brezillon
2015-03-27 14:42                     ` Jonas Andersson
2015-03-30 11:24                       ` Jonas Andersson

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).