Re: [PATCH v1 2/2] mtd: devices: add support for microchip 48l640 EERAM
From: Fabio Estevam <festevam@gmail.com>
Date: 2021-05-28 13:56:09
Also in:
lkml
From: Fabio Estevam <festevam@gmail.com>
Date: 2021-05-28 13:56:09
Also in:
lkml
Hi Heiko, On Fri, May 28, 2021 at 4:26 AM Heiko Schocher [off-list ref] wrote:
The Microchip 48l640 is a 8KByte EERAM connected via SPI. Signed-off-by: Heiko Schocher <redacted> --- I tried to use drivers/mtd/devices/mchp23k256.c but this driver does not use any status register and there seems slight differences in registers (no write enable register for example), so I decided to make a new driver. This driver sets the continuous mode bit in Status register, which states you can write continuous ... but after writting 32 bytes the chip goes into an undefined state, so driver now writes data in 32 byte chunks. I also tried to use regmap, but it leads in a lot of more code, and as this chip has only spi interface it makes no sense, or? Tested this driver on board imx8mp-phyboard-pollux-rdk board, which is already in mainline. Made some tbot tests, which write at random offset random length bytes with dd and and random content. Reread the data after a reboot and compare with the written data. Works fine.
Works for me too on an imx7d based board, thanks: Tested-by: Fabio Estevam <redacted>