Skip to content

Commit 5c3f1be

Browse files
committed
Add support for Puya PY25Q128HA flash chip
The Puya PY25Q128HA is a W25Q128-compatible 128Mbit (16MB) SPI NOR flash chip. This PR adds detection support by including its JEDEC ID in the flash configuration table. Changes: - Added PY25Q128HA JEDEC ID (0x856018) to m25p16FlashConfig[] array - Updated Blackbox documentation with PY25Q128HA in supported chips list The chip uses the same SPI command set as other supported flash chips, so no driver modifications are required beyond adding the JEDEC ID for auto-detection during initialization.
1 parent ad011e8 commit 5c3f1be

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

docs/Blackbox.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ These chips are also supported:
120120
* Winbond W25Q64 - 64 Mbit / 8 MByte
121121
* Micron N25Q0128 - 128 Mbit / 16 MByte
122122
* Winbond W25Q128 - 128 Mbit / 16 MByte
123+
* Puya PY25Q128HA - 128 Mbit / 16 MByte
123124
* Winbond W25N01 - 1 Gbit / 128 MByte
124125
* Winbond W25N02 - 2 Gbit / 256 MByte
125126

src/main/drivers/flash_m25p16.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ struct {
9999
// Winbond W25Q128_DTR
100100
// Datasheet: https://www.winbond.com/resource-files/w25q128jv%20dtr%20revb%2011042016.pdf
101101
{0xEF7018, 256, 256},
102+
// Puya PY25Q128HA
103+
// Datasheet: https://www.puyasemi.com/cpzx3/info_271_itemid_87.html
104+
{0x856018, 256, 256},
102105
// Winbond W25Q256
103106
// Datasheet: https://www.winbond.com/resource-files/w25q256jv%20spi%20revb%2009202016.pdf
104107
{0xEF4019, 512, 256},

0 commit comments

Comments
 (0)