mtd: spinand: add support for ESMT F50x1G41LB
Subsystems (2)
v2 cover mtd: spinand: add support for ESMT F50x1G41LB
This series ports ESMT NAND support from Linux.
Changes in v2:
- Dropped detect procedure rework patch, since similar one was already applied to u-boot in commit b20913e3cb.
- Updated NAND_MEMORG values, so that they are correct after mbb parameter was added in 8acaec923b.
Igor Prusov (1):
mtd: spinand: add support for ESMT F50x1G41LB
drivers/mtd/nand/spi/Makefile | 3 +- drivers/mtd/nand/spi/core.c | 1 + drivers/mtd/nand/spi/esmt.c | 137 ++++++++++++++++++++++++++++++++++ include/linux/mtd/spinand.h | 1 + 4 files changed, 141 insertions(+), 1 deletion(-) create mode 100644 drivers/mtd/nand/spi/esmt.c
Signature · 1 line
2.34.1
PATCH v2 1/1 mtd: spinand: add support for ESMT F50x1G41LB
Adaptation of Linux commit d74c36480a67
This patch adds support for ESMT F50L1G41LB and F50D1G41LB. It seems that ESMT likes to use random JEDEC ID from other vendors. Their 1G chips uses 0xc8 from GigaDevice and 2G/4G chips uses 0x2c from Micron. For this reason, the ESMT entry is named esmt_c8 with explicit JEDEC ID in variable name.
Datasheets:
https://www.esmt.com.tw/upload/pdf/ESMT/datasheets/F50L1G41LB(2M).pdf
https://www.esmt.com.tw/upload/pdf/ESMT/datasheets/F50D1G41LB(2M).pdf
--- drivers/mtd/nand/spi/Makefile | 3 +- drivers/mtd/nand/spi/core.c | 1 + drivers/mtd/nand/spi/esmt.c | 137 ++++++++++++++++++++++++++++++++++ include/linux/mtd/spinand.h | 1 + 4 files changed, 141 insertions(+), 1 deletion(-) create mode 100644 drivers/mtd/nand/spi/esmt.c
drivers/mtd/nand/spi/Makefile +2 -1
@@ -1,4 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -spinand-objs := core.o gigadevice.o macronix.o micron.o paragon.o toshiba.o winbond.o +spinand-objs := core.o esmt.o gigadevice.o macronix.o micron.o paragon.o +spinand-objs += toshiba.o winbond.o obj-$(CONFIG_MTD_SPI_NAND) += spinand.o
drivers/mtd/nand/spi/core.c +1 -0
@@ -828,6 +828,7 @@ static const struct spinand_manufacturer *spinand_manufacturers[] = { ¶gon_spinand_manufacturer, &toshiba_spinand_manufacturer, &winbond_spinand_manufacturer, + &esmt_c8_spinand_manufacturer, }; static int spinand_manufacturer_match(struct spinand_device *spinand,
drivers/mtd/nand/spi/esmt.c new file +137 -0
137 lines not on this page · raw message
include/linux/mtd/spinand.h +1 -0
@@ -251,6 +251,7 @@ extern const struct spinand_manufacturer micron_spinand_manufacturer;extern const struct spinand_manufacturer paragon_spinand_manufacturer;extern const struct spinand_manufacturer toshiba_spinand_manufacturer;extern const struct spinand_manufacturer winbond_spinand_manufacturer; +extern const struct spinand_manufacturer esmt_c8_spinand_manufacturer;/** * struct spinand_op_variants - SPI NAND operation variants
Signature · 1 line
2.34.1
Quoted 12 lines · Igor Prusov
Adaptation of Linux commit
d74c36480a67This patch adds support for ESMT F50L1G41LB and F50D1G41LB. It seems that ESMT likes to use random JEDEC ID from other vendors. Their 1G chips uses
0xc8from GigaDevice and 2G/4G chips uses0x2cfrom Micron. For this reason, the ESMT entry is namedesmt_c8with explicit JEDEC ID in variable name.Datasheets:
https://www.esmt.com.tw/upload/pdf/ESMT/datasheets/F50L1G41LB(2M).pdf
https://www.esmt.com.tw/upload/pdf/ESMT/datasheets/F50D1G41LB(2M).pdf
Quoted 5 lines
Signed-off-by Igor Prusov <[email protected]>Signed-off-by Chuanhong Guo <[email protected]>Signed-off-by Martin Kurbanov <[email protected]>Signed-off-by Dmitry Rokosov <[email protected]>Tested-by Martin Kurbanov <[email protected]>
Quoted 13 lines · Igor Prusov
Adaptation of Linux commit
d74c36480a67This patch adds support for ESMT F50L1G41LB and F50D1G41LB. It seems that ESMT likes to use random JEDEC ID from other vendors. Their 1G chips uses
0xc8from GigaDevice and 2G/4G chips uses0x2cfrom Micron. For this reason, the ESMT entry is namedesmt_c8with explicit JEDEC ID in variable name.Datasheets:
https://www.esmt.com.tw/upload/pdf/ESMT/datasheets/F50L1G41LB(2M).pdf
https://www.esmt.com.tw/upload/pdf/ESMT/datasheets/F50D1G41LB(2M).pdf
Quoted 6 lines
Signed-off-by Igor Prusov <[email protected]>Signed-off-by Chuanhong Guo <[email protected]>Signed-off-by Martin Kurbanov <[email protected]>Signed-off-by Dmitry Rokosov <[email protected]>Tested-by Martin Kurbanov <[email protected]>---
Applied to u-boot-spi/master