Hi Fabio,
Thanks for your reply. Haven't been able to answer from the same account as the one I used to create the issue due to some problems.
Now to the issue at hand. I've seen that the "old" driver is in the the kernel but without DT support. Haven't tried it though. And yes we have USB working with kernel 2.6.31.
Looking at that patch makes me wonder if I've missed something or if the person writing it has even read the reference manual. The bits for disabling over current detection are not the same on mx51. As far as I can see it's only possible to disable it on the OTG port. The other ports only have "Power Mask" which disables both Vbus power and over current detection.
As I said earlier I've got it working once with Linux 3.11 and DT. So I don't think it would be too much work needed to actually have proper DT USB support for mx51. But I don't really know what needs to be done. Do you have any clues or hints? Or do you know someone that might know?
Again, thanks for your help so far!
Regards,
Erik Ahlén