ARM: Initial DTS support for Kirkwood GoFlex Net
RFC PATCH 1/1 ARM: Initial DTS support for Kirkwood GoFlex Net
Hi Josh
I think i know why your machine locks up.
Your board file defines goflexnet_partitions but then never uses it. So you have no SPI nor NAND device in operation. Without one of these two, there is nothing using the RUNIT clock, so it gets turned off. There appears to be something else in the RUNIT, so turning the clock off causes the next access to what ever that is, to lock the machine.
Try applying this patch:
http://www.spinics.net/lists/arm-kernel/msg178389.html
Andrew
RFC PATCH 1/1 ARM: Initial DTS support for Kirkwood GoFlex Net
Quoted 11 lines · Andrew Lunn
Hi Josh
I think i know why your machine locks up.
Your board file defines
goflexnet_partitionsbut then never uses it. So you have no SPI nor NAND device in operation. Without one of these two, there is nothing using the RUNIT clock, so it gets turned off. There appears to be something else in the RUNIT, so turning the clock off causes the next access to what ever that is, to lock the machine.
Quoted 5 lines
Try applying this patch:
http://www.spinics.net/lists/arm-kernel/msg178389.html
? ? ? ?Andrew
You nailed it, I'm up and running in 3.5rc3 as we speak. I'll make the cleanups suggested for the initial version of my DTS patch, test in conjunction with yours and the printk patch and then submit. I'll then work on getting the NAND supported.
Josh Coombs
RFC PATCH 1/1 ARM: Initial DTS support for Kirkwood GoFlex Net
Some more test results:
Without the clock patch:
- No NAND definitions anywhere - doesn't complete a boot
- NAND defined and initialized in board-goflexnet.c - complete boot with NAND accessible
- NAND defined via DT - doesn't complete a boot, stops at same point as with no NAND definitions
With the clock patch, all combos work as you'd expect.
To move forward, do I assume the clock patch is going to be pulled into mainline and submit my patch as depending on it, with NAND defined in the DT, or for now submit with it defined and initialized via the board file until the DT issue can be resolved?
Josh Coombs