* [PATCHv2] mtd: spi-nor: macronix: Add support for mx66u1g45g
@ 2022-11-11 16:40 Dinh Nguyen
2022-11-11 16:40 ` Dinh Nguyen
2022-11-20 15:11 ` Pratyush Yadav
0 siblings, 2 replies; 3+ messages in thread
From: Dinh Nguyen @ 2022-11-11 16:40 UTC (permalink / raw)
To: linux-mtd
Cc: dinguyen, tudor.ambarus, pratyush, michael, linux-kernel,
Niravkumar L Rabara
The MX66U1G45G is the smaller sibling (128MB) of the MX66U2G45G (256MB)
that is already supported.
Tested on Intel N5X socdk board,
- random data write, erase, read - verified erase operations
- random data write, read and compare - verified write/read operations
Signed-off-by: Niravkumar L Rabara <niravkumar.l.rabara@intel.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
---
v2: fixed compile error by removing , after PARSE_SFDP
---
drivers/mtd/spi-nor/macronix.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c
index d81a4cb2812b..07ace9da74b7 100644
--- a/drivers/mtd/spi-nor/macronix.c
+++ b/drivers/mtd/spi-nor/macronix.c
@@ -97,6 +97,10 @@ static const struct flash_info macronix_nor_parts[] = {
SPI_NOR_QUAD_READ) },
{ "mx66l1g55g", INFO(0xc2261b, 0, 64 * 1024, 2048)
NO_SFDP_FLAGS(SPI_NOR_QUAD_READ) },
+ { "mx66u1g45g", INFO(0xc2253b, 0, 64 * 1024, 2048)
+ PARSE_SFDP
+ FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ)
+ FIXUP_FLAGS(SPI_NOR_4B_OPCODES) },
{ "mx66u2g45g", INFO(0xc2253c, 0, 64 * 1024, 4096)
NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ)
FIXUP_FLAGS(SPI_NOR_4B_OPCODES) },
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCHv2] mtd: spi-nor: macronix: Add support for mx66u1g45g
2022-11-11 16:40 [PATCHv2] mtd: spi-nor: macronix: Add support for mx66u1g45g Dinh Nguyen
@ 2022-11-11 16:40 ` Dinh Nguyen
2022-11-20 15:11 ` Pratyush Yadav
1 sibling, 0 replies; 3+ messages in thread
From: Dinh Nguyen @ 2022-11-11 16:40 UTC (permalink / raw)
To: linux-mtd
Cc: dinguyen, tudor.ambarus, pratyush, michael, linux-kernel,
Niravkumar L Rabara
The MX66U1G45G is the smaller sibling (128MB) of the MX66U2G45G (256MB)
that is already supported.
Tested on Intel N5X socdk board,
- random data write, erase, read - verified erase operations
- random data write, read and compare - verified write/read operations
Signed-off-by: Niravkumar L Rabara <niravkumar.l.rabara@intel.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
---
v2: fixed compile error by removing , after PARSE_SFDP
---
drivers/mtd/spi-nor/macronix.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c
index d81a4cb2812b..07ace9da74b7 100644
--- a/drivers/mtd/spi-nor/macronix.c
+++ b/drivers/mtd/spi-nor/macronix.c
@@ -97,6 +97,10 @@ static const struct flash_info macronix_nor_parts[] = {
SPI_NOR_QUAD_READ) },
{ "mx66l1g55g", INFO(0xc2261b, 0, 64 * 1024, 2048)
NO_SFDP_FLAGS(SPI_NOR_QUAD_READ) },
+ { "mx66u1g45g", INFO(0xc2253b, 0, 64 * 1024, 2048)
+ PARSE_SFDP
+ FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ)
+ FIXUP_FLAGS(SPI_NOR_4B_OPCODES) },
{ "mx66u2g45g", INFO(0xc2253c, 0, 64 * 1024, 4096)
NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ)
FIXUP_FLAGS(SPI_NOR_4B_OPCODES) },
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCHv2] mtd: spi-nor: macronix: Add support for mx66u1g45g
2022-11-11 16:40 [PATCHv2] mtd: spi-nor: macronix: Add support for mx66u1g45g Dinh Nguyen
2022-11-11 16:40 ` Dinh Nguyen
@ 2022-11-20 15:11 ` Pratyush Yadav
1 sibling, 0 replies; 3+ messages in thread
From: Pratyush Yadav @ 2022-11-20 15:11 UTC (permalink / raw)
To: Dinh Nguyen
Cc: linux-mtd, tudor.ambarus, michael, linux-kernel, Niravkumar L Rabara
On 11/11/22 10:40AM, Dinh Nguyen wrote:
> The MX66U1G45G is the smaller sibling (128MB) of the MX66U2G45G (256MB)
> that is already supported.
>
> Tested on Intel N5X socdk board,
> - random data write, erase, read - verified erase operations
> - random data write, read and compare - verified write/read operations
>
> Signed-off-by: Niravkumar L Rabara <niravkumar.l.rabara@intel.com>
> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
> ---
> v2: fixed compile error by removing , after PARSE_SFDP
> ---
> drivers/mtd/spi-nor/macronix.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c
> index d81a4cb2812b..07ace9da74b7 100644
> --- a/drivers/mtd/spi-nor/macronix.c
> +++ b/drivers/mtd/spi-nor/macronix.c
> @@ -97,6 +97,10 @@ static const struct flash_info macronix_nor_parts[] = {
> SPI_NOR_QUAD_READ) },
> { "mx66l1g55g", INFO(0xc2261b, 0, 64 * 1024, 2048)
> NO_SFDP_FLAGS(SPI_NOR_QUAD_READ) },
> + { "mx66u1g45g", INFO(0xc2253b, 0, 64 * 1024, 2048)
> + PARSE_SFDP
> + FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ)
> + FIXUP_FLAGS(SPI_NOR_4B_OPCODES) },
Why do you need these extra flags? Can't they be discovered by parsing
the SFDP? If they can't, then you should explain in your commit message
why that is so.
I would suspect they can be, so perhaps you should try using your flash
with just PARSE_SFDP and see if it works.
> { "mx66u2g45g", INFO(0xc2253c, 0, 64 * 1024, 4096)
> NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ)
> FIXUP_FLAGS(SPI_NOR_4B_OPCODES) },
> --
> 2.25.1
>
--
Regards,
Pratyush Yadav
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-11-20 15:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-11 16:40 [PATCHv2] mtd: spi-nor: macronix: Add support for mx66u1g45g Dinh Nguyen
2022-11-11 16:40 ` Dinh Nguyen
2022-11-20 15:11 ` Pratyush Yadav
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).