devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/5] Add support for SPI-NOR Macronix OTP
@ 2024-09-20 18:12 Erez Geva
  2024-09-20 18:12 ` [PATCH v5 1/5] mtd: spi-nor: core: add manufacturer flags Erez Geva
                   ` (4 more replies)
  0 siblings, 5 replies; 31+ messages in thread
From: Erez Geva @ 2024-09-20 18:12 UTC (permalink / raw)
  To: linux-mtd, Tudor Ambarus, Pratyush Yadav, Michael Walle
  Cc: linux-kernel, Miquel Raynal, Richard Weinberger,
	Vignesh Raghavendra, devicetree, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Esben Haabendal, Erez Geva

From: Erez Geva <ErezGeva2@gmail.com>

Add support for SPI-NOR Macronix OTP.
And add MX25L12833F with OTP.

v2:
Improve description of mx25l12833f.
Add note about mx25l12833f using the same JEDEC ID as mx25l12805d.

v3:
Improve description.
Rename _nor_send_cmd() to spi_nor_send_cmd_internal().
Remove MX25L12833F specific changes.
Add reading SFDP to all Macronix chips.
Add support of reading OTP parameters from device tree.
Reorgenize patches to 2 SPI-NOR patches and 2 Macronix patches.
Testing with MX25L3233F using BeagleBone Black.
Test results are in "mtd: spi-nor: macronix: add manufacturer flags" patch.

v4:
Add DT bindings of new OTP parameters.
Test OTP with 'flash_otp_write' and 'flash_otp_lock'.
Fix macronix_nor_otp_lock() and macronix_nor_otp_is_locked(),
Macronix uses a single flag for all regions.

v5:
Fix DT binding errors.
Fix functions description of Macronix OTP functions.

Erez Geva (5):
  mtd: spi-nor: core: add manufacturer flags
  mtd: spi-nor: core: add generic functions
  dt-bindings: mtd: spi-nor: add OTP parameters
  mtd: spi-nor: macronix: add support for OTP
  mtd: spi-nor: macronix: add manufacturer flags

 .../bindings/mtd/jedec,spi-nor.yaml           |  39 ++++
 drivers/mtd/spi-nor/core.c                    | 166 +++++++++++++----
 drivers/mtd/spi-nor/core.h                    |  34 +---
 drivers/mtd/spi-nor/macronix.c                | 168 ++++++++++++++++++
 drivers/mtd/spi-nor/otp.c                     |   6 +-
 drivers/mtd/spi-nor/winbond.c                 |   2 +-
 include/linux/mtd/spi-nor.h                   |   9 +
 7 files changed, 356 insertions(+), 68 deletions(-)

-- 
2.39.5


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

end of thread, other threads:[~2024-09-26 13:17 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-20 18:12 [PATCH v5 0/5] Add support for SPI-NOR Macronix OTP Erez Geva
2024-09-20 18:12 ` [PATCH v5 1/5] mtd: spi-nor: core: add manufacturer flags Erez Geva
2024-09-23  6:04   ` Tudor Ambarus
2024-09-23 10:31     ` Erez
2024-09-23 10:46       ` Michael Walle
2024-09-23 13:25         ` Erez
2024-09-23 16:19           ` Michael Walle
2024-09-23 16:31             ` Erez
2024-09-23 18:04               ` Tudor Ambarus
2024-09-23 18:21                 ` Tudor Ambarus
2024-09-26  7:46               ` Esben Haabendal
2024-09-26 11:08                 ` Erez
2024-09-26 11:37                   ` Esben Haabendal
2024-09-26 13:16                     ` Erez
2024-09-23 12:07       ` Tudor Ambarus
2024-09-23 13:01         ` Erez
2024-09-23 14:18           ` Tudor Ambarus
2024-09-23 14:51             ` Erez
2024-09-23 17:52               ` Tudor Ambarus
2024-09-23 19:30                 ` Erez
2024-09-23 21:41                   ` Erez
2024-09-24  6:04                     ` Tudor Ambarus
2024-09-24  6:01                   ` Tudor Ambarus
2024-09-20 18:12 ` [PATCH v5 2/5] mtd: spi-nor: core: add generic functions Erez Geva
2024-09-20 18:12 ` [PATCH v5 3/5] dt-bindings: mtd: spi-nor: add OTP parameters Erez Geva
2024-09-22 20:40   ` Krzysztof Kozlowski
2024-09-23  9:21     ` Erez
2024-09-23 15:42       ` Krzysztof Kozlowski
2024-09-23 15:49         ` Erez
2024-09-20 18:12 ` [PATCH v5 4/5] mtd: spi-nor: macronix: add support for OTP Erez Geva
2024-09-20 18:12 ` [PATCH v5 5/5] mtd: spi-nor: macronix: add manufacturer flags Erez Geva

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