[openwrt/openwrt] generic: mtd: spinand: add support for FORESEE F35SQA001G

LEDE Commits lede-commits at lists.infradead.org
Fri Dec 6 06:17:41 PST 2024


ansuel pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/45f9f1551223b516cccbcca1e252e722bb3dbc08

commit 45f9f1551223b516cccbcca1e252e722bb3dbc08
Author: Bohdan Chubuk <chbgdn at gmail.com>
AuthorDate: Fri Dec 6 00:17:56 2024 +0200

    generic: mtd: spinand: add support for FORESEE F35SQA001G
    
    Add support for FORESEE F35SQA001G SPI NAND.
    
    Similar to F35SQA002G, but differs in capacity.
    Datasheet:
      -  https://cdn.ozdisan.com/ETicaret_Dosya/704795_871495.pdf
    
    Tested on Xiaomi AX3000T flashed with OpenWRT.
    
    Signed-off-by: Bohdan Chubuk <chbgdn at gmail.com>
    Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>
    Link: https://github.com/openwrt/openwrt/pull/16915
    (cherry picked from commit 1269a836edc45a42ab1e76dcd20e8cd8325529da)
    Link: https://github.com/openwrt/openwrt/pull/17188
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 ...pinand-add-support-for-FORESEE-F35SQA001G.patch | 38 ++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/target/linux/generic/backport-6.6/412-v6.14-mtd-spinand-add-support-for-FORESEE-F35SQA001G.patch b/target/linux/generic/backport-6.6/412-v6.14-mtd-spinand-add-support-for-FORESEE-F35SQA001G.patch
new file mode 100644
index 0000000000..84b3b2afee
--- /dev/null
+++ b/target/linux/generic/backport-6.6/412-v6.14-mtd-spinand-add-support-for-FORESEE-F35SQA001G.patch
@@ -0,0 +1,38 @@
+From ae461cde5c559675fc4c0ba351c7c31ace705f56 Mon Sep 17 00:00:00 2001
+From: Bohdan Chubuk <chbgdn at gmail.com>
+Date: Sun, 10 Nov 2024 22:50:47 +0200
+Subject: [PATCH] mtd: spinand: add support for FORESEE F35SQA001G
+
+Add support for FORESEE F35SQA001G SPI NAND.
+
+Similar to F35SQA002G, but differs in capacity.
+Datasheet:
+  -  https://cdn.ozdisan.com/ETicaret_Dosya/704795_871495.pdf
+
+Tested on Xiaomi AX3000T flashed with OpenWRT.
+
+Signed-off-by: Bohdan Chubuk <chbgdn at gmail.com>
+Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>
+---
+ drivers/mtd/nand/spi/foresee.c | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+--- a/drivers/mtd/nand/spi/foresee.c
++++ b/drivers/mtd/nand/spi/foresee.c
+@@ -81,6 +81,16 @@ static const struct spinand_info foresee
+ 		     SPINAND_HAS_QE_BIT,
+ 		     SPINAND_ECCINFO(&f35sqa002g_ooblayout,
+ 				     f35sqa002g_ecc_get_status)),
++	SPINAND_INFO("F35SQA001G",
++		     SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x71, 0x71),
++		     NAND_MEMORG(1, 2048, 64, 64, 1024, 20, 1, 1, 1),
++		     NAND_ECCREQ(1, 512),
++		     SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
++					      &write_cache_variants,
++					      &update_cache_variants),
++		     SPINAND_HAS_QE_BIT,
++		     SPINAND_ECCINFO(&f35sqa002g_ooblayout,
++				     f35sqa002g_ecc_get_status)),
+ };
+ 
+ static const struct spinand_manufacturer_ops foresee_spinand_manuf_ops = {




More information about the lede-commits mailing list