From 28d625abfd3334a3c4bcff3a9e38dd43b10b96cf Mon Sep 17 00:00:00 2001 From: Bryan Souza Date: Fri, 12 Sep 2025 09:14:37 -0700 Subject: [PATCH] added support for W25Q80DV flash chip for xiao-ble target; --- flash/devices.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/flash/devices.go b/flash/devices.go index 69239a6..b6ca601 100644 --- a/flash/devices.go +++ b/flash/devices.go @@ -46,6 +46,8 @@ var DefaultDeviceIdentifier = DeviceIdentifierFunc(func(id JedecID) Attrs { return GD25Q16C() case 0xC84017: return GD25Q64C() + case 0xEF4014: + return W25Q80DV() case 0xEF4015: return W25Q16JVIQ() case 0xEF4016: @@ -380,6 +382,25 @@ func W25Q80DL() Attrs { TotalSize: 1 << 20, // 1 MiB StartUp: 5000 * time.Microsecond, JedecID: JedecID{0xEF, 0x60, 0x14}, + MaxClockSpeedMHz: 80, + QuadEnableBitMask: 0x02, + HasSectorProtection: false, + SupportsFastRead: true, + SupportsQSPI: true, + SupportsQSPIWrites: false, + WriteStatusSplit: false, + SingleStatusByte: false, + } +} + +// Settings for the Winbond W25Q80DV 2MiB SPI flash. +// Datasheet: +// https://www.winbond.com/resource-files/w25q80dv%20dl_revh_10022015.pdf +func W25Q80DV() Attrs { + return Attrs{ + TotalSize: 1 << 21, // 2 MiB + StartUp: 5000 * time.Microsecond, + JedecID: JedecID{0xEF, 0x40, 0x14}, MaxClockSpeedMHz: 104, QuadEnableBitMask: 0x02, HasSectorProtection: false,