Linux-mtd Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mtd: spi-nor: add dt support for Everspin MRAMs
@ 2017-01-16 13:35 Uwe Kleine-König
  2017-01-16 13:55 ` Rafał Miłecki
  0 siblings, 1 reply; 19+ messages in thread
From: Uwe Kleine-König @ 2017-01-16 13:35 UTC (permalink / raw)
  To: Masahiko Iwamoto, Jagan Teki, Marek Vasut, Cyrille Pitchen
  Cc: linux-mtd, kernel, Rafał Miłecki, Geert Uytterhoeven,
	Mark Rutland, devicetree

The MR25 family doesn't support JEDEC, so they need explicit mentioning
in the list of supported spi IDs. This makes it possible to add these
using for example:

	compatible = "everspin,mr25h40";

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
Hello,

independent of the decision if -nonjedec is ok for m25p, this is needed
to make Everspin's MRAMs work.

Best regards
Uwe

 drivers/mtd/devices/m25p80.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -305,6 +305,11 @@ static const struct spi_device_id m25p_ids[] = {
 	{"m25p40-nonjedec"},	{"m25p80-nonjedec"},	{"m25p16-nonjedec"},
 	{"m25p32-nonjedec"},	{"m25p64-nonjedec"},	{"m25p128-nonjedec"},
 
+	/* Everspin MRAMs without JEDEC support */
+	{ "mr25h256" }, /* 256 kib, 40 MHz */
+	{ "mr25h10" },  /*   1 Mib, 40 MHz */
+	{ "mr25h40" },  /*   4 Mib, 40 MHz */
+
 	{ },
 };
 MODULE_DEVICE_TABLE(spi, m25p_ids);
-- 
2.11.0

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

end of thread, other threads:[~2017-01-20 12:58 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-16 13:35 [PATCH] mtd: spi-nor: add dt support for Everspin MRAMs Uwe Kleine-König
2017-01-16 13:55 ` Rafał Miłecki
2017-01-16 16:08   ` Marek Vasut
2017-01-16 19:41   ` Uwe Kleine-König
2017-01-16 20:45     ` Rafał Miłecki
2017-01-16 21:00   ` [PATCH v2] " Uwe Kleine-König
2017-01-16 21:02     ` Rafał Miłecki
2017-01-16 21:24     ` Marek Vasut
2017-01-17  9:48     ` Cyrille Pitchen
2017-01-17 10:32       ` Cyrille Pitchen
2017-01-17 11:03         ` [PATCH v3] " Uwe Kleine-König
2017-01-17 13:04           ` Cyrille Pitchen
2017-01-17 13:16           ` Rafał Miłecki
2017-01-17 13:57             ` Cyrille Pitchen
2017-01-17 15:49               ` Rafał Miłecki
2017-01-18 13:51                 ` Marek Vasut
2017-01-19 17:54               ` Rob Herring
2017-01-19 17:56           ` Rob Herring
2017-01-20 12:57             ` Cyrille Pitchen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox