Skip to contentSkip to conversation

mtd: spi-nor: macronix: Add support for mx66l2g45g

PATCH In review Jiaqing Zhao 2 participants 4 messages May 23, 2022 – May 24, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 mtd: spi-nor: macronix: Add support for mx66l2g45g

Macronix mx66l2g45g is a 3V, 2Gbit (256MB) NOR flash that supports x1, x2, and x4 operation modes.

Tested read/write/erase with Aspeed AST2600 BMC SoC operating in x2 mode at 50MHz, using Aspeed spi-mem driver.

---
 drivers/mtd/spi-nor/macronix.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mtd/spi-nor/macronix.c +2 -0
index d81a4cb2812b..33d02a01b381 100644
@@ -95,6 +95,8 @@ static const struct flash_info macronix_nor_parts[] = {
 	{ "mx66l1g45g",  INFO(0xc2201b, 0, 64 * 1024, 2048)
 		NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
 			      SPI_NOR_QUAD_READ) },
+	// TODO: Use SNOR_ID3() for "mx66l2g45g"
+	{ "mx66l2g45g",  INFO(0xc2201c, 0, 0, 0) PARSE_SFDP },
 	{ "mx66l1g55g",  INFO(0xc2261b, 0, 64 * 1024, 2048)
 		NO_SFDP_FLAGS(SPI_NOR_QUAD_READ) },
 	{ "mx66u2g45g",	 INFO(0xc2253c, 0, 64 * 1024, 4096)
Signature · 1 line
2.34.1
Reviewed-by on v3 1/1
#1 lore raw

Am 2022-05-23 17:03, schrieb Jiaqing Zhao:

Quoted 7 lines

Macronix mx66l2g45g is a 3V, 2Gbit (256MB) NOR flash that supports x1, x2, and x4 operation modes.

Tested read/write/erase with Aspeed AST2600 BMC SoC operating in x2 mode at 50MHz, using Aspeed spi-mem driver.

# is this picked up by b4? link goes to the sfdp dump
Link: https://lore.kernel.org/r/[email protected]

-michael

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

#2 lore raw
Quoted 4 lines · Michael Walle

Am 2022-05-23 17:03, schrieb Jiaqing Zhao:

Quoted 3 lines

Macronix mx66l2g45g is a 3V, 2Gbit (256MB) NOR flash that supports x1, x2, and x4 operation modes.

Quoted 8 lines
Quoted 4 lines

Tested read/write/erase with Aspeed AST2600 BMC SoC operating in x2 mode at 50MHz, using Aspeed spi-mem driver.

# is this picked up by b4? link goes to the sfdp dump

May I ask what do you mean by "is this picked up by b4?"

Quoted 3 lines

-michael

#3 lore raw

Am 2022-05-24 05:35, schrieb Jiaqing Zhao:

Quoted 8 lines · Michael Walle
Quoted 7 lines

Am 2022-05-23 17:03, schrieb Jiaqing Zhao:

Quoted 6 lines

Macronix mx66l2g45g is a 3V, 2Gbit (256MB) NOR flash that supports x1, x2, and x4 operation modes.

Tested read/write/erase with Aspeed AST2600 BMC SoC operating in x2 mode at 50MHz, using Aspeed spi-mem driver.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line
# is this picked up by b4? link goes to the sfdp dump

May I ask what do you mean by "is this picked up by b4?"

It was question to the maintainers (or myself). b4 the tool the spi-nor maintainers [1] use to pick up the patches. And, no it is not picked up automatically.

-michael

[1] https://people.kernel.org/monsieuricon/introducing-b4-and-patch-attestation

Quoted 1 line
Quoted 1 line