fwupd/plugins/vli
2020-02-12 08:51:24 +00:00
..
fu-plugin-vli.c vli: Invert the logic to reboot the parent FuCliUsbhubDevice, not the child 2020-02-12 08:51:24 +00:00
fu-self-test.c vli: Allow setting the device kind from a quirk 2020-01-02 13:24:13 +00:00
fu-vli-common.c vli: Add support for the PS186 device 2020-02-11 12:08:37 +00:00
fu-vli-common.h vli: Add support for the PS186 device 2020-02-11 12:08:37 +00:00
fu-vli-device.c vli: Set the device progress correctly when erasing a PD device 2020-02-06 20:38:19 +00:00
fu-vli-device.h vli: Set all standalone PD devices to not do SPI auto-detection 2020-02-06 20:38:19 +00:00
fu-vli-pd-common.c vli: Rename FuVliUsbhubPdFirmware to FuVliPdFirmware 2020-01-02 13:24:13 +00:00
fu-vli-pd-common.h vli: Rename FuVliUsbhubPdFirmware to FuVliPdFirmware 2020-01-02 13:24:13 +00:00
fu-vli-pd-device.c vli: Add support for the PS186 device 2020-02-11 12:08:37 +00:00
fu-vli-pd-device.h vli: Add support for standalone Single PD devices 2020-01-02 13:24:13 +00:00
fu-vli-pd-firmware.c vli: Rename FuVliUsbhubPdFirmware to FuVliPdFirmware 2020-01-02 13:24:13 +00:00
fu-vli-pd-firmware.h vli: Rename FuVliUsbhubPdFirmware to FuVliPdFirmware 2020-01-02 13:24:13 +00:00
fu-vli-pd-parade-device.c vli: Add support for the PS186 device 2020-02-11 12:08:37 +00:00
fu-vli-pd-parade-device.h vli: Add support for the PS186 device 2020-02-11 12:08:37 +00:00
fu-vli-usbhub-common.c vli: Move the CRC calculations out of usbhub scope 2020-01-02 13:24:13 +00:00
fu-vli-usbhub-common.h vli: Have one 'DeviceKind' for all objects 2020-01-02 13:24:13 +00:00
fu-vli-usbhub-device.c vli: Show erase progress when doing a v2 recovery 2020-02-11 13:40:05 +00:00
fu-vli-usbhub-device.h vli: Move generic SPI functionality into the FuVliDevice base class 2020-01-02 13:24:13 +00:00
fu-vli-usbhub-firmware.c vli: Have one 'DeviceKind' for all objects 2020-01-02 13:24:13 +00:00
fu-vli-usbhub-firmware.h vli: Have one 'DeviceKind' for all objects 2020-01-02 13:24:13 +00:00
fu-vli-usbhub-i2c-common.c vli: Have one 'DeviceKind' for all objects 2020-01-02 13:24:13 +00:00
fu-vli-usbhub-i2c-common.h trivial: Fix up some typos found using codespell 2020-01-14 12:25:41 +00:00
fu-vli-usbhub-i2c-device.c vli: Fix a potential buffer-overflow when parsing firmware 2020-02-07 15:16:39 +00:00
fu-vli-usbhub-i2c-device.h vli: Rename the vli_usbhub plugin to vli 2020-01-02 13:24:13 +00:00
fu-vli-usbhub-pd-common.h vli: Rename FuVliUsbhubPdFirmware to FuVliPdFirmware 2020-01-02 13:24:13 +00:00
fu-vli-usbhub-pd-device.c vli: Set the protocol for FuVliUsbhubPdDevice types 2020-02-05 17:23:51 +00:00
fu-vli-usbhub-pd-device.h vli: Rename FuVliUsbhubPdFirmware to FuVliPdFirmware 2020-01-02 13:24:13 +00:00
meson.build vli: Add support for the PS186 device 2020-02-11 12:08:37 +00:00
README.md vli: Add support for the PS186 device 2020-02-11 12:08:37 +00:00
vli-pd.quirk vli: Set all standalone PD devices to not do SPI auto-detection 2020-02-06 20:38:19 +00:00
vli-usbhub-lenovo.quirk vli: Switch around the hub tier values 2020-02-12 08:50:48 +00:00
vli-usbhub.quirk vli: Define the device GType in the quirk file 2020-01-02 13:24:13 +00:00

VIA Support

Introduction

This plugin is used to update USB hubs from VIA.

Firmware Format

The daemon will decompress the cabinet archive and extract a firmware blob in an undisclosed binary file format.

This plugin supports the following protocol ID:

  • com.vli.i2c
  • com.vli.pd
  • com.vli.usbhub

GUID Generation

These devices use the standard USB DeviceInstanceId values, e.g.

  • USB\VID_17EF&PID_3083&REV_0001
  • USB\VID_17EF&PID_3083
  • USB\VID_17EF

All VLI devices also use custom GUID values for the device type, e.g.

  • USB\VID_17EF&PID_3083&DEV_VL812B3

These devices also use custom GUID values for the SPI flash configuration, e.g.

  • VLI_USBHUB\SPI_37303840
  • VLI_USBHUB\SPI_3730
  • VLI_USBHUB\SPI_37

Optional PD child devices sharing the SPI flash use just one extra GUID, e.g.

  • USB\VID_17EF&PID_3083&DEV_VL102

Optional I²C child devices use just one extra GUID, e.g.

  • USB\VID_17EF&PID_3083&I2C_MSP430
  • USB\VID_17EF&PID_3083&I2C_PS186

Vendor ID Security

The vendor ID is set from the USB vendor, for example set to USB:0x2109

Quirk Use

This plugin uses the following plugin-specific quirks:

Quirk Description Minimum fwupd version
DeviceKind Device kind, e.g. VL102 1.3.7
SpiAutoDetect SPI autodetect (default 0x1) 1.3.7
SpiCmdChipErase Flash command to erase chip 1.3.3
SpiCmdChipErase Flash command to erase sector 1.3.3
SpiCmdReadId Flash command to read the ID 1.3.3
SpiCmdReadIdSz Size of the ReadId response 1.3.3

The SpiCmdReadId and SpiCmdReadIdSz quirks have to be assigned to the device instance attribute, rather then the flash part as the ID is required to query the other flash chip parameters. For example:

[DeviceInstanceId=USB\VID_2109&PID_0210]
Plugin = vli
GType = FuVliUsbhubDevice
SpiCmdReadId = 0xf8
SpiCmdReadIdSz = 4

# W3IRDFLASHxxx
[Guid=VLI_USBHUB\\SPI_37303840]
SpiCmdChipErase = 0xc7
SpiCmdSectorErase = 0x20