Skip to content

Commit 45f9f15

Browse files
chbgdnAnsuel
authored andcommitted
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 <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: openwrt/openwrt#16915 (cherry picked from commit 1269a83) Link: openwrt/openwrt#17188 Signed-off-by: Christian Marangi <[email protected]>
1 parent f483de4 commit 45f9f15

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
From ae461cde5c559675fc4c0ba351c7c31ace705f56 Mon Sep 17 00:00:00 2001
2+
From: Bohdan Chubuk <[email protected]>
3+
Date: Sun, 10 Nov 2024 22:50:47 +0200
4+
Subject: [PATCH] mtd: spinand: add support for FORESEE F35SQA001G
5+
6+
Add support for FORESEE F35SQA001G SPI NAND.
7+
8+
Similar to F35SQA002G, but differs in capacity.
9+
Datasheet:
10+
- https://cdn.ozdisan.com/ETicaret_Dosya/704795_871495.pdf
11+
12+
Tested on Xiaomi AX3000T flashed with OpenWRT.
13+
14+
Signed-off-by: Bohdan Chubuk <[email protected]>
15+
Signed-off-by: Miquel Raynal <[email protected]>
16+
---
17+
drivers/mtd/nand/spi/foresee.c | 10 ++++++++++
18+
1 file changed, 10 insertions(+)
19+
20+
--- a/drivers/mtd/nand/spi/foresee.c
21+
+++ b/drivers/mtd/nand/spi/foresee.c
22+
@@ -81,6 +81,16 @@ static const struct spinand_info foresee
23+
SPINAND_HAS_QE_BIT,
24+
SPINAND_ECCINFO(&f35sqa002g_ooblayout,
25+
f35sqa002g_ecc_get_status)),
26+
+ SPINAND_INFO("F35SQA001G",
27+
+ SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x71, 0x71),
28+
+ NAND_MEMORG(1, 2048, 64, 64, 1024, 20, 1, 1, 1),
29+
+ NAND_ECCREQ(1, 512),
30+
+ SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
31+
+ &write_cache_variants,
32+
+ &update_cache_variants),
33+
+ SPINAND_HAS_QE_BIT,
34+
+ SPINAND_ECCINFO(&f35sqa002g_ooblayout,
35+
+ f35sqa002g_ecc_get_status)),
36+
};
37+
38+
static const struct spinand_manufacturer_ops foresee_spinand_manuf_ops = {

0 commit comments

Comments
 (0)