Hi,
this adds the device IDs for Macronix MX25L8006 SPI flash.

Datasheet: 
https://www.mxic.com.tw/Lists/Datasheet/Attachments/8384/MX25L8006E,%203V,%208Mb,%20v1.2.pdf
I added that link on the wiki page for the PD 
https://sigrok.org/wiki/Protocol_decoder:Spiflash

Patch also on a branch of my private fork,
https://github.com/fenugrec/libsigrokdecode-tmp/tree/spiflash_mx25l8006

PR submitted on the (outdated) github mirror :
https://github.com/sigrokproject/libsigrokdecode/pull/105

so one can e.g. "git fetch origin pull/105/head" (assuming the remote name is 
'origin')

************************
0001-spiflash-add-MX25L8006-device-type.patch
************************
>From 2f3af1718c35843d781ed0e06bb9193ff92cd51e Mon Sep 17 00:00:00 2001
From: fenugrec <fenug...@users.sourceforge.net>
Date: Wed, 26 Apr 2023 13:28:40 -0400
Subject: [PATCH] spiflash: add MX25L8006 device type

---
 decoders/spiflash/lists.py | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/decoders/spiflash/lists.py b/decoders/spiflash/lists.py
index 80ca27d..036f224 100644
--- a/decoders/spiflash/lists.py
+++ b/decoders/spiflash/lists.py
@@ -60,6 +60,7 @@
         0x15: 'FM25Q32',
     },
     'macronix': {
+        0x13: 'MX25L8006',
         0x14: 'MX25L1605D',
         0x15: 'MX25L3205D',
         0x16: 'MX25L6405D',
@@ -118,7 +119,17 @@
         'block_size': 64 * 1024,
     },
     # Macronix
-    'macronix_mx25l1605d': {
+    'macronix_mx25l8006': {
+        'vendor': 'Macronix',
+        'model': 'MX25L8006',
+        'res_id': 0x13,
+        'rems_id': 0xc213,
+        'rems2_id': 0xc213,
+        'rdid_id': 0xc22013,
+        'page_size': 256,
+        'sector_size': 4 * 1024,
+        'block_size': 64 * 1024,
+    },    'macronix_mx25l1605d': {
         'vendor': 'Macronix',
         'model': 'MX25L1605D',
         'res_id': 0x14,
--
2.40.0

*************************


_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to