[LEDE-DEV] [PATCHv2 3/4] kernel/4.4: add generic spi-nand framework

Christian Lamparter chunkeey at googlemail.com
Sun Sep 3 10:56:22 PDT 2017


On Sunday, September 3, 2017 1:43:59 PM CEST hackpascal wrote:
> From: Weijie Gao <hackpascal at gmail.com>
> 
> This patch adds generic SPI-NAND framework for linux-4.4.
> 
> Files come from patches of target pistachio, but have lots of modifications
> to add full support for GD5F series.
> 
> Signed-off-by: Weijie Gao <hackpascal at gmail.com>
> ---
Hm, from what I know multiple "generic" SPI-NAND driver/framework exist.

The current favourite of linux-mtd seems to be from Micron:
<http://lists.infradead.org/pipermail/linux-mtd/2017-April/073649.html>
(Altought, development has sadly stalled as well ;( )
<http://lists.infradead.org/pipermail/linux-mtd/2017-April/073681.html>

Is this correct? Or was there a recent attempt at upstreaming "this"
older framework too that I can't find?

Note:
The kernel had some support for spinand since v3.13 via the
staging "mt29f_spinand" driver. I had some success with it
on the RT-AC58U. All I needed there was to add a custom 
definition for the Winbond W25N01GV chip [0] and enable
CONFIG_MTD_SPINAND_MT29F=y
CONFIG_MTD_SPINAND_ONDIEECC=y

Maybe you too can get away with something similar to this?
Until linux-mtd _finally_ knows what they want to merge.

Regards,
Christian

[0] <https://github.com/lede-project/source/blob/master/target/linux/ipq806x/patches-4.9/104-mtd-nand-add-Winbond-manufacturer-and-chip.patch>



More information about the Lede-dev mailing list