From mboxrd@z Thu Jan 1 00:00:00 1970 From: shijie8@gmail.com (Huang Shijie) Date: Fri, 11 Apr 2014 08:26:37 +0800 Subject: Wrong SPI NOR model detected by mx6sl In-Reply-To: References: <201404101807.48238.marex@denx.de> Message-ID: <20140411002635.GB3837@localhost.localdomain> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, Apr 10, 2014 at 02:16:49PM -0300, Fabio Estevam wrote: > Hi Marek, > > On Thu, Apr 10, 2014 at 1:07 PM, Marek Vasut wrote: > > > 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. > > On mx6qsabresd: > > m25p80 spi0.0: JEDEC id: 0x202016 > m25p80 spi0.0: m25p32 (4096 Kbytes) > > On mx6sl-evk: > > m25p80 spi0.0: JEDEC id: 0x000000 It seems the kernel can not read out anything from the NOR. Please check the pinctrl or the schematic. > m25p80 spi0.0: found mr25h256, expected m25p32 > m25p80 spi0.0: mr25h256 (32 Kbytes) > > Will need to dump the SPI registers to understand why mx6sl behaves like this. i am not in the office today, else i can test the imx6sl-evk. thanks Huang Shijie