MX25L(4) | Device Drivers Manual | MX25L(4) |
mx25l
— driver for
SpiFlash(tm) compatible non-volatile storage devices
To compile this driver into the kernel, place the following line in your kernel configuration file:
device mx25l
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):
mx25l_load="YES"
The mx25l
driver provides support for the
family of non-volatile storage devices known collectively as SpiFlash(tm).
SpiFlash chips typically have part numbers beginning with EN25, IS25, MX25,
S25, SST25, or W25.
The mx25l
driver uses opcode 0x9f to read
the manufacturer and device ID data to determine whether the device is
supported. The device ID is looked up using a table of data within the
driver which describes the attributes of each supported device, such as
block size, sector size, and device capacity. When a supported device is
found, the mx25l
driver creates a disk device and
makes it accessible at /dev/flash/mx25l?. The new
disk device is then tasted by the available geom(4)
modules as with any disk device.
The mx25l
driver provides support for the
following devices:
On an fdt(4) based system, the
mx25l
device is defined as a slave device subnode of
the SPI bus controller node. All properties documented in the
spibus.txt bindings document can be used with the
mx25l
device. The most commonly-used ones are
documented below.
The following properties are required in the
mx25l
device subnode:
The following properties are optional for the
mx25l
device subnode:
On a device.hints(5) based system, such as
MIPS
, these values are configurable for
mx25l
:
mx25l
instance is attached to.The mx25l
driver first appeared in
FreeBSD 8.0.
February 26, 2019 | Debian |