linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* kirkwood, nand, clocks and device-tree
@ 2012-05-18  9:50 Arnaud Patard (Rtp)
  2012-05-20  9:51 ` Andrew Lunn
  0 siblings, 1 reply; 13+ messages in thread
From: Arnaud Patard (Rtp) @ 2012-05-18  9:50 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

I wanted to convert iconnect to use the new nand DT support on kirkwood
but my system was freezing hard during boot. So, I've debugged it a
little bit and have several questions.

The first one is about were is defined the nand. It's defined as a leaf
of the "ocp" bus. I would have expected to see it at the same level but
I've seen nothing proving if it's wrong or right when comparing with
hardware. Can anyone give me some information about that ?

Now, the real questions about my problem. It's hanging because the nand
platform device created throught DT is called f4000000.nand and not
orion_nand. This means that the clock gets disabled by
clk_disable_unused() so first access to the nand fails badly.
To workaround, I've added into mach-kirkwood/common.c:

+       orion_clkdev_add(NULL, "f4000000.nand", runit);


So the clock stays enabled and my system is booting. Would a patch
doing that would be accepted or would it be better to add a "orion_nand"
id so that one can get the clock either with the device or with the id,
avoiding to add extra clocks for each SoC ?

The bonus question is that while debugging this issue, I've disabled
all nand declarations in kirkwood.dtsi and my localy modified
kirkwood-iconnect.dts but I was still getting a hard freeze. I think
that means that the "runit" clock is doing more than NAND and SPI but
I've found no details in the 6281 manual about what's using this
clock. Again, does someone have more details about this (which would
explain why disabling this runit clock will freeze my system) ?

Thanks,
Arnaud

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

end of thread, other threads:[~2012-05-22 12:42 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-18  9:50 kirkwood, nand, clocks and device-tree Arnaud Patard (Rtp)
2012-05-20  9:51 ` Andrew Lunn
2012-05-20 13:05   ` Jamie Lentin
2012-05-20 13:22     ` Andrew Lunn
2012-05-21  1:08       ` Jason Cooper
2012-05-21  5:23         ` Andrew Lunn
2012-05-21 15:57           ` Jason Cooper
2012-05-21 17:35             ` Andrew Lunn
2012-05-21 18:11               ` Jason Cooper
2012-05-22  7:33                 ` Arnd Bergmann
2012-05-22 12:42                   ` Jason Cooper
2012-05-21  1:12     ` Jason Cooper
2012-05-21 21:55       ` [PATCH] ARM: kirkwood: Force nand platform device name Jamie Lentin

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