Subject: Wrong SPI NOR model detected by mx6sl

From: [email-masked] (Marek Vasut)
Date: Thu, 10 Apr 2014 18:07:48 +0200

On Thursday, April 10, 2014 at 05:49:18 PM, Fabio Estevam wrote:
> Hi,
> 
> On the imx6sl-evk there is a m25p32 spi nor flash, but in the kernel
> probe we get:
> 
> m25p80 spi0.0: found mr25h256, expected m25p32
> m25p80 spi0.0: mr25h256 (32 Kbytes)
> 
> On the mx6qsabresd there is also a m25p32, which is correctly detected:
> m25p80 spi0.0: m25p32 (4096 Kbytes)
> 
> Any ideas as to why mx6sl detects the wrong spi nor model?

Can you share the JEDEC ID codes that both of the boards actually read from the 
SPI NOR ? You can dump those in the m25p80.c driver . That'd be helpful, I 
suspect some kind of an "offset" or "polarity inversion" in the SPI 
communication causing this.

Best regards,
Marek Vasut