linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V4] mtd: spi-nor: winbond: Add support for winbond chip
@ 2022-01-20  9:54 Shaik Sajida Bhanu
  2022-01-20 10:12 ` Pratyush Yadav
  2022-01-20 10:31 ` Michael Walle
  0 siblings, 2 replies; 7+ messages in thread
From: Shaik Sajida Bhanu @ 2022-01-20  9:54 UTC (permalink / raw)
  To: dianders, tudor.ambarus, michael, p.yadav, miquel.raynal,
	richard, vigneshr, linux-mtd, linux-kernel
  Cc: stummala, vbadigan, quic_rampraka, quic_pragalla, sartgarg,
	Shaik Sajida Bhanu

Add support for winbond W25Q512NW-IM chip.

Signed-off-by: Shaik Sajida Bhanu <quic_c_sbhanu@quicinc.com>
Reviewed-by: Doug Anderson <dianders@chromium.org>
---

Changes since V1:
	- Added space before name of the flash part as suggested by Doug.

Changes since V2:
	- Updated chip name as w25q512nwm as suggested by Doug.

Changes since V3:
	- Updated flash_info flags passing according to below patch
	 https://lore.kernel.org/all/20211207140254.87681-7-tudor.ambarus@microchip.com/
	 As suggested by Tudor Ambarus.
---
 drivers/mtd/spi-nor/winbond.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c
index 675f32c..c4be225 100644
--- a/drivers/mtd/spi-nor/winbond.c
+++ b/drivers/mtd/spi-nor/winbond.c
@@ -124,6 +124,10 @@ static const struct flash_info winbond_parts[] = {
 	{ "w25m512jv", INFO(0xef7119, 0, 64 * 1024, 1024)
 		NO_SFDP_FLAGS(SECT_4K | SPI_NOR_QUAD_READ |
 			      SPI_NOR_DUAL_READ) },
+	{ "w25q512nwm", INFO(0xef8020, 0, 64 * 1024, 1024)
+		FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
+		NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
+			      SPI_NOR_QUAD_READ) },
 	{ "w25q512jvq", INFO(0xef4020, 0, 64 * 1024, 1024)
 		NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
 			      SPI_NOR_QUAD_READ) },
-- 
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member 
of Code Aurora Forum, hosted by The Linux Foundation


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-01-28  6:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-20  9:54 [PATCH V4] mtd: spi-nor: winbond: Add support for winbond chip Shaik Sajida Bhanu
2022-01-20 10:12 ` Pratyush Yadav
2022-01-24  7:31   ` Sajida Bhanu (Temp) (QUIC)
2022-01-20 10:31 ` Michael Walle
2022-01-25 15:36   ` Sajida Bhanu (Temp) (QUIC)
2022-01-25 15:52     ` Michael Walle
2022-01-28  6:37       ` Sajida Bhanu (Temp) (QUIC)

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).