mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 12:21:22 -05:00
Use the introduced functionality to read firmware files and flash their
contents into the device's internal flash memory to implement the devlink
flash update callback.
Sample output on EDS2 development board:
# devlink -j dev info i2c/1-0070 | jq '.[][]["versions"]["running"]'
{
"fw": "6026"
}
# devlink dev flash i2c/1-0070 file firmware_fw2.hex
[utility] Prepare flash mode
[utility] Downloading image 100%
[utility] Flash mode enabled
[firmware1-part1] Downloading image 100%
[firmware1-part1] Flashing image
[firmware1-part2] Downloading image 100%
[firmware1-part2] Flashing image
[firmware1] Flashing done
[firmware2] Downloading image 100%
[firmware2] Flashing image 100%
[firmware2] Flashing done
[utility] Leaving flash mode
Flashing done
# devlink -j dev info i2c/1-0070 | jq '.[][]["versions"]["running"]'
{
"fw": "7006"
}
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Link: https://patch.msgid.link/20250909091532.11790-6-ivecera@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
66 lines
1.5 KiB
ReStructuredText
66 lines
1.5 KiB
ReStructuredText
.. SPDX-License-Identifier: GPL-2.0
|
|
|
|
=======================
|
|
zl3073x devlink support
|
|
=======================
|
|
|
|
This document describes the devlink features implemented by the ``zl3073x``
|
|
device driver.
|
|
|
|
Parameters
|
|
==========
|
|
|
|
.. list-table:: Generic parameters implemented
|
|
:widths: 5 5 90
|
|
|
|
* - Name
|
|
- Mode
|
|
- Notes
|
|
* - ``clock_id``
|
|
- driverinit
|
|
- Set the clock ID that is used by the driver for registering DPLL devices
|
|
and pins.
|
|
|
|
Info versions
|
|
=============
|
|
|
|
The ``zl3073x`` driver reports the following versions
|
|
|
|
.. list-table:: devlink info versions implemented
|
|
:widths: 5 5 5 90
|
|
|
|
* - Name
|
|
- Type
|
|
- Example
|
|
- Description
|
|
* - ``asic.id``
|
|
- fixed
|
|
- 1E94
|
|
- Chip identification number
|
|
* - ``asic.rev``
|
|
- fixed
|
|
- 300
|
|
- Chip revision number
|
|
* - ``fw``
|
|
- running
|
|
- 7006
|
|
- Firmware version number
|
|
* - ``custom_cfg``
|
|
- running
|
|
- 1.3.0.1
|
|
- Device configuration version customized by OEM
|
|
|
|
Flash Update
|
|
============
|
|
|
|
The ``zl3073x`` driver implements support for flash update using the
|
|
``devlink-flash`` interface. It supports updating the device flash using a
|
|
combined flash image ("bundle") that contains multiple components (firmware
|
|
parts and configurations).
|
|
|
|
During the flash procedure, the standard firmware interface is not available,
|
|
so the driver unregisters all DPLLs and associated pins, and re-registers them
|
|
once the flash procedure is complete.
|
|
|
|
The driver does not support any overwrite mask flags.
|