mirror of
https://git.proxmox.com/git/fwupd
synced 2026-03-27 05:40:59 +00:00
Now incorporate is fixed to copy across the properties we need in the superclass, we don't need to do the subclass ->probe(). Note, we still need to do the subclassed ->probe() when using FU_UDEV_DEVICE_FLAG_VENDOR_FROM_PARENT or when looking at properties on the parent device. This also removes the spurious 'already set GType to FuVliUsbhubDevice, ignoring FuVliUsbhubDevice' messages when running the daemon. |
||
|---|---|---|
| .. | ||
| fu-gpio-device.c | ||
| fu-gpio-device.h | ||
| fu-plugin-gpio.c | ||
| gpio.quirk | ||
| meson.build | ||
| README.md | ||
GPIO
Introduction
This plugin sets GPIO outputs either high or low before and/or after an update has been deployed.
GUID Generation
These device use GPIO gpiochip_info.label values, e.g.
GPIO\ID_INT3450:00
Quirk Use
This plugin uses the following plugin-specific quirks:
GpioForUpdate
The GPIO bit to set before the update is deployed e.g. INT3450:00,SPI_MUX,high.
After the update has finished, the bits are returned to the default state.
For example, to set GPIO pin 2 low for the duration of the ColorHug device update this could be added to the quirk file:
[USB\VID_273F&PID_1001]
GpioForUpdate=fake-gpio-chip,2,low
Since: 1.7.6
External Interface Access
This plugin requires ioctl GPIO_GET_CHIPINFO_IOCTL and GPIO_V2_GET_LINE_IOCTL
access on /dev/gpiochip* devices.