Page MenuHomeFreeBSD

flash: add w25n (nand flash) support
ClosedPublic

Authored by adrian on Feb 13 2025, 12:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 17, 10:28 PM
Unknown Object (File)
Fri, Apr 17, 7:01 AM
Unknown Object (File)
Thu, Apr 16, 12:05 PM
Unknown Object (File)
Thu, Apr 9, 7:24 PM
Unknown Object (File)
Mar 14 2026, 3:02 PM
Unknown Object (File)
Feb 17 2026, 5:51 AM
Unknown Object (File)
Feb 8 2026, 10:46 AM
Unknown Object (File)
Feb 8 2026, 3:15 AM
Subscribers

Details

Summary

This adds read only support for the W25N series of flash parts.

Specifically starting with the W25N01GV, a 128MiB SPI NAND flash.

This doesn't currently support writing or erasing, as this requires
a NAND flash layer that we don't currently have. There are also
plenty of other commands that aren't currently supported - notably
maintaining the on-chip flash translation layer, flash wear statistics,
etc.

But read support is fine enough for now; it at least allows for
reading the boot / config / calibration flash on my ASUS IPQ4018 based
router.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 62410
Build 59294: arc lint + arc unit

Event Timeline

OK. This is fine.

But... the commands are likely part of a larger family of parts...

But this also looks pretty basic, so it's fine. There's no larger framework for NAND like we need to do this completely... but that's a huge lift and I don't want to hold this up.

I don't see anything here that's bad for 'basic' support that this targets.

This revision is now accepted and ready to land.Feb 14 2025, 11:49 PM
This revision was automatically updated to reflect the committed changes.