ptp_ocp devlink support¶
This document describes the devlink features implemented by the ptp_ocp
device driver: the info versions it reports and its flash update support.
Info versions¶
The ptp_ocp driver reports the following versions
Name |
Type |
Description |
|
running |
Version of the firmware running on the card. Reported as |
|
fixed |
Board identifier, read from the on-card EEPROM. |
|
fixed |
Lattice device ID (IDCODE) of the TAP CPLD, formatted as |
|
running |
USERCODE of the image programmed into the TAP CPLD, formatted as
|
Flash update¶
The driver implements devlink dev flash for two separate targets,
selected with the component name.
Component |
Description |
(none) |
The card’s own flash, written through the SPI controller the driver exposes. The card runs the new image after its next reset. |
|
The configuration flash of the TAP CPLD on ADVA TimeCard X1 boards,
programmed over I2C with the MachXO3 in-system programming commands
and activated with a REFRESH, so the new image runs immediately.
The image is the raw configuration bitstream. The only check the
driver makes is that its length is a non-zero multiple of the
16-byte page size, so a container such as |
Programming the CPLD claims the shared I2C bus for the whole cycle, so reads of the card’s EEPROM block until it completes. Progress is reported with the standard devlink status notifications.
Example:
$ devlink dev flash pci/0000:02:00.0 file adva-cpld.bin component fw.cpld