From: Fabio Estevam <festevam@gmail.com>
To: pratyush@kernel.org
Cc: mwalle@kernel.org, takahiro.kuwano@infineon.com,
miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com,
heiko@sntech.de, linux-mtd@lists.infradead.org,
Fabio Estevam <festevam@nabladev.com>
Subject: [PATCH] mtd: spi-nor: xmc: Add XM25QH128C identification
Date: Sat, 18 Jul 2026 18:38:27 -0300 [thread overview]
Message-ID: <20260718213827.701787-1-festevam@gmail.com> (raw)
From: Fabio Estevam <festevam@nabladev.com>
The XMC XM25QH128C is a 128-Mbit SPI NOR flash with JEDEC ID
20 40 18.
Add its identification entry. The device provides valid SFDP data, so
its parameters continue to be initialized entirely from SFDP.
The flash is populated on the Firefly ROC-RK3399-PC Plus board.
Signed-off-by: Fabio Estevam <festevam@nabladev.com>
---
Tested on a Firefly ROC-RK3399-PC Plus using the
"rockchip,rk3399-spi" controller at 30 MHz.
root@rk3399-station-p1:~# cat /sys/bus/spi/devices/spi1.0/spi-nor/partname
XM25QH128C
root@rk3399-station-p1:~# cat /sys/bus/spi/devices/spi1.0/spi-nor/jedec_id
204018
root@rk3399-station-p1:~# cat /sys/bus/spi/devices/spi1.0/spi-nor/manufacturer
xmc
root@rk3399-station-p1:~# hexdump -Cv /sys/bus/spi/devices/spi1.0/spi-nor/sfdp
00000000 53 46 44 50 06 01 02 ff 00 06 01 10 30 00 00 ff |SFDP........0...|
00000010 20 00 01 04 d0 00 00 ff 84 00 01 02 c0 00 00 ff | ...............|
00000020 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
00000030 e5 20 f1 ff ff ff ff 07 44 eb 08 6b 08 3b 42 bb |. ......D..k.;B.|
00000040 fe ff ff ff ff ff 00 ff ff ff 40 eb 0c 20 0f 52 |..........@.. .R|
00000050 10 d8 00 ff 24 02 06 01 82 a7 03 cd cc a1 06 35 |....$..........5|
00000060 7a 75 7a 75 f7 a9 d5 5c 19 f6 4d ff e9 10 c0 80 |zuzu...\..M.....|
00000070 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
00000080 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
00000090 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
000000a0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
000000b0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
000000c0 00 00 f0 ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
000000d0 00 36 00 23 9f f9 77 64 00 e8 ff ff ff ff ff ff |.6.#..wd........|
000000e0
root@rk3399-station-p1:~# sha256sum /sys/bus/spi/devices/spi1.0/spi-nor/sfdp
c027b82ebfdf18e455c6366a9d57602b36f2956d4307b770954544918102d9b3 /sys/bus/spi/devices/spi1.0/spi-nor/sfdp
drivers/mtd/spi-nor/xmc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/mtd/spi-nor/xmc.c b/drivers/mtd/spi-nor/xmc.c
index d5a06054b0dd..06bb8caf8927 100644
--- a/drivers/mtd/spi-nor/xmc.c
+++ b/drivers/mtd/spi-nor/xmc.c
@@ -19,6 +19,9 @@ static const struct flash_info xmc_nor_parts[] = {
.name = "XM25QH128A",
.size = SZ_16M,
.no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,
+ }, {
+ .id = SNOR_ID(0x20, 0x40, 0x18),
+ .name = "XM25QH128C",
},
};
--
2.43.0
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
reply other threads:[~2026-07-18 21:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260718213827.701787-1-festevam@gmail.com \
--to=festevam@gmail.com \
--cc=festevam@nabladev.com \
--cc=heiko@sntech.de \
--cc=linux-mtd@lists.infradead.org \
--cc=miquel.raynal@bootlin.com \
--cc=mwalle@kernel.org \
--cc=pratyush@kernel.org \
--cc=richard@nod.at \
--cc=takahiro.kuwano@infineon.com \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.