Skip to contentSkip to conversation

mtd: spinand: Add support for XTX SPINAND

PATCH Superseded Bruce Suen 2 participants 2 messages Mar 11, 2024

Subsystems (2)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Bruce Suen

author
#0 lore raw

PATCH v3 1/1 mtd: spinand: Add support for XTX SPINAND

Add support for XTX XT26G0xA and XT26xxxD.The driver is ported from linux-6.7.1.This driver is tested on Banana BPI-R3 with XT26G01A and XT26G12D.

---
V2->V3:
- change commit message: add test setup information
- remove patch warnings

---
 drivers/mtd/nand/spi/Makefile |   2 +-
 drivers/mtd/nand/spi/core.c   |   1 +
 drivers/mtd/nand/spi/xtx.c    | 266 ++++++++++++++++++++++++++++++++++
 include/linux/mtd/spinand.h   |   1 +
 4 files changed, 269 insertions(+), 1 deletion(-)
 create mode 100644 drivers/mtd/nand/spi/xtx.c
drivers/mtd/nand/spi/Makefile +1 -1
index f172f4787f..65b836b34c 100644
@@ -1,5 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
 
 spinand-objs := core.o esmt.o gigadevice.o macronix.o micron.o paragon.o
-spinand-objs += toshiba.o winbond.o
+spinand-objs += toshiba.o winbond.o xtx.o
 obj-$(CONFIG_MTD_SPI_NAND) += spinand.o
drivers/mtd/nand/spi/core.c +1 -0
index 8ca33459f9..62c28aa422 100644
@@ -829,6 +829,7 @@ static const struct spinand_manufacturer *spinand_manufacturers[] = {
 	&toshiba_spinand_manufacturer,
 	&winbond_spinand_manufacturer,
 	&esmt_c8_spinand_manufacturer,
+	&xtx_spinand_manufacturer,
 };
 
 static int spinand_manufacturer_match(struct spinand_device *spinand,
drivers/mtd/nand/spi/xtx.c new file +266 -0

266 lines not on this page · raw message

include/linux/mtd/spinand.h +1 -0
index 6f479fa5ad..13b5a52f8b 100644
@@ -251,6 +251,7 @@ 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;
+extern const struct spinand_manufacturer xtx_spinand_manufacturer;
 
 /**
  * struct spinand_op_variants - SPI NAND operation variants
Signature · 1 line
2.34.1
Reviewed-by on v3 1/1
#1 lore raw
Quoted 7 lines · Bruce Suen

[Sie erhalten nicht häufig E-Mails von [email protected]. Weitere Informationen, warum dies wichtig ist, finden Sie unter https://aka.ms/LearnAboutSenderIdentification ]

Add support for XTX XT26G0xA and XT26xxxD.The driver is ported from linux-6.7.1.This driver is tested on Banana BPI-R3 with XT26G01A and XT26G12D.

The commit message still has some minor flaws like missing spaces after the periods, but anyway: