From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZQbXA-0003Rs-7K for linux-mtd@lists.infradead.org; Sat, 15 Aug 2015 13:30:05 +0000 From: Marek Vasut To: Alexis Ballier Subject: Re: [PATCH] mtd: spi-nor: Add support for sst25wf020a. Date: Sat, 15 Aug 2015 15:29:35 +0200 Cc: Ben Hutchings , =?utf-8?q?Rafa=C5=82_Mi=C5=82ecki?= , open list , Gabor Juhos , "open list:MEMORY TECHNOLOGY DEVICES \(MTD\)" , Huang Shijie , Brian Norris , David Woodhouse , "Bean Huo =?utf-8?q?=E9=9C=8D=E6=96=8C=E6=96=8C?= \(beanhuo\)" References: <1439573741-24491-1-git-send-email-aballier@gentoo.org> <201508142245.14289.marex@denx.de> <20150815103859.0a15da43@gentoo.org> In-Reply-To: <20150815103859.0a15da43@gentoo.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201508151529.35983.marex@denx.de> List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Saturday, August 15, 2015 at 10:38:59 AM, Alexis Ballier wrote: > On Fri, 14 Aug 2015 22:45:14 +0200 > > Marek Vasut wrote: > > On Friday, August 14, 2015 at 07:35:39 PM, Alexis Ballier wrote: > > > It is a 256KiB flash with 4 KiB erase sectors > > > and 64KiB overlay blocks. > > > > > > This is the one available on Hardkernel's Odroid U3 shield. > > > > > > Signed-off-by: Alexis Ballier > > > --- > > > > > > drivers/mtd/spi-nor/spi-nor.c | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/drivers/mtd/spi-nor/spi-nor.c > > > b/drivers/mtd/spi-nor/spi-nor.c index d78831b..e521b35 100644 > > > --- a/drivers/mtd/spi-nor/spi-nor.c > > > +++ b/drivers/mtd/spi-nor/spi-nor.c > > > @@ -636,6 +636,7 @@ static const struct spi_device_id spi_nor_ids[] > > > = { { "sst25wf512", INFO(0xbf2501, 0, 64 * 1024, 1, SECT_4K | > > > SST_WRITE) > > > > }, > > > > > { "sst25wf010", INFO(0xbf2502, 0, 64 * 1024, 2, SECT_4K > > > > > > | SST_WRITE) > > > > }, > > > > > { "sst25wf020", INFO(0xbf2503, 0, 64 * 1024, 4, SECT_4K > > > > > > | SST_WRITE) > > > > }, > > > > > + { "sst25wf020a", INFO(0x621612, 0, 64 * 1024, 4, > > > SECT_4K) }, > > > > Is the SST_WRITE not needed on this device ? > > Tried that at first and it didn't work (writes were silently not > performed). This is the worst possible behavior. > I'm no expert here, but I don't see anything about auto address > increment in the spec: > http://ww1.microchip.com/downloads/en/DeviceDoc/20005139E.pdf > and it uses the page program command (0x02). They probably decided to start rolling out a standard SPI NOR, which is good :) Best regards, Marek Vasut